Changeset - r27251:32eeeb197cbd
[Not reviewed]
master
0 2 0
glx22 - 14 months ago 2023-04-28 15:02:34
glx@openttd.org
Codechange: Remove STR_TINY_RIGHT_ARROW
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -5588,12 +5588,13 @@ STR_SIGN_NAME                           
 
STR_STATION_NAME                                                :{STATION}
 
STR_TOWN_NAME                                                   :{TOWN}
 
STR_VEHICLE_NAME                                                :{VEHICLE}
 
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}
 
STR_JUST_CURRENCY_LONG                                          :{CURRENCY_LONG}
 
STR_JUST_CARGO_LIST                                             :{CARGO_LIST}
 
STR_JUST_DECIMAL                                                :{DECIMAL}
 
@@ -5607,13 +5608,12 @@ STR_JUST_STRING_STRING                  
 
STR_JUST_RAW_STRING                                             :{RAW_STRING}
 
STR_JUST_BIG_RAW_STRING                                         :{BIG_FONT}{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
 
STR_BLACK_3                                                     :{BLACK}3
 
STR_BLACK_4                                                     :{BLACK}4
 
STR_BLACK_5                                                     :{BLACK}5
src/vehicle_gui.cpp
Show inline comments
 
@@ -360,13 +360,13 @@ Dimension BaseVehicleListWindow::GetActi
 

	
 
	return d;
 
}
 

	
 
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();
 
}
 

	
 
/**
 
 * Display the Action dropdown window.
 
 * @param show_autoreplace If true include the autoreplace item.
 
@@ -1557,13 +1557,13 @@ static void DrawSmallOrderList(const Veh
 
	int l_offset = rtl ? 0 : order_arrow_width;
 
	int r_offset = rtl ? order_arrow_width : 0;
 
	int i = 0;
 
	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());
 
			DrawString(left + l_offset, right - r_offset, y, STR_STATION_NAME, TC_BLACK, SA_LEFT, false, FS_SMALL);
 

	
 
			y += FONT_HEIGHT_SMALL;
0 comments (0 inline, 0 general)