Set font size per map
-
Currently, TripleA allows you to position the units counter with respect to your units. This is done in
map.properties
by settingunits.counter.offset.width=X units.counter.offset.height=Y
(where X and Y are positive integer numbers or zero, with zero as default)
However, I think it is unrefined to position such counter without being able to determine its dimensions.
Currently, the user can set the stack number size via the "View/Edit Map Font and Color/Font Size".
I request to make that setting applying per map (like the "Map Zoom"), and I request to have a way to set it in
map.properties
, for example by settingunits.counter.size=A
(where A is a positive integer number)
The user should still be able to override this setting but will have it as set in the map the first time it opens any game of the map (just like the zoom settings currently already work).
I have two more ancillary requests.
I request to have a setting for the stack number to be expanded right-to-left (keeping the current left-to-right behaviour as default), for example by setting
units.counter.drawFromRight=?
(where ? is "true" or "false")
(It is actually "bottom-right", but the default is "bottom-left", so being at the "bottom" is unaffected.)
(I'm not sure if "draw" is the best term for it.)
Practically, if this setting is false, nothing changes from how it works now, and, if this setting is true, when (for example) you go from 9 to 10 in your stack number, the "0" of the 10 remains where the "9" was and the "1" of the 10 is drawn to the left of it.
I request to be able to determine whether or not to draw the "1" when the stack number is 1 (which is typically but not exclusively the case when there is only one unit of that type in that territory), for example by setting
units.counter.showAlways=?
(where ? is "true" or "false")
This means that no counter is shown when the counter is 1 if false (which is the current behaviour) and the counter is always shown if true (so single units will have no counter in the first case and a counter of 1 in the second case).
(I would also have a
territory.production.showAlways
for showing a "0" when the territory has 0 production value.)
Of course, also being able to set whatever else you can set for the map via "View/Edit Map Font and Color" would be good (but unnecessary).