-
Notifications
You must be signed in to change notification settings - Fork 4
State
A Window state. All Windows have a base state, and generally some additional states. Additional Window states define a deviation of the base state settings. Means, you don't need to specify all possiblу parameters, in majority of cases an alternate state will inherit [most of] base state settings.
All states have the following 4 brushes:
(stateName): Used to render the state background.
(stateName)Outline: Used to render the state outline.
(stateName)Font: Used to render the font.
(stateName)FontStroke: Used to render the front stroke.
Settings that modify the window background.
Float. The X radius to draw corners with.
Default Value: 0
Float. The Y radius to draw corners with.
Default Value: 0
Settings that modify the background outline.
Float. The width of the background outline.
Default Value: 0
Settings related to text rendering.
String. The font to use.
Default Value: Arial
Float. The font size.
Default Value: 12
Enumeration. How stretched out the font is, possible values: Ultra Condensed, Extra Condensed, Condensed, Semi Condensed, Normal, Medium, Semi Expanded, Expanded, Extra Expanded, Ultra Expanded.
Default Value: Normal
Enumeration. The font style, possible values: Normal, Oblique, Italic.
Default Value: Normal
Enumeration. The weight of the font, possible values: Thin, Extra Light, Ultra Light, Light, Semi Light, Normal, Regular, Medium, Semi Bold, Bold, Extra Bold, Ultra Bold, Black, Heavy, Extra Black, Ultra Black.
Default Value: Normal
Enumeration. The direction in which reading progresses, possible values: LeftToRight, RightToLeft.
Default Value: LeftToRight
Enumeration. The horizontal alignment of the text, possible values: Left, Center, Right.
Default Value: Left
Rectangle. The offset of the text rectangle from the Window edges.
Default Value: 0 0 0 0
Float. Text rotation, in degrees.
Default Value: 0
Enumeration. When text needs to be cut of due to size constraints, how much to cut off. Possible values: None, Character, Word.
Default Value: Word
Enumeration. The vertical alignment of the text. Possible values: Top, Middle, Bottom.
Default Value: Top
Enumeration. Defines how to wrap text when necessary. Possible values: Wrap, NoWrap. Default Value: NoWrap
Settings that modify the font stroke.
Float. The width of the font stroke.
Default Value: 0