The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran(retired) on November 05, 2021, 05:08:06 AM

Title: Macro constants for padding both horizontal sides of buttons.
Post by: Ranran(retired) on November 05, 2021, 05:08:06 AM
I found it useful to have this.
Replace gui_theme_t::gui_button_text_offset.w + gui_theme_t::gui_button_text_offset_right.x with D_BUTTON_PADDINGS_X.
This is used when the GUI designer wants the width of the button to fit the width of the text.
There are currently two places in Standard where this applies. But extended is used in many more places.
I submit a patch for the purpose of code standardization.
Title: Re: Macro constants for padding both horizontal sides of buttons.
Post by: Dwachs on November 05, 2021, 08:38:49 AM
thanks, in r10214