mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Fix #11286: Fix coloring of banners on tooltip
This patch moves the function that adds coloring to the buffer text into the Buffer struct with a flag. It also changes both Banner printing and Banner tooltip to use the colored version
This commit is contained in:
@@ -368,7 +368,7 @@ int32_t viewport_interaction_get_item_right(const ScreenCoordsXY& screenCoords,
|
||||
size_t argPos = 0;
|
||||
set_map_tooltip_format_arg(argPos, rct_string_id, STR_MAP_TOOLTIP_BANNER_STRINGID_STRINGID);
|
||||
argPos += sizeof(rct_string_id);
|
||||
argPos += banner->FormatTextTo(gMapTooltipFormatArgs + argPos);
|
||||
argPos += banner->FormatTextTo(gMapTooltipFormatArgs + argPos, /*addColour*/ true);
|
||||
set_map_tooltip_format_arg(argPos, rct_string_id, STR_MAP_TOOLTIP_STRINGID_CLICK_TO_MODIFY);
|
||||
argPos += sizeof(rct_string_id);
|
||||
set_map_tooltip_format_arg(argPos, rct_string_id, sceneryEntry->name);
|
||||
|
||||
Reference in New Issue
Block a user