OpenTTD/src/script
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
..
api Feature: Create group of vehicles from manage vehicle list button. (#10890) 2023-06-18 20:48:04 +01:00
CMakeLists.txt Codechange: move windows common to AI and GS out of ai_gui 2023-02-05 19:27:25 +01:00
script_cmd.h Codechange: Pass unpacked command arguments to command callbacks (except Script). 2021-12-16 22:28:32 +01:00
script_config.cpp Codechange: rewrite script string-to-settings conversion to C++ 2023-05-14 22:54:10 +02:00
script_config.hpp Codechange: Use std::map instead of custom SmallMap. 2023-05-18 12:18:30 +01:00
script_fatalerror.hpp Change: [Script] Let Script_FatalError use std::string instead of const char * 2021-04-17 22:24:52 +02:00
script_gui.cpp Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063) 2023-06-23 08:30:13 +00:00
script_gui.h Fix #10578: Allow to select any version of AI/GS from GUI (#10604) 2023-04-07 19:33:07 +02:00
script_info.cpp Codechange: replace StrMakeValidInPlace with StrValid 2023-06-08 18:29:44 +02:00
script_info.hpp Codechange: remove manual allocation/free for SQ_instance 2023-05-14 22:54:10 +02:00
script_info_dummy.cpp Codechange: use fmt::format to create dummy scripts 2023-05-14 22:54:10 +02:00
script_instance.cpp Fix #10868: [Script] Handle errors when loading savegame data on stack (#11029) 2023-06-18 12:03:59 +02:00
script_instance.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_scanner.cpp Codechange: use fmt::format_to to format the help message 2023-05-20 16:50:03 +02:00
script_scanner.hpp Codechange: use fmt::format_to to format the help message 2023-05-20 16:50:03 +02:00
script_storage.hpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_suspend.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
squirrel.cpp Codechange: replace C-style string processing with C++-style for the listing callbacks 2023-06-05 23:25:49 +02:00
squirrel.hpp Cleanup: stredup-ing string variant for calling scripts 2023-05-14 22:54:10 +02:00
squirrel_class.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
squirrel_helper.hpp Cleanup: the need for SQAutoFreePointers has gone 2023-05-14 22:54:10 +02:00
squirrel_helper_type.hpp Change: include fmt.h C++ headers in stdafx.h 2023-05-08 16:49:23 +02:00
squirrel_std.cpp Codechange: use C++ strings for constructing script file paths 2023-05-14 22:54:10 +02:00
squirrel_std.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00