Update DrawTileSelector to support variable tile height
- Modified DrawTileSelector function to accept an additional parameter for tile height, defaulting to the original size if not provided. - Adjusted the logic for calculating the second point in the tile selection to use the new height parameter, improving flexibility in tile rendering.
This commit is contained in:
@@ -103,7 +103,7 @@ class Canvas : public SharedRom {
|
||||
|
||||
// Dictates which tile is currently selected based on what the user clicks
|
||||
// in the canvas window. Represented and split apart into a grid of tiles.
|
||||
bool DrawTileSelector(int size);
|
||||
bool DrawTileSelector(int size, int size_y = 0);
|
||||
|
||||
// Draws the selection rectangle when the user is selecting multiple tiles
|
||||
void DrawSelectRect(int current_map, int tile_size = 0x10,
|
||||
|
||||
Reference in New Issue
Block a user