UI node behaviours/2.5
This page is autogenerated. Please do not edit it. Use the talk page
or update the source code and generate the wikicode it with ./contrib/scripts/ui/wikidoc.py
.
abstractbase
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
baseid | V_INT | Identify the base, from a base ID, the node use. |
abstractnode
Every node extends this node
Properties | ||
---|---|---|
Name | Type | Description |
align | V_INT | Used to set the position of the node when the parent use a layout manager. Else it do nothing. Available values are: LAYOUTALIGN_TOPLEFT, LAYOUTALIGN_TOP, LAYOUTALIGN_TOPRIGHT, LAYOUTALIGN_LEFT, LAYOUTALIGN_MIDDLE, LAYOUTALIGN_RIGHT, LAYOUTALIGN_BOTTOMLEFT, LAYOUTALIGN_BOTTOM, LAYOUTALIGN_BOTTOMRIGHT, LAYOUTALIGN_FILL. Allowed value depend the layout manager used. The update to date list is into ui_node_panel.c |
bgcolor | V_COLOR | Background color we want to display. |
border | V_INT | Border size we want to display. |
bordercolor | V_COLOR | Border color we want to display. |
color | V_COLOR | Text color the node will use. |
contentalign | V_UI_ALIGN | Alignement of the text into the node, or elements into blocks. |
disabled | V_BOOL | If true, the node is disabled. Few nodes support it, fell free to request an update. |
excluderect | V_UI_EXCLUDERECT | Special attribute only use into the node description to exclude part of the node (see also ghost ). Rectangle position is relative to the node.
|
font | V_CVAR_OR_STRING | Text font the node will use. @todo use V_REF_OF_STRING when its possible ('font' is never a cvar).
|
ghost | V_BOOL | If true, the node is not tangible. We click through it, then it will not receive mouse event. |
height | V_FLOAT | Height of the node (see also size )
|
indexed | V_BOOL | If true, the node name is indexed into the window. We can access to the node with the path "windowName#nodeName" |
invis | V_BOOL | If true, the node is not displayed nor or activatable. |
left | V_FLOAT | Left position of the node (see also pos )
|
num | V_INT | Used share an int, only used by 1 behaviour @todo move it to the right behaviour, delete it
|
padding | V_INT | Padding size we want to use. Few node support it. |
pos | V_POS | Top-left position of the node |
selectcolor | V_COLOR | Text color the node will use when something is selected. |
size | V_POS | Size of the node |
string | V_CVAR_OR_LONGSTRING | Text the node will display. |
tooltip | V_CVAR_OR_LONGSTRING | Tooltip we want to use. |
top | V_FLOAT | Top position of the node (see also pos )
|
visiblewhen | V_UI_IF | When invis property is false (default value); this condition say if the node is visible or not. It use a script expression.
|
width | V_FLOAT | Width of the node (see also size )
|
Callback event | ||
Name | Type | Description |
onchange | V_UI_ACTION | Called when the internal content of the nde change. Each behaviour use it how they need it. @todo Move it where it is need.
|
onclick | V_UI_ACTION | Called when the user click with left button into the node. |
onmclick | V_UI_ACTION | Called when the user click with middle button into the node. |
onmouseenter | V_UI_ACTION | Called when the mouse enter over the node. |
onmouseleave | V_UI_ACTION | Called when the mouse go out of the node. |
onrclick | V_UI_ACTION | Called when the user click with right button into the node. |
onwheel | V_UI_ACTION | Called when the user use the mouse wheel over the node. |
onwheeldown | V_UI_ACTION | Called when the user use the mouse wheel down over the node. |
onwheelup | V_UI_ACTION | Called when the user use the mouse wheel up over the node. |
Methods | ||
Name | Type | Description |
createchild | V_UI_NODEMETHOD | Create a new child with name and type. |
delete | V_UI_NODEMETHOD | Delete the node and remove it from his parent. |
removeallchild | V_UI_NODEMETHOD | Remove all child from the node (only dynamic allocated nodes). |
abstractoption
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
count | V_INT | number of elements contain the node |
cvar | V_UI_CVAR | Define the cvar containing the value of the current selected option |
dataid | V_UI_DATAID | Optional. Data ID we want to use. It must be an option list. It substitute to the inline options |
fullsize | V_INT | full vertical size (proportional to the number of elements the node contain) |
lineheight | V_INT | Optional. We can define the height of the block containing an option. |
viewpos | V_INT | position of the vertical view (into the full number of elements the node contain) |
viewsize | V_INT | size of the vertical view (proportional to the number of elements the node can display without moving) |
Callback event | ||
Name | Type | Description |
onviewchange | V_UI_ACTION | Called when one of the properties viewpos/viewsize/fullsize change |
abstractscrollable
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
fullsize | V_INT | full vertical size (proportional to the number of elements the node contain) |
viewpos | V_INT | position of the vertical view (into the full number of elements the node contain) |
viewsize | V_INT | size of the vertical view (proportional to the number of elements the node can display without moving) |
Callback event | ||
Name | Type | Description |
onviewchange | V_UI_ACTION | Called when one of the properties viewpos/viewsize/fullsize change |
Methods | ||
Name | Type | Description |
movedown | V_UI_NODEMETHOD | Call it to vertically scroll the document down |
moveend | V_UI_NODEMETHOD | Call it to vertically move the scroll to the end of the document |
movehome | V_UI_NODEMETHOD | Call it to vertically reset the scroll position to 0 |
moveup | V_UI_NODEMETHOD | Call it to vertically scroll the document up |
pagedown | V_UI_NODEMETHOD | Call it to vertically scroll the document down |
pageup | V_UI_NODEMETHOD | Call it to vertically scroll the document up |
abstractscrollbar
- This node inherite #abstractnode. Check this node for more properties.
The abstractscrollbar
is an abstract node (we can't instantiate it). It exists to share same properties for vertical and horizontal scrollbar. At the moment only the concrete vscrollbar
.
Properties | ||
---|---|---|
Name | Type | Description |
current | V_INT | Current position of the scroll. Image of the viewpos from abstractscrollable node.
|
fullsize | V_INT | Image of the fullsize from abstractscrollable node.
|
hidewhenunused | V_BOOL | If true, hide the scroll when the position is 0 and can't change (when viewsize >= fullsize ).
|
viewsize | V_INT | Image of the viewsize from abstractscrollable node.
|
abstractvalue
- This node inherite #abstractnode. Check this node for more properties.
The abstractvalue node is an abstract node (we can't instanciate it). It provide common properties to concrete nodes, to manage a value in a range.
Properties | ||
---|---|---|
Name | Type | Description |
current | V_CVAR_OR_FLOAT | Current value of the node. It should be a cvar |
delta | V_CVAR_OR_FLOAT | Value of a positive step. Must be bigger than 1. |
lastdiff | V_FLOAT | Callback value set when before calling onChange. It is used to know the change apply by the user @Deprecated
|
max | V_CVAR_OR_FLOAT | Maximum value we can set to the node. It can be a cvar. Default value is 0. |
min | V_CVAR_OR_FLOAT | Minimum value we can set to the node. It can be a cvar. Default value is 1. |
shiftincreasefactor | V_FLOAT | Defines a factor that is applied to the delta value when the shift key is held down. |
bar
- This node inherite #abstractvalue. Check this node for more properties.
The bar node display a graphical horizontal slider. We can use it to allow the user to select a value in a range. Or we can use it do only display a value (in this case, you must disable it).
Properties | ||
---|---|---|
Name | Type | Description |
direction | V_ALIGN | Orientation of the bar. Default value "cr". Other available values are "uc", "lc", "cr", "cl" |
nohover | V_BOOL | there is no hover effect if this is true |
readonly | V_BOOL | if true, the user can't edit the content |
baseinventory
- This node inherite #container. Check this node for more properties.
"Base inventory" is one of the container nodes. It allow to see and drag and drop soldier items from a base to soldier equipments.
Properties | ||
---|---|---|
Name | Type | Description |
columns | V_INT | Custom the number of column we must use to display items. |
displayammo | V_BOOL | Display/hide ammo. |
displayammoofweapon | V_BOOL | Display/hide ammo near weapons. |
displayavailableontop | V_BOOL | Sort the list to display in stock items on top of the list. |
displayunavailableammoofweapon | V_BOOL | Display/hide out of stock ammo near weapons. displayammoofweapon must be activated first.
|
displayunavailableitem | V_BOOL | Display/hide out of stock items. |
displayweapon | V_BOOL | Display/hide weapons. |
filter | V_INT | Filter items by a category. |
fullsize | V_INT | Full vertical size (proportional to the number of elements the node contain) |
viewpos | V_INT | Position of the vertical view (into the full number of elements the node contain) |
viewsize | V_INT | Size of the vertical view (proportional to the number of elements the node can display without moving) |
Callback event | ||
Name | Type | Description |
onviewchange | V_UI_ACTION | Called when one of the properties viewpos/viewsize/fullsize change |
baselayout
- This node inherite #abstractbase. Check this node for more properties.
basemap
- This node inherite #abstractbase. Check this node for more properties.
battlescape
- This node inherite #abstractnode. Check this node for more properties.
The battlescape
node identify the part of the screen the engine use to render battlescape map
button
- This node inherite #abstractnode. Check this node for more properties.
button
is a node to define a button with a random size. It is skinned with a special image template (see the image
property).
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
flipicon | V_BOOL | |
icon | V_UI_SPRITEREF | Icon used to display the node |
checkbox
- This node inherite #abstractvalue. Check this node for more properties.
The checkbox node is a three state widget. If the value is 0, checkbox is unchecked, if value is bigger than 0, the value is checked; but if the value is under 0, the checkbox display an "invalidate" status.
checkbox check_item { cvar "*cvar foobar" pos "410 100" }
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used as a background |
iconChecked | V_UI_SPRITEREF | Sprite used as an icon for checked state |
iconIndeterminate | V_UI_SPRITEREF | Sprite used as an icon for indeterminate state |
iconUnchecked | V_UI_SPRITEREF | Sprite used as an icon for unchecked state |
Methods | ||
Name | Type | Description |
toggle | V_UI_NODEMETHOD | Call it to toggle the node status. |
confunc
- This node inherite #abstractnode. Check this node for more properties.
container
- This node inherite #abstractnode. Check this node for more properties.
The container node refer to 3 different nodes merged into a singler one. Both can drag and drop soldier items from a container to another one. The first container is a soldier slot. For example, the left arm, the bag pack... The second is the base inventiory (which is now an extended node from container). And the last it a floor container used into the battlescape. The node name itself is used to know the container role.
Properties | ||
---|---|---|
Name | Type | Description |
lastselectedid | V_INT | Callback value set before calling onSelect. It is used to know the item selected |
Callback event | ||
Name | Type | Description |
onselect | V_UI_ACTION | Callback event called when the user select an item |
controls
- This node inherits #image. Check this node for more properties.
Controls is a special pic
entity with which the windows can be moved (drag & drop).
cvarlistener
- This node inherite #abstractnode. Check this node for more properties.
Methods | ||
---|---|---|
Name | Type | Description |
forceBind | V_UI_NODEMETHOD | Force to bind the node to the cvar |
data
- This node inherite #abstractnode. Check this node for more properties.
The data
behaviour allow to store string/float number/integer into a node. Is is a vistual node which is not displayed nor activable by input device like mouse. The node can store 3 types, which have no relations together.
data mystring { string "fooo" } data myfloat { number 1.2 } data myint { integer 2 }
Properties | ||
---|---|---|
Name | Type | Description |
integer | V_INT | Store a integer number into the node. |
number | V_FLOAT | Store a float number into the node. |
string (override #abstractnode) | ... | Store a string into the node. @note you should note store a cvar ref @todo use a REF_STRING when it is possible
|
editor
- This node inherite #abstractnode. Check this node for more properties.
Editor is an invisible node used to create an edition mode. The edition mode allow user to move and resize all visible nodes.
Methods | ||
---|---|---|
Name | Type | Description |
selectfirstchild | V_UI_NODEMETHOD | select first child node (according to the current one) |
selectnext | V_UI_NODEMETHOD | select the next node (according to the current one) |
selectparent | V_UI_NODEMETHOD | select the parent node (according to the current one) |
start | V_UI_NODEMETHOD | start edition mode |
stop | V_UI_NODEMETHOD | stop edition mode |
ekg
- This node inherite #image. Check this node for more properties.
Health and morale ekg images for actors
Properties | ||
---|---|---|
Name | Type | Description |
scale | V_FLOAT | @todo Need documentation
|
scrollspeed | V_FLOAT | The speed that the wrap texture is scrollend with |
func
- This node inherite #abstractnode. Check this node for more properties.
geoscape
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
padding-right | V_FLOAT | Use a right padding. |
Methods | ||
Name | Type | Description |
zoomin | V_UI_NODEMETHOD | Call it to zoom out of the map |
zoomout | V_UI_NODEMETHOD | Call it to zoom into the map |
image
- This node inherits #abstractnode. Check this node for more properties.
The pic
behaviour allows to draw an image or a part of an image into the GUI. It provide some layout properties. We can use it like an active node (mouse in/out/click...) but in this case, it is better to use nodes with a semantics (like button, or checkbox).
image aircraft_return { src ui/buttons_small pos "550 410" texl "0 32" texh "16 48" [..] }
Properties | ||
---|---|---|
Name | Type | Description |
mousefx | V_BOOL | Now this property do nothing. But we use it like a tag, to remember nodes we should convert into button... @todo delete it when its possible (use more button instead of image)
|
preventratio | V_BOOL | Do not change the image ratio. The image will be proportionally stretched. |
src | V_CVAR_OR_STRING | Source of the image |
texh | V_POS | Texture high. Optional. Define the higher corner of the texture we want to display. Used with texl to crop the image. |
texl | V_POS | Texture low. Optional. Define the lower corner of the texture we want to display. Used with texh to crop the image. |
item
- This node inherite #model. Check this node for more properties.
An item is only a model node allowing to display soldier armour. Soldier armour is an image, not a model.
Properties | ||
---|---|---|
Name | Type | Description |
containerlike | V_BOOL | Display an item like a container node do it |
keybinding
- This node inherite #abstractnode. Check this node for more properties.
This node implements the key binding change and display
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
bindingwidth | V_INT | |
keyspace | V_INT |
linechart
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
axescolor | V_COLOR | Axe color. |
dataid | V_UI_DATAID | Identity the shared data the node use. It must be a LINESTRIP data. |
displayaxes | V_BOOL | If true, it display axes of the chart. |
material_editor
- This node inherite #abstractscrollable. Check this node for more properties.
Material editor related code
messagelist
- This node inherite #abstractscrollable. Check this node for more properties.
model
- This node inherite #abstractnode. Check this node for more properties.
This node allow to include a 3D-model into the GUI. It provide a way to create composite models, check How to script UI#How to create a composite model. We call it "main model" when a model is a child node of a non model node, and "submodel" when the node is a child node of a model node.
Properties | ||
---|---|---|
Name | Type | Description |
angles | V_VECTOR | Main model only. Point of view. |
anim | V_CVAR_OR_STRING | Both. Name of the animation for the model |
autoscale | V_BOOL | Main model only. Auto compute the "better" scale for the model. The function dont work very well at the moment because it dont check the angle and no more submodel bounding box. |
clipoverflow | V_BOOL | Main model only. Clip the model with the node rect |
omega | V_VECTOR | Main model only. Rotation vector of the model. |
origin | V_VECTOR | Main model only. Position of the model relative to the center of the node. |
rotatewithmouse | V_BOOL | Main model only. Allow to change the POV of the model with the mouse (only for main model) |
scale | V_VECTOR | Both. Scale the model |
skin | V_CVAR_OR_STRING | Both. Name of the skin for the model. |
src | V_CVAR_OR_STRING | Source of the model. The path to the model, relative to base/models
|
tag | V_CVAR_OR_STRING | Submodel only. A tag name to link the model to the parent model. |
null
- This node inherite #abstractnode. Check this node for more properties.
option
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
collapsed | V_BOOL | If true, child are not displayed |
flipicon | V_BOOL | |
icon | V_UI_SPRITEREF | Icon used to display the node |
label | V_STRING | Displayed text |
value | V_STRING | Value of the option |
optionlist
- This node inherite #abstractoption. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
optiontree
- This node inherite #abstractoption. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
Methods | ||
Name | Type | Description |
setselectedvalue | V_UI_NODEMETHOD | Call this to toggle the node status. |
panel
- This node inherite #abstractscrollable. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
layout | V_INT | Select a layout manager to set position and size of child. Most of layout manager do not move or resize child without align property set. In the image, number identify the position of the child into node, and same color identify the same node. Text on child display the value of the "align" property of each child. |
layoutColumns | V_INT | Number of column use to layout children (used with LAYOUT_COLUMN) |
layoutMargin | V_INT | Margin use to layout children (margin between children) |
wheelscrollable | V_BOOL | If scrolling via mousewheel is enabled |
radar
- This node inherite #abstractnode. Check this node for more properties.
radiobutton
- This node inherite #abstractnode. Check this node for more properties.
The radiobutton is a clickable widget. Commonly, with use it in a group of radiobuttons; the user is allowed to choose only one button from this set. The current implementation share the value of the group with a cvar, and each button use is own value. When the cvar equals to a button value, this button is selected.
radiobutton foo { cvar "*cvar:foobar" value 4 icon boo }
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
cvar | V_UI_CVAR | Cvar name shared with the radio button group to identify when a radio button is selected. |
flipicon | V_BOOL | |
icon | V_UI_SPRITEREF | Icon used to display the node |
stringValue | V_CVAR_OR_STRING | String Value defining the radiobutton. Cvar is updated with this value when the radio button is selected. |
value | V_FLOAT | Numerical value defining the radiobutton. Cvar is updated with this value when the radio button is selected. |
rows
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
color1 | V_COLOR | Background color for odd elements |
color2 | V_COLOR | Background color for even elements |
current | V_INT | Element number on the top of the list. It is used to scroll the node content. |
lineheight | V_INT | Element height |
selectbox
- This node inherite #abstractoption. Check this node for more properties.
selectbox texres_box { { image "ui/selectbox" pos "774 232" size "100 20" color "0.6 0.6 0.6 0.3" cvar "*cvar:gl_maxtexres" } option low_value { label "_Low" value "256" } option medium_value { label "_Medium" value "512" } }
sequence
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
src | V_CVAR_OR_STRING | sequence script id |
Callback event | ||
Name | Type | Description |
onEnd | V_UI_ACTION | Called when the sequence end |
spinner
- This node inherite #abstractvalue. Check this node for more properties.
The spinner node is a vertical widget used to change a value.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Background used to display the spinner. It is displayed in the center of the node. |
bottomIcon | V_UI_SPRITEREF | Sprite used to decorate the bottom button of the spinner. It is displayed in the center of the node. |
mode | V_INT | Spinner mode allow to change the input action of the spinner. SPINNER_NORMAL is the default mode. With SPINNER_ONLY_INC anywhere it click on the node it will increase the value. With SPINNER_ONLY_DEC anywhere it click on the node it will decrease the value. |
topIcon | V_UI_SPRITEREF | Top icon used to decorate the top button of the spinner. It is displayed in the center of the node. |
string
- This node inherite #abstractnode. Check this node for more properties.
A string can be a normal string, or a cvar string. A string prefixed with a "_" or a string in the form "*msgid:some_msgid" is auto translated.
string team_members { string "_Team Members:" pos "480 486" size "200 30" } string team_hired { string "*cvar:foobar" pos "480 508" size "200 30" }
Properties | ||
---|---|---|
Name | Type | Description |
longlines | V_INT | What to do with text lines longer than node width. Default is to wordwrap them to make multiple lines. It can be LONGLINES_WRAP, LONGLINES_CHOP, LONGLINES_PRETTYCHOP |
tab
- This node inherite #abstractoption. Check this node for more properties.
tbar
- This node inherite #abstractvalue. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
image | V_CVAR_OR_STRING | Image to use. Each behaviour use it like they want. @todo use V_REF_OF_STRING when its possible ('image' is never a cvar)
|
texh | V_POS | @todo Need documentation
|
texl | V_POS | @todo Need documentation
|
text
- This node inherite #abstractscrollable. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
dataid | V_UI_DATAID | One of the list TEXT_STANDARD, TEXT_LIST, TEXT_UFOPEDIA, TEXT_BUILDINGS, TEXT_BUILDING_INFO, TEXT_RESEARCH, TEXT_RESEARCH_INFO, TEXT_POPUP, TEXT_POPUP_INFO, TEXT_AIRCRAFT_LIST, TEXT_AIRCRAFT, TEXT_AIRCRAFT_INFO, TEXT_MESSAGESYSTEM, TEXT_CAMPAIGN_LIST, TEXT_MULTISELECTION. There are more IDs in use - see ui_data.h for an up-to-date list. Display a shared content registered by the client code. |
lineheight | V_INT | Size between two lines. Default value is 0, in this case it use a line height according to the font size. |
lines | V_INT | Number of lines contained into the node. Currently, it translate the scrollable property fullSize @todo For a smooth scroll we should split that
|
lineselected | V_INT | Current selected line |
longlines | V_INT | What to do with text lines longer than node width. Default is to wordwrap them to make multiple lines. It can be LONGLINES_WRAP, LONGLINES_CHOP, LONGLINES_PRETTYCHOP |
mousefx | V_BOOL | Highlight each node elements when the mouse move over the node. @todo delete it when its possible (need to create a textlist...)
|
rows | V_INT | Number of visible line we can display into the node height. Currently, it translate the scrollable property viewSize @todo For a smooth scroll we should split that
|
tabwidth | V_INT | Bigger size of the width replacing a tab character. |
textselected | V_CVAR_OR_STRING | Text of the current selected line |
text2
- This node inherite #text. Check this node for more properties.
textentry
- This node inherite #abstractnode. Check this node for more properties.
This node allow to edit a cvar text with the keyboard. When we click on the node, we active the edition, we can validate it with the RETURN key, or abort it with ESCAPE key. A validation fire a scriptable callback event. We can custom the mouse behaviour when we click outside the node in edition mode. It can validate or abort the edition.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
clickOutAbort | V_BOOL | ustom the mouse event behaviour. When we are editing the text, if we click out of the node, the edition is aborted. Changes on the text are canceled, and no change event are fired. |
isPassword | V_BOOL | Custom the draw behaviour by hiding each character of the text with a star (*). |
onChange | ... | Call back event (like click...) fired when the text is changed, after validation. An abort of the edition dont fire this event. |
onClick | ... | Call back event called when we click on the node. If the click select the node, it called before we start the cvar edition. |
Callback event | ||
Name | Type | Description |
onAbort | V_UI_ACTION | Call it when we abort the edition |
Methods | ||
Name | Type | Description |
edit | V_UI_NODEMETHOD | Call it to force node edition |
textlist
- This node inherite #text. Check this node for more properties.
texture
- This node inherite #abstractnode. Check this node for more properties.
The texture
behaviour allow to draw a motif (an image) in all the surface of the a node. The image is not stretched but looped.
texture background { image ui/wood [..] }
Properties | ||
---|---|---|
Name | Type | Description |
src | V_CVAR_OR_STRING | Source of the texture |
timer
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
timeout | V_INT | This property control milliseconds between each calls of onEvent . If the value is 0 (the default value) nothing is called. We can change the value at runtime.
|
Callback event | ||
Name | Type | Description |
onEvent | V_UI_ACTION | Invoked periodically. See timeout .
|
todo
- This node inherite #string. Check this node for more properties.
A node allowing to tag a GUI with comment (only visible on debug mode).
video
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
nosound | V_BOOL | Use or not the music from the video. |
src | V_CVAR_OR_STRING | Source of the video. File name without prefix ./base/videos and without extension |
Callback event | ||
Name | Type | Description |
onEnd | V_UI_ACTION | Invoked when video end. |
vscrollbar
- This node inherite #abstractscrollbar. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
image | V_CVAR_OR_STRING | Image to use. Each behaviour use it like they want. @todo use V_REF_OF_STRING when its possible ('image' is never a cvar)
|
window
- This node inherite #abstractnode. Check this node for more properties.
Properties | ||
---|---|---|
Name | Type | Description |
background | V_UI_SPRITEREF | Sprite used to display the background |
closebutton | V_BOOL | Add a button on the top right the window to close it. Updating this attribute at runtime will change nothing. |
dragbutton | V_BOOL | Create subnode allowing to move the window when we click on the header. Updating this attribute at runtime will change nothing. |
dropdown | V_BOOL | If true, the window will be closed if the user clicks outside of the window. |
fill | V_BOOL | If true, the window is filled according to the widescreen. |
modal | V_BOOL | If true, the user can't select something outside the modal window. He must first close the window. |
noticepos | V_POS | In windows where notify messages appear (like e.g. the video options window when you have to restart the game until the settings take effects) you can define the position of those messages with this option. |
preventtypingescape | V_BOOL | If true, the user can't use ESC key to close the window. |
starlayout | V_BOOL | If true, the window content position is updated according to the "star" layout when the window size change. @todo Need more documentation.
|
Callback event | ||
Name | Type | Description |
onScriptLoaded | V_UI_ACTION | Invoked after all UI scripts are loaded. |
onWindowClosed | V_UI_ACTION | Invoked when the window is removed from the rendering stack. |
onWindowOpened | V_UI_ACTION | Invoked when the window is added to the rendering stack. |
zone
- This node inherite #abstractnode. Check this node for more properties.
The zone
node allow to create an hidden active node. Currently we only use it to support repeat mouse actions without merging the code which managing this feature.
Properties | ||
---|---|---|
Name | Type | Description |
clickdelay | V_INT | Delay is used between 2 calls of onclick .
|
repeat | V_BOOL | If true, the onclick call back is called more than one time if the user does not release the button.
|