1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Refactor hard-coded strings to use string_ids.h constants (and couple sprites too) (#3658)

This commit is contained in:
Martin Černáč
2016-05-18 22:51:37 +02:00
committed by Ted John
parent f1fe46c52c
commit 3bdc06dc25
17 changed files with 220 additions and 151 deletions

View File

@@ -247,7 +247,7 @@ void screenshot_giant()
free(dpi.bits);
// Show user that screenshot saved successfully
rct_string_id stringId = 3165;
rct_string_id stringId = STR_PLACEHOLDER;
strcpy((char*)language_get_string(stringId), path_get_filename(path));
set_format_arg(0, uint16, stringId);
window_error_open(STR_SCREENSHOT_SAVED_AS, -1);

View File

@@ -310,7 +310,7 @@ int viewport_interaction_get_item_right(int x, int y, viewport_interaction_info
sceneryEntry = get_footpath_item_entry(footpath_element_get_path_scenery_index(mapElement));
set_map_tooltip_format_arg(0, uint16, 1164);
if (mapElement->flags & 0x20) {
set_map_tooltip_format_arg(2, uint16, 3124);
set_map_tooltip_format_arg(2, uint16, STR_BROKEN);
set_map_tooltip_format_arg(4, uint16, sceneryEntry->name);
} else {
set_map_tooltip_format_arg(2, uint16, sceneryEntry->name);
@@ -325,7 +325,7 @@ int viewport_interaction_get_item_right(int x, int y, viewport_interaction_info
break;
set_map_tooltip_format_arg(0, uint16, 1164);
set_map_tooltip_format_arg(2, uint16, 3192);
set_map_tooltip_format_arg(2, uint16, STR_OBJECT_SELECTION_PARK_ENTRANCE);
return info->type;
case VIEWPORT_INTERACTION_ITEM_WALL: