mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Finalize follow sprite command
Added new smart follow variable to window to more intuitively follow sprites that may not be directly followable at all times. Follow sprite is now canceled when dragging the screen but not scrolling. This is only relevant when testing title sequences in game. Select sprite button is now disabled in the title menu. Sprites are now identified based on their name. Excess identification information is not given as it'd clutter up the screen and is not necissary with the viewbox in the command editor.
This commit is contained in:
committed by
Aaron van Geffen
parent
1443216ba0
commit
298420fd1e
@@ -384,7 +384,8 @@ extern "C"
|
||||
gfx_draw_string(dpi, buffer, COLOUR_BLACK, x + 5, y + 5 - 13);
|
||||
|
||||
// Invalidate screen area
|
||||
gfx_set_dirty_blocks(x, y, x + 500, y + 30);
|
||||
sint16 width = (sint16)gfx_get_string_width(buffer);
|
||||
gfx_set_dirty_blocks(x, y, x + width, y + 30); // 30 is an arbitrary height to catch both strings
|
||||
|
||||
// Write platform information
|
||||
snprintf(ch, 256 - (ch - buffer), "%s (%s)", OPENRCT2_PLATFORM, OPENRCT2_ARCHITECTURE);
|
||||
|
||||
Reference in New Issue
Block a user