UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_node_spinner.h File Reference
Include dependency graph for ui_node_spinner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  uiSpinnerNode
struct  spinnerExtraData_t

Enumerations

enum  spinnerMode_t { SPINNER_NORMAL , SPINNER_ONLY_INCREASE , SPINNER_ONLY_DECREASE }

Functions

void UI_RegisterSpinnerNode (uiBehaviour_t *behaviour)
void UI_Spinner_SetBackgroundByName (uiNode_t *node, const char *name)
void UI_Spinner_SetBottomIconByName (uiNode_t *node, const char *name)
void UI_Spinner_SetTopIconByName (uiNode_t *node, const char *name)

Enumeration Type Documentation

◆ spinnerMode_t

Enumerator
SPINNER_NORMAL 

Normal mode. The upper side of the node increase the value and the lower side of the node decrease the value

SPINNER_ONLY_INCREASE 

Only increase mode. The whole node increase the value.

SPINNER_ONLY_DECREASE 

Only decrease mode. The whole node decrease the value.

Definition at line 29 of file ui_node_spinner.h.

Function Documentation

◆ UI_RegisterSpinnerNode()

void UI_RegisterSpinnerNode ( uiBehaviour_t * behaviour)

Background used to display the spinner. It is displayed in the center of the node.

Top icon used to decorate the top button of the spinner. It is displayed in the center of the node.

Sprite used to decorate the bottom button of the spinner. It is displayed in the center of the node.

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.

Draw images in horizontal orientation, also change active touch area for images.

Invert spinner directions, so that down/left will increase value, up/right will decrease it.

Definition at line 240 of file ui_node_spinner.cpp.

References Com_RegisterConstInt(), uiBehaviour_t::extends, EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, SPINNER_NORMAL, SPINNER_ONLY_DECREASE, SPINNER_ONLY_INCREASE, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_INT, and V_UI_SPRITEREF.

◆ UI_Spinner_SetBackgroundByName()

void UI_Spinner_SetBackgroundByName ( uiNode_t * node,
const char * name )

Definition at line 224 of file ui_node_spinner.cpp.

References name, UI_EXTRADATA, and UI_GetSpriteByName().

Referenced by uiSpinnerNode_t_set_background().

◆ UI_Spinner_SetBottomIconByName()

void UI_Spinner_SetBottomIconByName ( uiNode_t * node,
const char * name )

Definition at line 229 of file ui_node_spinner.cpp.

References name, UI_EXTRADATA, and UI_GetSpriteByName().

Referenced by uiSpinnerNode_t_set_bottomicon().

◆ UI_Spinner_SetTopIconByName()

void UI_Spinner_SetTopIconByName ( uiNode_t * node,
const char * name )

Definition at line 234 of file ui_node_spinner.cpp.

References name, UI_EXTRADATA, and UI_GetSpriteByName().

Referenced by uiSpinnerNode_t_set_topicon().