mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Add configuration bits for scenario select mode and unlocking.
Note this lacks an interface in the options window as of yet.
This commit is contained in:
committed by
IntelOrca
parent
e78d37f03c
commit
cf935d45c6
@@ -203,6 +203,9 @@ config_property_definition _generalDefinitions[] = {
|
||||
{ offsetof(general_configuration, show_fps), "show_fps", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
|
||||
{ offsetof(general_configuration, trap_cursor), "trap_cursor", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
|
||||
{ offsetof(general_configuration, auto_open_shops), "auto_open_shops", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
|
||||
{ offsetof(general_configuration, scenario_select_mode), "scenario_select_mode", CONFIG_VALUE_TYPE_UINT8, 1, NULL },
|
||||
{ offsetof(general_configuration, scenario_unlocking_enabled), "scenario_unlocking_enabled", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
|
||||
|
||||
};
|
||||
|
||||
config_property_definition _interfaceDefinitions[] = {
|
||||
|
||||
@@ -172,6 +172,8 @@ typedef struct {
|
||||
uint8 show_fps;
|
||||
uint8 trap_cursor;
|
||||
uint8 auto_open_shops;
|
||||
uint8 scenario_select_mode;
|
||||
uint8 scenario_unlocking_enabled;
|
||||
} general_configuration;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -260,9 +260,6 @@ static void window_scenarioselect_invalidate(rct_window *w)
|
||||
w->pressed_widgets |= 1LL << (w->selected_tab + 4);
|
||||
}
|
||||
|
||||
int gScenarioGroupingStyle = 1; // 1 = new, 2 = classic
|
||||
bool gScenarioEnableUnlocking = true;
|
||||
|
||||
static void window_scenarioselect_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
{
|
||||
int i, x, y, format;
|
||||
@@ -282,7 +279,7 @@ static void window_scenarioselect_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
x = (widget->left + widget->right) / 2 + w->x;
|
||||
y = (widget->top + widget->bottom) / 2 + w->y - 3;
|
||||
|
||||
if (gScenarioGroupingStyle == 1) {
|
||||
if (gConfigGeneral.scenario_select_mode == 1) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS + 0, short) = STR_SCENARIO_CATEGORY_RCT1_CLASSIC + i;
|
||||
} else { // old-style
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS + 0, short) = STR_BEGINNER_PARKS + i;
|
||||
|
||||
Reference in New Issue
Block a user