OpenTTD/src/game
PeterN d42a78f3e8
Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063)
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.
2023-06-23 08:30:13 +00:00
..
CMakeLists.txt Feature: [UI] Split AI/Game Script configuration windows and add them to world gen window (#10058) 2022-11-10 21:39:09 +01:00
game.hpp Codechange: use fmt::format_to to format the help message 2023-05-20 16:50:03 +02:00
game_config.cpp Codechange: use std::string for script info/library finding 2023-05-14 22:54:10 +02:00
game_config.hpp Codechange: use std::string for script info/library finding 2023-05-14 22:54:10 +02:00
game_core.cpp Codechange: use fmt::format_to to format the help message 2023-05-20 16:50:03 +02:00
game_gui.cpp Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063) 2023-06-23 08:30:13 +00:00
game_gui.hpp Feature: [UI] Split AI/Game Script configuration windows and add them to world gen window (#10058) 2022-11-10 21:39:09 +01:00
game_info.cpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
game_info.hpp Codechange: use std::string for script library category 2023-05-14 22:54:10 +02:00
game_instance.cpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
game_instance.hpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
game_scanner.cpp Codechange: use std::string for script info/library finding 2023-05-14 22:54:10 +02:00
game_scanner.hpp Codechange: use std::string for script info/library finding 2023-05-14 22:54:10 +02:00
game_text.cpp Codechange: let ReadLine return a string instead of passing a buffer 2023-06-09 19:58:29 +02:00
game_text.hpp Codechange: rename smallvec_type to container_func and use only when needed 2023-05-20 16:53:10 +02:00