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

Go to the source code of this file.

Data Structures

class  uiAbstractOptionNode
struct  abstractOptionExtraData_t

Functions

void UI_RegisterAbstractOptionNode (uiBehaviour_t *behaviour)
void UI_AbstractOption_SortOptions (uiNode_t *node)
 Sort options by alphabet.
uiNode_t * UI_AbstractOption_GetFirstOption (uiNode_t *node)
 Return the first option of the node.
const char * UI_AbstractOption_GetCurrentValue (uiNode_t *node)
void UI_AbstractOption_SetCurrentValue (uiNode_t *node, const char *value)
int UI_AbstractOption_GetDataId (uiNode_t *node)
int UI_AbstractOption_GetCount (uiNode_t *node)
const char * UI_AbstractOption_GetCvar (uiNode_t *node)
void UI_AbstractOption_SetDataId (uiNode_t *node, int id)
void UI_AbstractOption_SetDataIdByName (uiNode_t *node, const char *name)
void UI_AbstractOption_SetCvar (uiNode_t *node, const char *name)
void UI_AbstractOption_SetBackgroundByName (uiNode_t *node, const char *name)
int UI_AbstractOption_Scroll_Current (uiNode_t *node)
void UI_AbstractOption_Scroll_SetCurrent (uiNode_t *node, int pos)
int UI_AbstractOption_Scroll_ViewSize (uiNode_t *node)
void UI_AbstractOption_Scroll_SetViewSize (uiNode_t *node, int sizesize)
int UI_AbstractOption_Scroll_FullSize (uiNode_t *node)
void UI_AbstractOption_Scroll_SetFullSize (uiNode_t *node, int sizesize)

Function Documentation

◆ UI_AbstractOption_GetCount()

int UI_AbstractOption_GetCount ( uiNode_t * node)

◆ UI_AbstractOption_GetCurrentValue()

◆ UI_AbstractOption_GetCvar()

const char * UI_AbstractOption_GetCvar ( uiNode_t * node)

◆ UI_AbstractOption_GetDataId()

int UI_AbstractOption_GetDataId ( uiNode_t * node)

◆ UI_AbstractOption_GetFirstOption()

◆ UI_AbstractOption_Scroll_Current()

int UI_AbstractOption_Scroll_Current ( uiNode_t * node)

◆ UI_AbstractOption_Scroll_FullSize()

int UI_AbstractOption_Scroll_FullSize ( uiNode_t * node)

◆ UI_AbstractOption_Scroll_SetCurrent()

void UI_AbstractOption_Scroll_SetCurrent ( uiNode_t * node,
int pos )

◆ UI_AbstractOption_Scroll_SetFullSize()

void UI_AbstractOption_Scroll_SetFullSize ( uiNode_t * node,
int size )

◆ UI_AbstractOption_Scroll_SetViewSize()

void UI_AbstractOption_Scroll_SetViewSize ( uiNode_t * node,
int size )

◆ UI_AbstractOption_Scroll_ViewSize()

int UI_AbstractOption_Scroll_ViewSize ( uiNode_t * node)

◆ UI_AbstractOption_SetBackgroundByName()

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

◆ UI_AbstractOption_SetCurrentValue()

◆ UI_AbstractOption_SetCvar()

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

◆ UI_AbstractOption_SetDataId()

void UI_AbstractOption_SetDataId ( uiNode_t * node,
int id )

◆ UI_AbstractOption_SetDataIdByName()

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

◆ UI_AbstractOption_SortOptions()

void UI_AbstractOption_SortOptions ( uiNode_t * node)

Sort options by alphabet.

update lastChild

Todo
the sort option should do it itself

Definition at line 44 of file ui_node_abstractoption.cpp.

References uiNode_t::firstChild, uiNode_t::lastChild, uiNode_t::next, UI_AbstractOption_SortOptions(), UI_Node_IsOptionContainer(), and UI_SortOptions().

Referenced by UI_AbstractOption_SortOptions().

◆ UI_RegisterAbstractOptionNode()

void UI_RegisterAbstractOptionNode ( uiBehaviour_t * behaviour)

Optional. Data ID we want to use. It must be an option list. It substitute to the inline options

Optional. We can define the height of the block containing an option.

Definition at line 211 of file ui_node_abstractoption.cpp.

References count, uiBehaviour_t::drawItselfChild, EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::isAbstract, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_RegisterAbstractOptionNode(), UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_INT, V_UI_ACTION, V_UI_CVAR, and V_UI_DATAID.

Referenced by UI_RegisterAbstractOptionNode().