fix console position

This commit is contained in:
MihailRis
2024-11-17 15:53:25 +03:00
parent 255c49916c
commit 3ea213e8d3
6 changed files with 18 additions and 15 deletions
+5 -2
View File
@@ -615,8 +615,11 @@ void Hud::updateElementsPosition(const Viewport& viewport) {
}
if (secondUI->getPositionFunc() == nullptr) {
secondUI->setPos(glm::vec2(
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
height/2-totalHeight/2
glm::min(
width / 2.f - invwidth / 2.f,
width - caWidth - (inventoryView ? 10 : 0) - invwidth
),
height / 2.f - totalHeight / 2.f
));
}
}