mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
redo entire scenario highscore load / saving
- load and save highscores to new file format (highscores.dat) - scan scenarios from RCT2 data and user data - load highscores from legacy file (scores.dat) - fix various issues with new scenario select window
This commit is contained in:
@@ -1179,6 +1179,7 @@ static void window_options_dropdown(rct_window *w, int widgetIndex, int dropdown
|
||||
gConfigGeneral.scenario_select_mode = dropdownIndex;
|
||||
config_save_default();
|
||||
window_invalidate(w);
|
||||
window_close_by_class(WC_SCENARIO_SELECT);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1530,7 +1531,9 @@ static void window_options_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
gfx_draw_string_left(dpi, STR_OPTIONS_SCENARIO_GROUPING, NULL, w->colours[1], w->x + 10, w->y + window_options_controls_and_interface_widgets[WIDX_SCENARIO_GROUPING].top + 1);
|
||||
gfx_draw_string_left_clipped(
|
||||
dpi,
|
||||
gConfigGeneral.scenario_select_mode == 0 ? STR_OPTIONS_SCENARIO_DIFFICULTY : STR_OPTIONS_SCENARIO_ORIGIN,
|
||||
gConfigGeneral.scenario_select_mode == SCENARIO_SELECT_MODE_DIFFICULTY ?
|
||||
STR_OPTIONS_SCENARIO_DIFFICULTY :
|
||||
STR_OPTIONS_SCENARIO_ORIGIN,
|
||||
NULL,
|
||||
w->colours[1],
|
||||
w->x + window_options_controls_and_interface_widgets[WIDX_SCENARIO_GROUPING].left + 1,
|
||||
|
||||
Reference in New Issue
Block a user