Changes

m
Text replacement - "i.e. " to "''i.e.,'' "
Line 42: Line 42:  
:* code which only uses tile coordinates (not pixel coordinates).
 
:* code which only uses tile coordinates (not pixel coordinates).
   −
: You can test your mod by setting the zoom to maximum and the UI scale to minimum (i.e. have them at different values) or vice versa; in particular check any logic which handles pixel positions, like menus clicking. If everything looks fine, you can skip the rest of this section.
+
: You can test your mod by setting the zoom to maximum and the UI scale to minimum (''i.e.,'' have them at different values) or vice versa; in particular check any logic which handles pixel positions, like menus clicking. If everything looks fine, you can skip the rest of this section.
    
; What does this mean for affected mods?
 
; What does this mean for affected mods?
Line 86: Line 86:     
The feature is based on two files:
 
The feature is based on two files:
* <samp>Data/PaintData</samp> lists the buildings which can be painted, the group names shown in the UI, and the relative ranges for the brightness slider. More info from the game developers: {{quote|To explain: the hue and saturation values are applied as is, but the brightness value is actually tracked as a "relative" brightness, i.e. a value halfway through the slider bar actually corresponds to a value that's lerped halfway between the lowest acceptable brightness and highest acceptable brightness.
+
* <samp>Data/PaintData</samp> lists the buildings which can be painted, the group names shown in the UI, and the relative ranges for the brightness slider. More info from the game developers: {{quote|To explain: the hue and saturation values are applied as is, but the brightness value is actually tracked as a "relative" brightness, ''i.e.,'' a value halfway through the slider bar actually corresponds to a value that's lerped halfway between the lowest acceptable brightness and highest acceptable brightness.
    
This is so that a single paint color will look generally the same when applied across multiple buildings, and is also used to ensure brightness values that are overbright or too dark aren't usable as they generally look bad. This is also used to prevent values that shade in weird ways.}}
 
This is so that a single paint color will look generally the same when applied across multiple buildings, and is also used to ensure brightness values that are overbright or too dark aren't usable as they generally look bad. This is also used to prevent values that shade in weird ways.}}
106,033

edits