Changeset - r19648:88f50b64e3d1
[Not reviewed]
master
0 2 0
planetmaker - 12 years ago 2012-10-09 19:09:45
planetmaker@openttd.org
(svn r24579) -Change [FS#5322] (r21961): Show no loading indicator when orders are 'no unloading and no loading' (sbr)
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -3754,12 +3754,14 @@ STR_TEXTFILE_VIEW_LICENCE               
 
STR_PERCENT_UP_SMALL                                            :{TINY_FONT}{WHITE}{NUM}%{UP_ARROW}
 
STR_PERCENT_UP                                                  :{WHITE}{NUM}%{UP_ARROW}
 
STR_PERCENT_DOWN_SMALL                                          :{TINY_FONT}{WHITE}{NUM}%{DOWN_ARROW}
 
STR_PERCENT_DOWN                                                :{WHITE}{NUM}%{DOWN_ARROW}
 
STR_PERCENT_UP_DOWN_SMALL                                       :{TINY_FONT}{WHITE}{NUM}%{UP_ARROW}{DOWN_ARROW}
 
STR_PERCENT_UP_DOWN                                             :{WHITE}{NUM}%{UP_ARROW}{DOWN_ARROW}
 
STR_PERCENT_NONE_SMALL                                          :{TINY_FONT}{WHITE}{NUM}%
 
STR_PERCENT_NONE                                                :{WHITE}{NUM}%
 

	
 
# Income 'floats'
 
STR_INCOME_FLOAT_COST_SMALL                                     :{TINY_FONT}{RED}Cost: {CURRENCY_LONG}
 
STR_INCOME_FLOAT_COST                                           :{RED}Cost: {CURRENCY_LONG}
 
STR_INCOME_FLOAT_INCOME_SMALL                                   :{TINY_FONT}{GREEN}Income: {CURRENCY_LONG}
 
STR_INCOME_FLOAT_INCOME                                         :{GREEN}Income: {CURRENCY_LONG}
src/vehicle.cpp
Show inline comments
 
@@ -1256,12 +1256,14 @@ uint8 CalcPercentVehicleFilled(const Veh
 
		}
 
	}
 

	
 
	if (colour != NULL) {
 
		if (unloading == 0 && loading) {
 
			*colour = STR_PERCENT_UP;
 
		} else if (unloading == 0 && !loading) {
 
			*colour = STR_PERCENT_NONE;
 
		} else if (cars == unloading || !loading) {
 
			*colour = STR_PERCENT_DOWN;
 
		} else {
 
			*colour = STR_PERCENT_UP_DOWN;
 
		}
 
	}
0 comments (0 inline, 0 general)