1
0
Fork 0
OpenTTD/src/widgets
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
ai_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
airport_widget.h
autoreplace_widget.h
bootstrap_widget.h
bridge_widget.h
build_vehicle_widget.h Feature: Filter engine build menu by name and NewGRF extra text (#10519) 2023-05-01 17:02:16 +00:00
cheat_widget.h
company_widget.h Feature: allow to do a hostile takeover of an AI company (in singleplayer) (#10914) 2023-06-05 19:32:22 +02:00
console_widget.h
date_widget.h
depot_widget.h
dock_widget.h
dropdown.cpp Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063) 2023-06-23 08:30:13 +00:00
dropdown_func.h Fix dec7ff6b0c: Dropdowns couldn't be closed by pressing the parent button. (#10954) 2023-06-07 19:01:30 +01:00
dropdown_type.h Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063) 2023-06-23 08:30:13 +00:00
dropdown_widget.h
engine_widget.h
error_widget.h
fios_widget.h
framerate_widget.h
game_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
genworld_widget.h
goal_widget.h
graph_widget.h
group_widget.h
highscore_widget.h
industry_widget.h Feature: Industry directory text filter (#10518) 2023-02-28 12:20:41 -05:00
intro_widget.h
league_widget.h
link_graph_legend_widget.h
main_widget.h
misc_widget.h
music_widget.h
network_chat_widget.h
network_content_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
network_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
newgrf_debug_widget.h
newgrf_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
news_widget.h
object_widget.h
order_widget.h
osk_widget.h
rail_widget.h Feature: Add search filter and name text to build waypoint window. 2023-05-09 23:03:14 +02:00
road_widget.h Add: NewGRF road stops 2023-02-26 21:28:30 +01:00
screenshot_widget.h
script_widget.h
settings_widget.h Feature: opt-in survey when exiting a game 2023-05-14 23:22:02 +02:00
sign_widget.h
slider.cpp
slider_func.h Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
smallmap_widget.h
station_widget.h
statusbar_widget.h
story_widget.h
subsidy_widget.h
terraform_widget.h
timetable_widget.h
toolbar_widget.h
town_widget.h
transparency_widget.h
tree_widget.h
vehicle_widget.h
viewport_widget.h
waypoint_widget.h Feature: Add coverage button to waypoint window 2023-06-04 16:54:48 +01:00