1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Removed finance button when in no money mode

This commit is contained in:
Duncan Frost
2015-01-12 18:57:03 +00:00
parent 974ecd904c
commit 11be3cd5bd

View File

@@ -477,6 +477,13 @@ static void window_game_top_toolbar_invalidate()
{
w->disabled_widgets &= ~((1 << WIDX_ZOOM_IN) | (1 << WIDX_ZOOM_OUT));
}
if (RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) & PARK_FLAGS_NO_MONEY) {
window_game_top_toolbar_widgets[WIDX_FINANCES].type = WWT_EMPTY;
}
else{
window_game_top_toolbar_widgets[WIDX_FINANCES].type = WWT_TRNBTN;
}
}
/**
@@ -509,10 +516,12 @@ static void window_game_top_toolbar_paint()
gfx_draw_sprite(dpi, imgId, x, y, 0);
// Draw finances button
x = w->x + window_game_top_toolbar_widgets[WIDX_FINANCES].left + 3;
y = w->y + window_game_top_toolbar_widgets[WIDX_FINANCES].top + 1;
imgId = SPR_FINANCE;
gfx_draw_sprite(dpi, imgId, x, y, 0);
if (!(RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) & PARK_FLAGS_NO_MONEY)){
x = w->x + window_game_top_toolbar_widgets[WIDX_FINANCES].left + 3;
y = w->y + window_game_top_toolbar_widgets[WIDX_FINANCES].top + 1;
imgId = SPR_FINANCE;
gfx_draw_sprite(dpi, imgId, x, y, 0);
}
}
/**