Odamex
Setting the Standard in Multiplayer Doom
textscreen/txt_dropdown.cpp File Reference

Data Structures

struct  callback_data_t

Functions

txt_dropdown_list_tTXT_NewDropdownList (int *variable, char **values, int num_values)
 Create a new dropdown list widget.

Variables

txt_widget_class_t txt_dropdown_list_class

Function Documentation

txt_dropdown_list_t* TXT_NewDropdownList ( int *  variable,
char **  values,
int  num_values 
)

Create a new dropdown list widget.

The parameters specify a list of string labels, and a pointer to an integer variable. The variable contains the current "value" of the list, as an index within the list of labels.

Parameters:
variablePointer to the variable containing the list's value.
valuesPointer to an array of strings containing the labels to use for the list.
num_valuesThe number of variables in the list.

Variable Documentation

Initial value:
{
    TXT_DropdownListSizeCalc,
    TXT_DropdownListDrawer,
    TXT_DropdownListKeyPress,
    TXT_DropdownListDestructor,
    TXT_DropdownListMousePress,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends