Page 1 of 1

[0.17.41][Modding] Listbox gui is not the same before versus after using debug options.

Posted: Tue May 21, 2019 3:00 pm
by lovely_santa
Hi,

While modding I came across this (minor) issue. First I open my UI as intended, as it is shown in the picture:
step2b.PNG
step2b.PNG (129.97 KiB) Viewed 750 times
If not yet active, I open the gui layout debug options (pressing ctrl + F5), as shown in the picture below:
step1.PNG
step1.PNG (384.77 KiB) Viewed 750 times
When removing the debug option again by pressing ctrl + F5 again, the textbox entries are slightly shifted towards the top left, leaving an awefull edge on the right and bottom of the listbox, as shown in this picture:
step2.PNG
step2.PNG (193.01 KiB) Viewed 750 times
As you can see, comparing the first and last picture, the entries are shifted. When closing and reopening the UI again (destroy and recreate), everything is back to normal.

To test this out, I've added a save and the mod used in question.

Kind regards
lovely_santa

Re: [0.17.41][Modding] Listbox gui is not the same before versus after using debug options.

Posted: Mon May 27, 2019 1:35 am
by Rseding91
Thanks for the report. This is due to the widget logic of "don't resize smaller" and isn't something we're going to be looking into. The debug option is for debugging and may have unintended side effects (such as this). Simply don't use it if it causes you problems.