console layout WIP

This commit is contained in:
MihailRis
2024-05-13 17:08:58 +03:00
parent 7ade504ec0
commit f4e98b2091
6 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -501,7 +501,7 @@ void Hud::updateElementsPosition(const Viewport& viewport) {
));
}
secondUI->setPos(glm::vec2(
glm::min(width/2-invwidth/2, width-caWidth-10-invwidth),
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
height/2-totalHeight/2
));
}