mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
d42a78f3e8
Having to choose between DropDownListStringItem, DropDownListCharStringItem, and DropDownListParamStringItem depending on whether to draw a StringID, a raw string, or a StringID with extra parameters was needlessly complex. Instead, allow passing a StringID or raw string to DropDownListStringItem. This will preformat the StringID into a raw string, and can therefore accept parameters via the normal SetDParam mechanism. This also means that strings no longer need to be formatted on every draw. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
game_config.cpp | ||
game_config.hpp | ||
game_core.cpp | ||
game_gui.cpp | ||
game_gui.hpp | ||
game_info.cpp | ||
game_info.hpp | ||
game_instance.cpp | ||
game_instance.hpp | ||
game_scanner.cpp | ||
game_scanner.hpp | ||
game_text.cpp | ||
game_text.hpp | ||
game.hpp |