too wide sprites in purchase list
Looking at http://hg.openttd.org/openttd/trunk.hg/rev/33d14671534c which is a follow-up to http://dev.openttdcoop.org/issues/1128 it should probably be considered to shorten the sprites in the purchase view as it will start to glitch as soon as people assign custom names to vehicle types.
Maybe smaller-scale versions and / or with the flag in the background can be provided instead of the current situation.
#6 Updated by DJNekkid over 9 years ago
Then I vote for a new action0 property, or a var2 callback, "cannot rename vehicle"
And tbh, imho, if people start to rename the vehicles i think that is their problem, and not ours. We provide a (hopefully) good set that people use, and imho is the flag and the power-icon one of the trademarks of the 2cc-set.
By default is the purchase window 60 px (or 61 if we dont count 1px separation between gfx and text). Flag + icon is 32px currently, but can probably shave of 1px (currently 2px separation between icon and flag).
1 px between text and icon
1 px between icon and flag
1 px between flag and train
61-34 = 27 px for the train.
There is currently 53px used for the train. (total 94px from left border to the text).
#8 Updated by Rubidium about 9 years ago
In OpenTTD string codes are resolved to plain text and that text is resolved to characters in a font, which are then drawn. Those characters are basically black/white, but can be recoloured. In no case would you get properly coloured flags using this method.
As such the use of string codes to solve your problem the proposed way is a bigger hack than using the SETX string code.