Remove some string additions

This commit is contained in:
Marijn van der Werf authored and Michael Steenbeek committed 2017-05-28 19:49:32 +02:00
1 parent 26196c62c3
commit eaf93430d5
8 files changed
+67 -61

No files matched your search

+3 -3
View File
@@ -34,6 +34,7 @@
#include "../platform/platform.h"
#include "../rct2.h"
#include "../ride/ride.h"
#include "../ride/ride_data.h"
#include "../util/sawyercoding.h"
#include "../util/util.h"
#include "../Version.h"
@@ -43,7 +44,6 @@
#include "../world/scenery.h"
#include "console.h"
#include "viewport.h"
#include "window.h"
#define CONSOLE_BUFFER_SIZE 8192
#define CONSOLE_BUFFER_2_SIZE 256
@@ -463,7 +463,7 @@ static sint32 cc_rides(const utf8 **argv, sint32 argc)
console_printf("Ride modes are specified using integer IDs as given below:");
for (sint32 i = 0; i < RIDE_MODE_COUNT; i++) {
char mode_name[128] = { 0 };
rct_string_id mode_string_id = STR_RIDE_MODE_NORMAL + i;
rct_string_id mode_string_id = RideModeNames[i];
format_string(mode_name, 128, mode_string_id, 0);
console_printf("%02d - %s", i, mode_name);
}
@@ -643,7 +643,7 @@ static sint32 cc_staff(const utf8 **argv, sint32 argc)
console_printf("staff set costume <staff id> <costume id>");
for (sint32 i = 0; i < ENTERTAINER_COSTUME_COUNT; i++) {
char costume_name[128] = { 0 };
rct_string_id costume = STR_STAFF_OPTION_COSTUME_PANDA + i;
rct_string_id costume = StaffCostumeNames[i];
format_string(costume_name, 128, STR_DROPDOWN_MENU_LABEL, &costume);
// That's a terrible hack here. Costume names include inline sprites
// that don't work well with the console, so manually skip past them.
+14
View File
@@ -31,6 +31,20 @@
#include "peep.h"
#include "staff.h"
const rct_string_id StaffCostumeNames[] = {
STR_STAFF_OPTION_COSTUME_PANDA,
STR_STAFF_OPTION_COSTUME_TIGER,
STR_STAFF_OPTION_COSTUME_ELEPHANT,
STR_STAFF_OPTION_COSTUME_ROMAN,
STR_STAFF_OPTION_COSTUME_GORILLA,
STR_STAFF_OPTION_COSTUME_SNOWMAN,
STR_STAFF_OPTION_COSTUME_KNIGHT,
STR_STAFF_OPTION_COSTUME_ASTRONAUT,
STR_STAFF_OPTION_COSTUME_BANDIT,
STR_STAFF_OPTION_COSTUME_SHERIFF,
STR_STAFF_OPTION_COSTUME_PIRATE,
};
uint32 gStaffPatrolAreas[204 * 128];
uint8 gStaffModes[204];
uint16 gStaffDrawPatrolAreas;
+4 -1
View File
@@ -57,9 +57,12 @@ enum ENTERTAINER_COSTUME {
ENTERTAINER_COSTUME_BANDIT,
ENTERTAINER_COSTUME_SHERIFF,
ENTERTAINER_COSTUME_PIRATE,
ENTERTAINER_COSTUME_COUNT,
ENTERTAINER_COSTUME_COUNT
};
extern const rct_string_id StaffCostumeNames[ENTERTAINER_COSTUME_COUNT];
extern uint32 gStaffPatrolAreas[204 * 128];
extern uint8 gStaffModes[204];
extern uint16 gStaffDrawPatrolAreas;
+40
View File
@@ -3141,3 +3141,43 @@ const track_colour_preset_list RideColourPresets[] = {
{ COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_SATURATED_GREEN },
),
};
const rct_string_id RideModeNames[] = {
STR_RIDE_MODE_NORMAL,
STR_RIDE_MODE_CONTINUOUS_CIRCUIT,
STR_RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE,
STR_RIDE_MODE_POWERED_LAUNCH_PASSTROUGH,
STR_RIDE_MODE_SHUTTLE,
STR_RIDE_MODE_BOAT_HIRE,
STR_RIDE_MODE_UPWARD_LAUNCH,
STR_RIDE_MODE_ROTATING_LIFT,
STR_RIDE_MODE_STATION_TO_STATION,
STR_RIDE_MODE_SINGLE_RIDE_PER_ADMISSION,
STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION,
STR_RIDE_MODE_MAZE,
STR_RIDE_MODE_RACE,
STR_RIDE_MODE_DODGEMS,
STR_RIDE_MODE_SWING,
STR_RIDE_MODE_SHOP_STALL,
STR_RIDE_MODE_ROTATION,
STR_RIDE_MODE_FORWARD_ROTATION,
STR_RIDE_MODE_BACKWARD_ROTATION,
STR_RIDE_MODE_FILM_AVENGING_AVIATORS,
STR_RIDE_MODE_3D_FILM_MOUSE_TAILS,
STR_RIDE_MODE_SPACE_RINGS,
STR_RIDE_MODE_BEGINNERS,
STR_RIDE_MODE_LIM_POWERED_LAUNCH,
STR_RIDE_MODE_FILM_THRILL_RIDERS,
STR_RIDE_MODE_3D_FILM_STORM_CHASERS,
STR_RIDE_MODE_3D_FILM_SPACE_RAIDERS,
STR_RIDE_MODE_INTENSE,
STR_RIDE_MODE_BERSERK,
STR_RIDE_MODE_HAUNTED_HOUSE,
STR_RIDE_MODE_CIRCUS_SHOW,
STR_RIDE_MODE_DOWNWARD_LAUNCH,
STR_RIDE_MODE_CROOKED_HOUSE,
STR_RIDE_MODE_FREEFALL_DROP,
STR_RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED,
STR_RIDE_MODE_POWERED_LAUNCH,
STR_RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED_MODE,
};
+2
View File
@@ -180,4 +180,6 @@ extern const uint8 RideConstructionDefaultTrackType[RIDE_TYPE_COUNT];
extern const track_colour_preset_list RideColourPresets[RIDE_TYPE_COUNT];
extern const rct_string_id RideModeNames[RIDE_MODE_COUNT];
#endif
-40
View File
@@ -1087,46 +1087,6 @@ static const rct_string_id MusicStyleNames[] = {
STR_MUSIC_STYLE_CANDY_STYLE,
};
static const rct_string_id RideModeNames[] = {
STR_RIDE_MODE_NORMAL,
STR_RIDE_MODE_CONTINUOUS_CIRCUIT,
STR_RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE,
STR_RIDE_MODE_POWERED_LAUNCH_PASSTROUGH,
STR_RIDE_MODE_SHUTTLE,
STR_RIDE_MODE_BOAT_HIRE,
STR_RIDE_MODE_UPWARD_LAUNCH,
STR_RIDE_MODE_ROTATING_LIFT,
STR_RIDE_MODE_STATION_TO_STATION,
STR_RIDE_MODE_SINGLE_RIDE_PER_ADMISSION,
STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION,
STR_RIDE_MODE_MAZE,
STR_RIDE_MODE_RACE,
STR_RIDE_MODE_DODGEMS,
STR_RIDE_MODE_SWING,
STR_RIDE_MODE_SHOP_STALL,
STR_RIDE_MODE_ROTATION,
STR_RIDE_MODE_FORWARD_ROTATION,
STR_RIDE_MODE_BACKWARD_ROTATION,
STR_RIDE_MODE_FILM_AVENGING_AVIATORS,
STR_RIDE_MODE_3D_FILM_MOUSE_TAILS,
STR_RIDE_MODE_SPACE_RINGS,
STR_RIDE_MODE_BEGINNERS,
STR_RIDE_MODE_LIM_POWERED_LAUNCH,
STR_RIDE_MODE_FILM_THRILL_RIDERS,
STR_RIDE_MODE_3D_FILM_STORM_CHASERS,
STR_RIDE_MODE_3D_FILM_SPACE_RAIDERS,
STR_RIDE_MODE_INTENSE,
STR_RIDE_MODE_BERSERK,
STR_RIDE_MODE_HAUNTED_HOUSE,
STR_RIDE_MODE_CIRCUS_SHOW,
STR_RIDE_MODE_DOWNWARD_LAUNCH,
STR_RIDE_MODE_CROOKED_HOUSE,
STR_RIDE_MODE_FREEFALL_DROP,
STR_RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED,
STR_RIDE_MODE_POWERED_LAUNCH,
STR_RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED_MODE,
};
typedef struct window_ride_maze_design_option {
rct_string_id text;
uint32 sprite;
+2 -16
View File
@@ -290,20 +290,6 @@ uint32 window_staff_page_enabled_widgets[] = {
(1 << WIDX_TAB_3)
};
static const uint32 staffCostumeNames[] = {
STR_STAFF_OPTION_COSTUME_PANDA,
STR_STAFF_OPTION_COSTUME_TIGER,
STR_STAFF_OPTION_COSTUME_ELEPHANT,
STR_STAFF_OPTION_COSTUME_ROMAN,
STR_STAFF_OPTION_COSTUME_GORILLA,
STR_STAFF_OPTION_COSTUME_SNOWMAN,
STR_STAFF_OPTION_COSTUME_KNIGHT,
STR_STAFF_OPTION_COSTUME_ASTRONAUT,
STR_STAFF_OPTION_COSTUME_BANDIT,
STR_STAFF_OPTION_COSTUME_SHERIFF,
STR_STAFF_OPTION_COSTUME_PIRATE,
};
static uint8 _availableCostumes[ENTERTAINER_COSTUME_COUNT];
/**
@@ -805,7 +791,7 @@ void window_staff_options_invalidate(rct_window *w)
window_staff_options_widgets[WIDX_CHECKBOX_4].type = WWT_EMPTY;
window_staff_options_widgets[WIDX_COSTUME_BOX].type = WWT_DROPDOWN;
window_staff_options_widgets[WIDX_COSTUME_BTN].type = WWT_DROPDOWN_BUTTON;
window_staff_options_widgets[WIDX_COSTUME_BOX].text = staffCostumeNames[peep->sprite_type - 4];
window_staff_options_widgets[WIDX_COSTUME_BOX].text = StaffCostumeNames[peep->sprite_type - 4];
break;
case STAFF_TYPE_HANDYMAN:
window_staff_options_widgets[WIDX_CHECKBOX_1].type = WWT_CHECKBOX;
@@ -1309,7 +1295,7 @@ void window_staff_options_mousedown(rct_widgetindex widgetIndex, rct_window* w,
if (costume == peep->sprite_type) {
itemsChecked = 1 << i;
}
gDropdownItemsArgs[i] = staffCostumeNames[costume];
gDropdownItemsArgs[i] = StaffCostumeNames[costume];
gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL;
}
+2 -1
View File
@@ -21,6 +21,7 @@
#include "../interface/widget.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"
#include "../ride/ride_data.h"
#include "../ride/track.h"
#include "../sprites.h"
#include "../world/footpath.h"
@@ -1712,7 +1713,7 @@ static void window_tile_inspector_paint(rct_window *w, rct_drawpixelinfo *dpi)
// Ride
sint16 rideId = mapElement->properties.track.ride_index;
rct_ride *ride = get_ride(rideId);
rct_string_id rideType = STR_RIDE_NAME_SPIRAL_ROLLER_COASTER + ride->type;
rct_string_id rideType = RideNaming[ride->type].name;
gfx_draw_string_left(dpi, STR_TILE_INSPECTOR_TRACK_RIDE_TYPE, &rideType, COLOUR_DARK_GREEN, x, y);
gfx_draw_string_left(dpi, STR_TILE_INSPECTOR_TRACK_RIDE_ID, &rideId, COLOUR_DARK_GREEN, x, y + 11);
set_format_arg(0, rct_string_id, ride->name);