News:

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

Macro constants for padding both horizontal sides of buttons.

Started by Ranran(retired), November 05, 2021, 05:08:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

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.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Dwachs

Parsley, sage, rosemary, and maggikraut.