fix: 'gravity' does not work on hud overlays
This commit is contained in:
@@ -507,10 +507,12 @@ void Hud::updateElementsPosition(const Viewport& viewport) {
|
||||
height/2+totalHeight/2-invSize.y
|
||||
));
|
||||
}
|
||||
secondUI->setPos(glm::vec2(
|
||||
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
|
||||
height/2-totalHeight/2
|
||||
));
|
||||
if (secondUI->getPositionFunc() == nullptr) {
|
||||
secondUI->setPos(glm::vec2(
|
||||
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
|
||||
height/2-totalHeight/2
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (exchangeSlot != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user