WindowDef (GUI item type)
windowDef example preview
Pretty much the standard visual item type. When creating GUIs , around 98% of the items you use in your script will be windowDefs. Also, all other item types work as extended windowDefs; from an OOP perspective, think of windowDef as a class and all other item types as being its subclasses.
All in all, a windowDef can contain text strings; it can act as a button; it can work as an static decoration graphic; it can work as an invisible element that serve other scripting purposes, such as containing a code execution timeline; it can also hold specific, separated data.
Additional properties
None
Example(s)
windowDef myItem {
rect 18,12,236,226
visible 1
background "textures/stripes"
matcolor 1, 1, 1, 1
backcolor 0.5, 0.5, 0.5, 1
bordersize 2
bordercolor 0.75, 0.75, 0.75, 1
matscalex 2
matscaley 2
forecolor 1, 0.5, 0.5, 0.9
text "It was a dark and stormy night..."
textscale 1
font "fonts/english"
}