Changeset - r27241:cab5f743f93a
[Not reviewed]
master
0 2 0
Peter Nelson - 14 months ago 2023-04-25 08:49:44
peter1138@openttd.org
Codechange: Remove STR_TINY_BLACK_DECIMAL.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/depot_gui.cpp
Show inline comments
 
@@ -331,7 +331,7 @@ struct DepotWindow : Window {
 
				SetDParam(0, CeilDiv(u->gcache.cached_total_length * 10, TILE_SIZE));
 
				SetDParam(1, 1);
 
				Rect count = text.WithWidth(this->count_width - WidgetDimensions::scaled.hsep_normal, !rtl);
 
				DrawString(count.left, count.right, count.bottom - FONT_HEIGHT_SMALL + 1, STR_TINY_BLACK_DECIMAL, TC_FROMSTRING, SA_RIGHT); // Draw the counter
 
				DrawString(count.left, count.right, count.bottom - FONT_HEIGHT_SMALL + 1, STR_JUST_DECIMAL, TC_BLACK, SA_RIGHT, false, FS_SMALL); // Draw the counter
 
				break;
 
			}
 

	
 
@@ -663,7 +663,7 @@ struct DepotWindow : Window {
 
				if (this->type == VEH_TRAIN) {
 
					SetDParamMaxValue(0, 1000, 0, FS_SMALL);
 
					SetDParam(1, 1);
 
					this->count_width = GetStringBoundingBox(STR_TINY_BLACK_DECIMAL).width + WidgetDimensions::scaled.hsep_normal;
 
					this->count_width = GetStringBoundingBox(STR_JUST_DECIMAL, FS_SMALL).width + WidgetDimensions::scaled.hsep_normal;
 
				} else {
 
					this->count_width = 0;
 
				}
src/lang/english.txt
Show inline comments
 
@@ -5595,6 +5595,7 @@ STR_JUST_COMMA                          
 
STR_JUST_CURRENCY_SHORT                                         :{CURRENCY_SHORT}
 
STR_JUST_CURRENCY_LONG                                          :{CURRENCY_LONG}
 
STR_JUST_CARGO_LIST                                             :{CARGO_LIST}
 
STR_JUST_DECIMAL                                                :{DECIMAL}
 
STR_JUST_INT                                                    :{NUM}
 
STR_JUST_DATE_TINY                                              :{DATE_TINY}
 
STR_JUST_DATE_SHORT                                             :{DATE_SHORT}
 
@@ -5606,7 +5607,6 @@ STR_JUST_RAW_STRING                     
 
STR_JUST_BIG_RAW_STRING                                         :{BIG_FONT}{RAW_STRING}
 

	
 
# Slightly 'raw' stringcodes with colour or size
 
STR_TINY_BLACK_DECIMAL                                          :{TINY_FONT}{BLACK}{DECIMAL}
 
STR_COMPANY_MONEY                                               :{WHITE}{CURRENCY_LONG}
 
STR_BLACK_DATE_LONG                                             :{BLACK}{DATE_LONG}
 
STR_WHITE_DATE_LONG                                             :{WHITE}{DATE_LONG}
0 comments (0 inline, 0 general)