# HG changeset patch # User glx22 # Date 2023-04-28 15:02:34 # Node ID 32eeeb197cbd176d2a19ce8f933a6806bdf927dd # Parent 2db9d19db72db02201e9485f235250ee143d4f7e Codechange: Remove STR_TINY_RIGHT_ARROW diff --git a/src/lang/english.txt b/src/lang/english.txt --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -5591,6 +5591,7 @@ STR_VEHICLE_NAME STR_WAYPOINT_NAME :{WAYPOINT} STR_JUST_CARGO :{CARGO_LONG} +STR_JUST_RIGHT_ARROW :{RIGHT_ARROW} STR_JUST_CHECKMARK :{CHECKMARK} STR_JUST_COMMA :{COMMA} STR_JUST_CURRENCY_SHORT :{CURRENCY_SHORT} @@ -5610,7 +5611,6 @@ STR_JUST_BIG_RAW_STRING # Slightly 'raw' stringcodes with colour or size STR_WHITE_SIGN :{WHITE}{SIGN} STR_TINY_BLACK_HEIGHT :{TINY_FONT}{BLACK}{HEIGHT} -STR_TINY_RIGHT_ARROW :{TINY_FONT}{RIGHT_ARROW} STR_BLACK_1 :{BLACK}1 STR_BLACK_2 :{BLACK}2 diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -363,7 +363,7 @@ Dimension BaseVehicleListWindow::GetActi void BaseVehicleListWindow::OnInit() { - this->order_arrow_width = GetStringBoundingBox(STR_TINY_RIGHT_ARROW).width; + this->order_arrow_width = GetStringBoundingBox(STR_JUST_RIGHT_ARROW, FS_SMALL).width; this->SetCargoFilterArray(); } @@ -1560,7 +1560,7 @@ static void DrawSmallOrderList(const Veh VehicleOrderID oid = start; do { - if (oid == v->cur_real_order_index) DrawString(left, right, y, STR_TINY_RIGHT_ARROW, TC_BLACK); + if (oid == v->cur_real_order_index) DrawString(left, right, y, STR_JUST_RIGHT_ARROW, TC_BLACK, SA_LEFT, false, FS_SMALL); if (order->IsType(OT_GOTO_STATION)) { SetDParam(0, order->GetDestination());