mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
gui: more lua support + 'coord' renamed to 'pos'
This commit is contained in:
parent
6f88502cae
commit
ed6a377e90
5 changed files with 23 additions and 11 deletions
|
|
@ -571,7 +571,7 @@ void Hud::draw(const GfxContext& ctx){
|
|||
|
||||
glm::vec2 invSize = inventoryView->getSize();
|
||||
inventoryView->setCoord(glm::vec2(
|
||||
glm::min(width/2-invSize.x/2, width-caWidth-10-invSize.x),
|
||||
glm::min(width/2-invSize.x/2, width-caWidth-10-invSize.x),
|
||||
height/2-invSize.y/2
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue