Project Zomboid Lua Docs 42.20.3
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
GameOption Class Reference
Inheritance diagram for GameOption:
ISBaseObject

Public Member Functions

void storeCurrentValue ()
void restoreOriginalValue ()
void toUI ()
void apply ()
void resetLua ()
void restartRequired (any oldValue, any newValue)
void invokeOnChangeEvent ()
void onChangeComboBox (ISComboBox box)
void onChangeSlider (number value, ISSliderPanel control)
void onChangeTickBox (integer index, boolean selected)
void onChangeVolumeControl (ISVolumeControl control, number volume)
 GameOption (string name, ISUIElement control, unknown arg1, unknown arg2)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
boolean instanceof (unknown object, string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Public Attributes

string name
ISUIElement control
unknown arg1
unknown arg2
Public Attributes inherited from ISBaseObject
string Type
ISBaseObject SuperType
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ GameOption()

GameOption::GameOption ( string name,
ISUIElement control,
unknown arg1,
unknown arg2 )

Member Function Documentation

◆ apply()

void GameOption::apply ( )

◆ invokeOnChangeEvent()

void GameOption::invokeOnChangeEvent ( )

◆ onChangeComboBox()

void GameOption::onChangeComboBox ( ISComboBox box)

◆ onChangeSlider()

void GameOption::onChangeSlider ( number value,
ISSliderPanel control )

◆ onChangeTickBox()

void GameOption::onChangeTickBox ( integer index,
boolean selected )

◆ onChangeVolumeControl()

void GameOption::onChangeVolumeControl ( ISVolumeControl control,
number volume )

◆ resetLua()

void GameOption::resetLua ( )

◆ restartRequired()

void GameOption::restartRequired ( any oldValue,
any newValue )

◆ restoreOriginalValue()

void GameOption::restoreOriginalValue ( )

◆ storeCurrentValue()

void GameOption::storeCurrentValue ( )

◆ toUI()

void GameOption::toUI ( )

Member Data Documentation

◆ arg1

unknown GameOption::arg1

◆ arg2

unknown GameOption::arg2

◆ control

ISUIElement GameOption::control

◆ name

string GameOption::name

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