1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-28 22:54:29 +01:00
Files
OpenTTD/src/lang
Peter Nelson 9d2efd4c96 Codechange: Use callback function to set labels of slider widget marks.
Slider widgets can only use a predefined list of values and strings to draw labels. This makes it difficult to vary the display by context.

Instead of providing a predefined list as a std::map, use a callback function instead. This function can decide what text to display, and can call SetDParam to dynamically set up strings.
2024-05-03 11:48:36 +01:00
..
2024-04-26 04:41:25 +00:00
2024-05-01 04:41:08 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-05-02 04:41:51 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-05-01 04:41:08 +00:00
2024-04-27 04:40:44 +00:00
2024-04-27 04:40:44 +00:00
2024-04-29 04:40:19 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-27 04:40:44 +00:00
2024-04-28 04:41:11 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-30 04:40:35 +00:00
2024-05-01 04:41:08 +00:00
2024-05-01 04:41:08 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-05-03 04:41:54 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-29 04:40:19 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-27 04:40:44 +00:00
2024-04-28 04:41:11 +00:00
2024-04-26 04:41:25 +00:00
2024-04-27 04:40:44 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-30 04:40:35 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00
2024-04-26 04:41:25 +00:00