1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Apply suggestions from code review

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
This commit is contained in:
Michiel
2020-05-30 00:12:07 +02:00
committed by Aaron van Geffen
parent 3fdab8e7d9
commit ac8dce44fd
3 changed files with 4 additions and 4 deletions

View File

@@ -888,11 +888,11 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi)
imgId = SPR_G2_SANDBOX;
gfx_draw_sprite(dpi, imgId, x, y, 3);
// Draw an icon if clearance checks are disabled
// Draw an overlay 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);
dpi, STR_OVERLAY_CLEARANCE_CHECKS_DISABLED, nullptr, COLOUR_DARK_ORANGE | COLOUR_FLAG_OUTLINE, x + 26, y + 2);
}
}

View File

@@ -104,7 +104,7 @@ public:
break;
case CheatType::DisableClearanceChecks:
gCheatsDisableClearanceChecks = _param1 != 0;
// Required to update the clearance checks icon on the Cheats button.
// Required to update the clearance checks overlay on the Cheats button.
window_invalidate_by_class(WC_TOP_TOOLBAR);
break;
case CheatType::DisableSupportLimits:

View File

@@ -3907,7 +3907,7 @@ enum
STR_PATH_TO_RCT1_IS_WRONG_VERSION = 6372,
STR_SHORTCUT_TOGGLE_CLEARANCE_CHECKS = 6373,
STR_ICON_CLEARANCE_CHECKS_DISABLED = 6374,
STR_OVERLAY_CLEARANCE_CHECKS_DISABLED = 6374,
// 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