Page 1 of 1

[Rseding91] [0.17.59] Force Auto Center Not Working

Posted: Thu Jul 25, 2019 4:33 pm
by Cooldude2606
auto_center (which is ment to be "auto-center-on-resize") is named incorrectly and is misleading.
LugGuiElement::force_auto_center() does not force an auto re-center.

All executed ingame with /c

Code: Select all

game.player.gui.screen.add{name='test',type='frame'} -- new frame in the top left
game.player.gui.screen.test.auto_center -- returns false
game.player.gui.screen.test.auto_center = true -- frame remains in top left
game.player.gui.screen.test.force_auto_center() -- frame remains in top left
game.player.gui.screen.test.add{name='drag',type='frame'} -- frame is now in the center, due to resize

Re: [Rseding91] [0.17.59] Force Auto Center Not Working

Posted: Fri Jul 26, 2019 12:55 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.17.