diff --git a/src/core/hotkey_config.c b/src/core/hotkey_config.c index d6ad8e0c4b..59abff57e6 100644 --- a/src/core/hotkey_config.c +++ b/src/core/hotkey_config.c @@ -101,6 +101,7 @@ static const char *ini_keys[] = { "storage_order", "show_overlay_efficiency", "show_overlay_food_stocks", + "show_overlay_warehouse", "show_overlay_entertainment", "show_overlay_education", "show_overlay_school", diff --git a/src/core/hotkey_config.h b/src/core/hotkey_config.h index ada2e6ac81..b96a537f9a 100644 --- a/src/core/hotkey_config.h +++ b/src/core/hotkey_config.h @@ -87,6 +87,7 @@ typedef enum { HOTKEY_STORAGE_ORDER, HOTKEY_SHOW_OVERLAY_EFFICIENCY, HOTKEY_SHOW_OVERLAY_FOOD_STOCKS, + HOTKEY_SHOW_OVERLAY_WAREHOUSE, HOTKEY_SHOW_OVERLAY_ENTERTAINMENT, HOTKEY_SHOW_OVERLAY_EDUCATION, HOTKEY_SHOW_OVERLAY_SCHOOL, diff --git a/src/input/hotkey.c b/src/input/hotkey.c index 27c0c6fa3d..af290a634e 100644 --- a/src/input/hotkey.c +++ b/src/input/hotkey.c @@ -335,6 +335,10 @@ static void set_definition_for_action(hotkey_action action, hotkey_definition *d def->action = &data.hotkey_state.show_overlay; def->value = OVERLAY_FOOD_STOCKS; break; + case HOTKEY_SHOW_OVERLAY_WAREHOUSE: + def->action = &data.hotkey_state.show_overlay; + def->value = OVERLAY_WAREHOUSE; + break; case HOTKEY_SHOW_OVERLAY_ENTERTAINMENT: def->action = &data.hotkey_state.show_overlay; def->value = OVERLAY_ENTERTAINMENT; diff --git a/src/translation/english.c b/src/translation/english.c index b81b926281..bee5ce5058 100644 --- a/src/translation/english.c +++ b/src/translation/english.c @@ -769,7 +769,7 @@ static translation_string all_strings[] = { {TR_OVERLAY_MOTHBALL, "Mothballed"}, {TR_OVERLAY_ENEMY, "Enemies"}, {TR_BUILDING_TAVERN_DESC_5, "Citizens love visiting this establishment in their free time to socialize over fine food and wine." }, - {TR_OVERLAY_WAREHOUSES, "Warehouses" }, + {TR_OVERLAY_WAREHOUSES, "Logistics" }, {TR_WINDOW_RACE_BLUE_HORSE_DESCRIPTION, "The Blue team - favourites of Neptune. These are the most promising of Rome's young charioteers who wish to prove themselves." }, {TR_WINDOW_RACE_RED_HORSE_DESCRIPTION, "The Red team - known as the team of the most successful charioteer in the history of Rome - a former oarsman and saviour of a Roman consul." }, {TR_WINDOW_RACE_WHITE_HORSE_DESCRIPTION, "The White team - founded by former gladiators. They have combat in their blood, and even as free men they live for the challenge." }, @@ -817,6 +817,7 @@ static translation_string all_strings[] = { {TR_CITY_WARNING_BUILD_SENATE, "Build a senate"}, {TR_HOTKEY_SHOW_OVERLAY_EFFICIENCY, "Efficiency overlay"}, {TR_HOTKEY_SHOW_OVERLAY_FOOD_STOCKS, "Food Stocks overlay"}, + {TR_HOTKEY_SHOW_OVERLAY_WAREHOUSE, "Logistics overlay" }, {TR_HOTKEY_SHOW_OVERLAY_ENTERTAINMENT, "Entertainment overlay" }, {TR_HOTKEY_SHOW_OVERLAY_EDUCATION, "Education overlay" }, {TR_HOTKEY_SHOW_OVERLAY_SCHOOL, "Schools overlay" }, diff --git a/src/translation/translation.h b/src/translation/translation.h index b227bdd569..0e3edea0df 100644 --- a/src/translation/translation.h +++ b/src/translation/translation.h @@ -812,6 +812,7 @@ typedef enum { TR_CITY_WARNING_BUILD_SENATE, TR_HOTKEY_SHOW_OVERLAY_EFFICIENCY, TR_HOTKEY_SHOW_OVERLAY_FOOD_STOCKS, + TR_HOTKEY_SHOW_OVERLAY_WAREHOUSE, TR_HOTKEY_SHOW_OVERLAY_ENTERTAINMENT, TR_HOTKEY_SHOW_OVERLAY_EDUCATION, TR_HOTKEY_SHOW_OVERLAY_SCHOOL, diff --git a/src/widget/city_overlay_other.c b/src/widget/city_overlay_other.c index 915abd6a26..ac78438f0e 100644 --- a/src/widget/city_overlay_other.c +++ b/src/widget/city_overlay_other.c @@ -108,7 +108,8 @@ static int show_building_mothball(const building *b) static int show_building_warehouses(const building *b) { - return b->type == BUILDING_WAREHOUSE || b->type == BUILDING_WAREHOUSE_SPACE; + return b->type == BUILDING_WAREHOUSE || b->type == BUILDING_WAREHOUSE_SPACE || + b->type == BUILDING_GRANARY || b->type == BUILDING_DEPOT; } static int show_building_storages(const building *b) @@ -156,11 +157,7 @@ static int show_figure_tax_income(const figure *f) static int show_figure_warehouses(const figure *f) { - if (f->type != FIGURE_WAREHOUSEMAN) { - return 0; - } - building *b = building_get(f->building_id); - return b->type == BUILDING_WAREHOUSE; + return f->type == FIGURE_WAREHOUSEMAN || f->type == FIGURE_DEPOT_CART_PUSHER; } static int show_figure_none(const figure *f) diff --git a/src/window/city.c b/src/window/city.c index c44c3d49bb..62a9920fab 100644 --- a/src/window/city.c +++ b/src/window/city.c @@ -521,6 +521,7 @@ static void show_overlay_from_grid_offset(int grid_offset) break; case BUILDING_WAREHOUSE: case BUILDING_WAREHOUSE_SPACE: + case BUILDING_DEPOT: overlay = OVERLAY_WAREHOUSE; break; case BUILDING_DOCK: diff --git a/src/window/hotkey_config.c b/src/window/hotkey_config.c index 994517c580..2eba4668fb 100644 --- a/src/window/hotkey_config.c +++ b/src/window/hotkey_config.c @@ -123,6 +123,7 @@ static hotkey_widget hotkey_widgets[] = { {HOTKEY_SHOW_OVERLAY_CRIME, TR_HOTKEY_SHOW_OVERLAY_CRIME}, {HOTKEY_SHOW_OVERLAY_PROBLEMS, TR_HOTKEY_SHOW_OVERLAY_PROBLEMS}, {HOTKEY_SHOW_OVERLAY_FOOD_STOCKS, TR_HOTKEY_SHOW_OVERLAY_FOOD_STOCKS}, + {HOTKEY_SHOW_OVERLAY_WAREHOUSE, TR_HOTKEY_SHOW_OVERLAY_WAREHOUSE}, {HOTKEY_SHOW_OVERLAY_ENTERTAINMENT, TR_HOTKEY_SHOW_OVERLAY_ENTERTAINMENT}, {HOTKEY_SHOW_OVERLAY_EDUCATION, TR_HOTKEY_SHOW_OVERLAY_EDUCATION}, {HOTKEY_SHOW_OVERLAY_SCHOOL, TR_HOTKEY_SHOW_OVERLAY_SCHOOL},