Add bulldozer cursor for clear scenery tool

This commit is contained in:
Aaron van Geffen committed 2024-08-03 20:44:12 +02:00
1 parent 7aaff77125
commit 5b1c867f23
5 files changed
+40 -1

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
0.4.14 (in development)
------------------------------------------------------------------------
- Change: [#21659] Increase the Hybrid Roller Coaster’s maximum lift speed to 17 km/h (11 mph).
- Change: [#22466] The Clear Scenery tool now uses a bulldozer cursor instead of a generic crosshair.
0.4.13 (2024-08-04)
------------------------------------------------------------------------
+36
View File
@@ -912,6 +912,41 @@ namespace OpenRCT2::Ui
" XX.........XX "
" XXXXXXXXXX ");
static constexpr CursorData kBulldozerCursorData = cursorFromBitMap(
6, 31,
" XXX "
" XX...X "
" XX....X "
" X..XX.X "
" X..X X XXXXXXX "
" XXX X.......X "
" XX X.X X.XXX.X.X "
" X.X XXX.XXXXXXXX.XXX.X.X "
" X.X X...........X.XXX.X.X "
" X.X X.XXXXXX....X.XXX.X.X "
" X.X X.XX.X......X.......X "
" X.XXXXXXXXXXX..XXXX......X "
" X.X..........X...........X "
" X.X....XXXXXXXXXXX.XX.XXX "
" X.XXXXX..X..X..X..X..X..XX "
" X.X X.XX.XX.XX.XX.XX.XX.X "
" X.X X.XX.XX.XX.XX.XX.XX.X "
" XX.X X..X..X..X..X..X..X "
"X..X XXXXXXXXXXXXXXXXX "
" XX XXXXX "
" X...X "
" X...X "
" X...X "
" X...X "
" X...X "
"XXXXX...XXXXX "
" X.........X "
" X.......X "
" X.....X "
" X...X "
" X.X "
" X ");
static constexpr const CursorData* RawCursorData[] = {
nullptr, // CursorID::Arrow
&kBlankCursorData, // CursorID::Blank
@@ -940,6 +975,7 @@ namespace OpenRCT2::Ui
&kEntranceDownCursorData, // CursorID::EntranceDown
&kHandOpenDownCursorData, // CursorID::HandOpen
&kHandClosedDownCursorData, // CursorID::HandClosed
&kBulldozerCursorData, // CursorID::Bulldozer
};
const CursorData* getCursorData(CursorID cursorId)
+1 -1
View File
@@ -409,7 +409,7 @@ namespace OpenRCT2::Ui::Windows
{
ShowGridlines();
auto* toolWindow = ContextOpenWindow(WindowClass::ClearScenery);
ToolSet(*toolWindow, WIDX_BACKGROUND, Tool::Crosshair);
ToolSet(*toolWindow, WIDX_BACKGROUND, Tool::Bulldozer);
InputSetFlag(INPUT_FLAG_6, true);
}
}
+1
View File
@@ -41,6 +41,7 @@ enum class CursorID : uint8_t
EntranceDown,
HandOpen,
HandClosed,
Bulldozer,
Count,
Undefined = 0xFF
+1
View File
@@ -470,6 +470,7 @@ enum class Tool
WalkDown = 22,
PaintDown = 23,
EntranceDown = 24,
Bulldozer = 27,
};
using modal_callback = void (*)(int32_t result);