[0.9.1]Destroyed custom gui don't resize parent gui
Posted: Fri Mar 07, 2014 10:00 am
1:When right clicking a GUI (a modded GUI or a game gui), it counts as a normal left click, but the clicking picture is not shown.
2:When the custom gui is placed in the center, it doesnt update if a element is added to a child element:
Ej:
This one is centered fine.
But this one doesnt.
3: The GUI is still there as a "ghost" if the GUI is destroyed.
You wont be able to destroy/rightclick stuff where the GUI was (try to destroy a tree that is next to the player)
2:When the custom gui is placed in the center, it doesnt update if a element is added to a child element:
Ej:
Code: Select all
game.player.gui.center.add{type="frame",name="frame",caption="This is centered fine"}
game.player.gui.center.frame.add{type="button",name="button1",caption="---"}
Code: Select all
game.player.gui.center.add{type="frame",name="frame",caption="This doesnt"}
game.player.gui.center.add{type="flow",name="flow"}
game.player.gui.center.frame.flow.add{type="button",name="button1",caption="---"}
3: The GUI is still there as a "ghost" if the GUI is destroyed.
Code: Select all
game.player.gui.center.add{type="frame",name="frame",caption="This is centered fine"}
game.player.gui.center.frame.add{type="button",name="button1",caption="---"}
game.player.gui.center.frame.destroy()