Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
OptionSelector Class Reference

Protected Member Functions

bool CanSwitch ()
int GetValue ()
void LoadNewValues (notnull array< string > options, int current_index)
void OptionSelectorMultistate (Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled, notnull array< string > options)
void PerformSetOption (int index)
void SetCanSwitch (bool value)
override void SetNextOption ()
override void SetPrevOption ()
void SetRandomValue ()
override void SetStringOption (string option, bool fire_event=true)
void SetValue (int value, bool fire_event=true)
void SetValue (string value, bool fire_event=true)

Static Protected Member Functions

static OptionSelectorMultistate NewFromAccess (Widget parent, ListOptionsAccess optionAccess, ScriptedWidgetEventHandler parent_c, bool disabled)

Protected Attributes

bool m_CanSwitch

Detailed Description

Definition at line 1 of file optionselectormultistate.c.

Member Function Documentation

◆ CanSwitch()

bool CanSwitch ( )
inlineprotected

Definition at line 85 of file optionselectormultistate.c.

References m_CanSwitch.

◆ GetValue()

int GetValue ( )
inlineprotected

Definition at line 120 of file optionselectormultistate.c.

◆ LoadNewValues()

void LoadNewValues ( notnull array< string > options,
int current_index )
inlineprotected

Definition at line 35 of file optionselectormultistate.c.

References SetValue().

◆ NewFromAccess()

OptionSelectorMultistate NewFromAccess ( Widget parent,
ListOptionsAccess optionAccess,
ScriptedWidgetEventHandler parent_c,
bool disabled )
inlinestaticprotected

Definition at line 28 of file optionselectormultistate.c.

References OptionSelectorMultistate().

◆ OptionSelectorMultistate()

void OptionSelectorMultistate ( Widget parent,
int current_index,
ScriptedWidgetEventHandler parent_c,
bool disabled,
notnull array< string > options )
inlineprotected

Definition at line 5 of file optionselectormultistate.c.

References Error(), and m_CanSwitch.

Referenced by NewFromAccess().

◆ PerformSetOption()

void PerformSetOption ( int index)
inlineprotected

Definition at line 73 of file optionselectormultistate.c.

Referenced by SetNextOption(), and SetPrevOption().

◆ SetCanSwitch()

void SetCanSwitch ( bool value)
inlineprotected

Definition at line 80 of file optionselectormultistate.c.

References m_CanSwitch.

◆ SetNextOption()

override void SetNextOption ( )
inlineprotected

◆ SetPrevOption()

override void SetPrevOption ( )
inlineprotected

Definition at line 57 of file optionselectormultistate.c.

References m_CanSwitch, and PerformSetOption().

Referenced by OptionSelectorBase::OnMouseButtonUp().

◆ SetRandomValue()

void SetRandomValue ( )
inlineprotected

Definition at line 113 of file optionselectormultistate.c.

References Math::RandomInt().

◆ SetStringOption()

override void SetStringOption ( string option,
bool fire_event = true )
inlineprotected

Definition at line 125 of file optionselectormultistate.c.

◆ SetValue() [1/2]

void SetValue ( int value,
bool fire_event = true )
inlineprotected

Definition at line 90 of file optionselectormultistate.c.

Referenced by LoadNewValues().

◆ SetValue() [2/2]

void SetValue ( string value,
bool fire_event = true )
inlineprotected

Definition at line 101 of file optionselectormultistate.c.

Field Documentation

◆ m_CanSwitch

bool m_CanSwitch
protected

The documentation for this class was generated from the following file: