mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
fix: 'gravity' does not work on hud overlays
This commit is contained in:
parent
c947af904d
commit
a66228eb41
1 changed files with 6 additions and 4 deletions
|
|
@ -507,10 +507,12 @@ void Hud::updateElementsPosition(const Viewport& viewport) {
|
||||||
height/2+totalHeight/2-invSize.y
|
height/2+totalHeight/2-invSize.y
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
secondUI->setPos(glm::vec2(
|
if (secondUI->getPositionFunc() == nullptr) {
|
||||||
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
|
secondUI->setPos(glm::vec2(
|
||||||
height/2-totalHeight/2
|
glm::min(width/2-invwidth/2, width-caWidth-(inventoryView ? 10 : 0)-invwidth),
|
||||||
));
|
height/2-totalHeight/2
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (exchangeSlot != nullptr) {
|
if (exchangeSlot != nullptr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue