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:
@@ -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,
|
||||
|
||||
BIN
resources/g2/tool/mountain_tool_even.png
Normal file
BIN
resources/g2/tool/mountain_tool_even.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
resources/g2/tool/mountain_tool_odd.png
Normal file
BIN
resources/g2/tool/mountain_tool_odd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user