1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Mountain tool overlay in land tool window (#10739)

This commit is contained in:
Aaron van Geffen
2020-02-19 11:17:11 +01:00
committed by GitHub
parent dd869c8c0a
commit 947903fefb
5 changed files with 18 additions and 2 deletions

View File

@@ -452,6 +452,16 @@
"x_offset": 1,
"y_offset": 4
},
{
"path": "tool/mountain_tool_even.png",
"x_offset": 1,
"y_offset": 4
},
{
"path": "tool/mountain_tool_odd.png",
"x_offset": 1,
"y_offset": 5
},
{
"path": "font/latin/ae-uc-small.png",
"y_offset": 0,

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -354,7 +354,10 @@ static void window_land_paint(rct_window* w, rct_drawpixelinfo* dpi)
{
x = w->x + previewWidget->left;
y = w->y + previewWidget->top;
gfx_draw_sprite(dpi, SPR_LAND_TOOL_SIZE_0, x, y, 0);
int32_t sprite = gLandToolSize % 2 == 0 ? SPR_G2_MOUNTAIN_TOOL_EVEN : SPR_G2_MOUNTAIN_TOOL_ODD;
gfx_draw_sprite(dpi, sprite, x, y, 0);
widget_draw(dpi, w, WIDX_DECREMENT);
widget_draw(dpi, w, WIDX_INCREMENT);
}
x = w->x + (previewWidget->left + previewWidget->right) / 2;

View File

@@ -854,7 +854,10 @@ enum
SPR_G2_LAND_TOOL_SIZE_6 = SPR_G2_BEGIN + 131,
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 132,
SPR_G2_MOUNTAIN_TOOL_EVEN = SPR_G2_BEGIN + 132,
SPR_G2_MOUNTAIN_TOOL_ODD = SPR_G2_BEGIN + 133,
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 134,
SPR_G2_AE_UPPER = SPR_G2_CHAR_BEGIN,
SPR_G2_AE_LOWER = SPR_G2_CHAR_BEGIN + 1,