Skip to content

Commit

Permalink
Change armory cartpusher name
Browse files Browse the repository at this point in the history
  • Loading branch information
Keriew committed May 18, 2024
1 parent 657c726 commit a7a699f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/translation/english.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,8 @@ static translation_string all_strings[] = {
{TR_USER_DIRETORIES_WINDOW_USER_PATH, "User directory:" },
{TR_USER_DIRECTORIES_USER_PATH_CHANGED_TITLE, "User path changed"},
{TR_USER_DIRECTORIES_USER_PATH_CHANGED_TEXT, "The user path was successfully changed.\nDo you want to copy over your files?"},
{TR_USER_DIRECTORIES_USER_PATH_CHANGED_OVERWRITE, "Overwrite existing files"}
{TR_USER_DIRECTORIES_USER_PATH_CHANGED_OVERWRITE, "Overwrite existing files"},
{TR_FIGURE_TYPE_ARMORY_CARTPUSHER, "Armory deliverymen"}

};

Expand Down
1 change: 1 addition & 0 deletions src/translation/translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,7 @@ typedef enum {
TR_USER_DIRECTORIES_USER_PATH_CHANGED_TITLE,
TR_USER_DIRECTORIES_USER_PATH_CHANGED_TEXT,
TR_USER_DIRECTORIES_USER_PATH_CHANGED_OVERWRITE,
TR_FIGURE_TYPE_ARMORY_CARTPUSHER,
TRANSLATION_MAX_KEY
} translation_key;

Expand Down
8 changes: 6 additions & 2 deletions src/window/building/figures.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,12 @@ static void draw_cartpusher(building_info_context *c, figure *f)
image_draw(big_people_image(f->type), c->x_offset + 28, c->y_offset + 112, COLOR_MASK_NONE, SCALE_NONE);
}
lang_text_draw(65, f->name, c->x_offset + 90, c->y_offset + 108, FONT_LARGE_BROWN);
int width = lang_text_draw(64, f->type, c->x_offset + 92, c->y_offset + 139, FONT_NORMAL_BROWN);

int width = 0;
if (building_get(f->building_id)->type == BUILDING_ARMOURY) {
width = text_draw(translation_for(TR_FIGURE_TYPE_ARMORY_CARTPUSHER), c->x_offset + 92, c->y_offset + 139, FONT_NORMAL_BROWN, 0);
} else {
width = lang_text_draw(64, f->type, c->x_offset + 92, c->y_offset + 139, FONT_NORMAL_BROWN);
}
if (f->action_state != FIGURE_ACTION_132_DOCKER_IDLING && f->resource_id) {
int resource = f->resource_id;
image_draw(resource_get_data(resource)->image.icon,
Expand Down

0 comments on commit a7a699f

Please sign in to comment.