mirror of https://github.com/OpenRCT2/OpenRCT2.git
Added icon to Cheats button to indicate clearance checks are disabled
This commit is contained in:
parent
31e4029a22
commit
3fdab8e7d9
|
@ -3668,6 +3668,7 @@ STR_6370 :{SMALLFONT}{BLACK}Allows placing track pieces at any height interva
|
||||||
STR_6371 :The specified path contains a RollerCoaster Tycoon 1 installation, but the “csg1i.dat” file is missing. This file needs to be copied from the RollerCoaster Tycoon 1 CD to the “Data” folder of the RollerCoaster Tycoon 1 install on your hard drive.
|
STR_6371 :The specified path contains a RollerCoaster Tycoon 1 installation, but the “csg1i.dat” file is missing. This file needs to be copied from the RollerCoaster Tycoon 1 CD to the “Data” folder of the RollerCoaster Tycoon 1 install on your hard drive.
|
||||||
STR_6372 :The specified path contains a RollerCoaster Tycoon 1 installation, but this version is not suitable. OpenRCT2 needs a Loopy Landscapes or RCT Deluxe install in order to use RollerCoaster Tycoon 1 assets.
|
STR_6372 :The specified path contains a RollerCoaster Tycoon 1 installation, but this version is not suitable. OpenRCT2 needs a Loopy Landscapes or RCT Deluxe install in order to use RollerCoaster Tycoon 1 assets.
|
||||||
STR_6373 :Toggle clearance checks
|
STR_6373 :Toggle clearance checks
|
||||||
|
STR_6374 :C
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Scenarios #
|
# Scenarios #
|
||||||
|
|
|
@ -887,6 +887,13 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||||
y++;
|
y++;
|
||||||
imgId = SPR_G2_SANDBOX;
|
imgId = SPR_G2_SANDBOX;
|
||||||
gfx_draw_sprite(dpi, imgId, x, y, 3);
|
gfx_draw_sprite(dpi, imgId, x, y, 3);
|
||||||
|
|
||||||
|
// Draw an icon if clearance checks are disabled
|
||||||
|
if (gCheatsDisableClearanceChecks != 0)
|
||||||
|
{
|
||||||
|
gfx_draw_string_right(
|
||||||
|
dpi, STR_ICON_CLEARANCE_CHECKS_DISABLED, nullptr, COLOUR_DARK_ORANGE | COLOUR_FLAG_OUTLINE, x + 26, y + 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw chat button
|
// Draw chat button
|
||||||
|
|
|
@ -104,6 +104,8 @@ public:
|
||||||
break;
|
break;
|
||||||
case CheatType::DisableClearanceChecks:
|
case CheatType::DisableClearanceChecks:
|
||||||
gCheatsDisableClearanceChecks = _param1 != 0;
|
gCheatsDisableClearanceChecks = _param1 != 0;
|
||||||
|
// Required to update the clearance checks icon on the Cheats button.
|
||||||
|
window_invalidate_by_class(WC_TOP_TOOLBAR);
|
||||||
break;
|
break;
|
||||||
case CheatType::DisableSupportLimits:
|
case CheatType::DisableSupportLimits:
|
||||||
gCheatsDisableSupportLimits = _param1 != 0;
|
gCheatsDisableSupportLimits = _param1 != 0;
|
||||||
|
|
|
@ -3907,6 +3907,7 @@ enum
|
||||||
STR_PATH_TO_RCT1_IS_WRONG_VERSION = 6372,
|
STR_PATH_TO_RCT1_IS_WRONG_VERSION = 6372,
|
||||||
|
|
||||||
STR_SHORTCUT_TOGGLE_CLEARANCE_CHECKS = 6373,
|
STR_SHORTCUT_TOGGLE_CLEARANCE_CHECKS = 6373,
|
||||||
|
STR_ICON_CLEARANCE_CHECKS_DISABLED = 6374,
|
||||||
|
|
||||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||||
/* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings
|
/* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings
|
||||||
|
|
Loading…
Reference in New Issue