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_tUI_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 size)
int UI_AbstractOption_Scroll_FullSize (uiNode_t *node)
void UI_AbstractOption_Scroll_SetFullSize (uiNode_t *node, int size)

Function Documentation

◆ UI_AbstractOption_GetCount()

int UI_AbstractOption_GetCount ( uiNode_t * node)

Definition at line 160 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_count().

◆ UI_AbstractOption_GetCurrentValue()

◆ UI_AbstractOption_GetCvar()

const char * UI_AbstractOption_GetCvar ( uiNode_t * node)

Definition at line 164 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_cvar().

◆ UI_AbstractOption_GetDataId()

int UI_AbstractOption_GetDataId ( uiNode_t * node)

Definition at line 156 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_dataid().

◆ UI_AbstractOption_GetFirstOption()

◆ UI_AbstractOption_Scroll_Current()

int UI_AbstractOption_Scroll_Current ( uiNode_t * node)

Definition at line 186 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_current().

◆ UI_AbstractOption_Scroll_FullSize()

int UI_AbstractOption_Scroll_FullSize ( uiNode_t * node)

Definition at line 206 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_fullsize().

◆ UI_AbstractOption_Scroll_SetCurrent()

void UI_AbstractOption_Scroll_SetCurrent ( uiNode_t * node,
int pos )

Definition at line 190 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_set_current().

◆ UI_AbstractOption_Scroll_SetFullSize()

void UI_AbstractOption_Scroll_SetFullSize ( uiNode_t * node,
int size )

Definition at line 198 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_set_fullsize().

◆ UI_AbstractOption_Scroll_SetViewSize()

void UI_AbstractOption_Scroll_SetViewSize ( uiNode_t * node,
int size )

Definition at line 194 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_set_viewsize().

◆ UI_AbstractOption_Scroll_ViewSize()

int UI_AbstractOption_Scroll_ViewSize ( uiNode_t * node)

Definition at line 202 of file ui_node_abstractoption.cpp.

References EXTRADATA.

Referenced by uiAbstractOptionNode_t_viewsize().

◆ 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 )

Definition at line 176 of file ui_node_abstractoption.cpp.

References Cvar_Get(), EXTRADATA, cvar_t::name, and name.

Referenced by uiAbstractOptionNode_t_set_cvar().

◆ UI_AbstractOption_SetDataId()

void UI_AbstractOption_SetDataId ( uiNode_t * node,
int id )

Definition at line 168 of file ui_node_abstractoption.cpp.

References EXTRADATA, and id.

Referenced by uiAbstractOptionNode_t_set_dataid().

◆ UI_AbstractOption_SetDataIdByName()

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

Definition at line 172 of file ui_node_abstractoption.cpp.

References EXTRADATA, name, and UI_GetDataIDByName().

◆ 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_Node_IsOptionContainer(), and UI_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_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_INT, V_UI_ACTION, V_UI_CVAR, and V_UI_DATAID.