|
@@ -141,13 +141,13 @@ public:
|
|
|
int icon_y_offset = (FONT_HEIGHT_NORMAL - icon_size.height) / 2;
|
|
|
|
|
|
Dimension exclusive_size = GetSpriteSize(SPR_EXCLUSIVE_TRANSPORT);
|
|
|
int exclusive_width = exclusive_size.width;
|
|
|
int exclusive_y_offset = (FONT_HEIGHT_NORMAL - exclusive_size.height) / 2;
|
|
|
|
|
|
bool rtl = _dynlang.text_dir == TD_RTL;
|
|
|
bool rtl = _current_text_dir == TD_RTL;
|
|
|
uint text_left = left + (rtl ? 0 : icon_width + exclusive_width + 4);
|
|
|
uint text_right = right - (rtl ? icon_width + exclusive_width + 4 : 0);
|
|
|
uint icon_left = rtl ? right - icon_width : left;
|
|
|
uint exclusive_left = rtl ? right - icon_width - exclusive_width - 2 : left + icon_width + 2;
|
|
|
|
|
|
/* Draw list of companies */
|
|
@@ -395,13 +395,13 @@ public:
|
|
|
default: break;
|
|
|
}
|
|
|
|
|
|
if (cargo_needed_for_growth > 0) {
|
|
|
DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_LEFT, y += FONT_HEIGHT_NORMAL, STR_TOWN_VIEW_CARGO_FOR_TOWNGROWTH);
|
|
|
|
|
|
bool rtl = _dynlang.text_dir == TD_RTL;
|
|
|
bool rtl = _current_text_dir == TD_RTL;
|
|
|
uint cargo_text_left = r.left + WD_FRAMERECT_LEFT + (rtl ? 0 : 20);
|
|
|
uint cargo_text_right = r.right - WD_FRAMERECT_RIGHT - (rtl ? 20 : 0);
|
|
|
|
|
|
const CargoSpec *food = FindFirstCargoWithTownEffect(TE_FOOD);
|
|
|
CargoID first_food_cargo = (food != NULL) ? food->Index() : (CargoID)CT_INVALID;
|
|
|
StringID food_name = (food != NULL) ? food->name : STR_CARGO_PLURAL_FOOD;
|