News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Dialog windows ignore DEFAULT_WIDTH setting from gui_theme_t

Started by prissi, October 14, 2019, 11:49:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi

Only the depot opens in the requested setting. Only depots and grounddialogue are opening in the requested width. Investifating.

Dwachs

I did not know there is a default at all :( Dialogue windows will remember their sizes when opened once. Their sizes are saved in the settings.xml file (rdwr_win_settings)
Parsley, sage, rosemary, and maggikraut.

prissi

The original idea was that the dialogues have all the same inital width (D_DEFAULT_WIDTH). That way they could be tiled in rows. Currently only the depots do this. Any windows with a world view will have a rather random width.

Dwachs

Tried to fix this with r8849: when opening it tries to enlarge windows to the default width/height.

I still have to work on the save/load of window sizes. Size is saved by magic numbers in a hashtable, but gives problems for window types that use pointers as magic numbers.
Parsley, sage, rosemary, and maggikraut.