Files
openttd-cmclient/src
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
..
2023-07-03 18:08:03 +02:00
2023-09-10 08:40:25 -04:00
2024-03-22 22:24:17 +01:00