Types/IconData: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Basics == Data of one icon "layer" for the <code>icons</code> property of the Types/IconSpecification. == Mandatory properties == === icon === '''Type''': Types/File...") |
(→Optional properties: 0.17.47) |
||
Line 35: | Line 35: | ||
Values different than 1 specify the scale of the icon on default gui scale. | Values different than 1 specify the scale of the icon on default gui scale. | ||
Scale 2 means that the icon will be 2 times bigger on screen (and more pixelated). | Scale 2 means that the icon will be 2 times bigger on screen (and more pixelated). | ||
=== icon_mipmaps === | |||
'''Type''': [[Types/uint8]] | |||
'''Default''': 0 |
Revision as of 09:21, 10 June 2019
Basics
Data of one icon "layer" for the icons
property of the Types/IconSpecification.
Mandatory properties
icon
Type: Types/FileName
The path to the icon.
icon_size
Type: Types/SpriteSizeType
Mandatory if icon_size
is not specified outside of icons
. The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.
Optional properties
tint
Type: Types/Color
Default: {r=0, g=0, b=0, a=1}
Tint of the icon.
shift
Type: Types/vector
Default: {0, 0}
Used to offset the icon "layer" from the overall icon.
scale
Type: Types/double
Default: 1
Values different than 1 specify the scale of the icon on default gui scale. Scale 2 means that the icon will be 2 times bigger on screen (and more pixelated).
icon_mipmaps
Type: Types/uint8
Default: 0