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

Public Member Functions

void storeCurrentValue ()
void restoreOriginalValue ()
void toUI ()
void apply ()
void resetLua ()
void restartRequired (unknown oldValue, unknown newValue)
void onChangeComboBox (ISComboBox box)
void onChangeSlider (number value, ISSliderPanel control)
void onChangeTickBox (integer index, boolean selected)
void onChangeVolumeControl (ISVolumeControl control, number volume)
 MainOptions::GameOption (string name, ISUIElement control, nil arg1, nil arg2)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (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
function onChange
function tableContains
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Member Function Documentation

◆ apply()

void MainOptions::GameOption::apply ( )

◆ MainOptions::GameOption()

MainOptions::GameOption::MainOptions::GameOption ( string name,
ISUIElement control,
nil arg1,
nil arg2 )

◆ onChangeComboBox()

void MainOptions::GameOption::onChangeComboBox ( ISComboBox box)

◆ onChangeSlider()

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

◆ onChangeTickBox()

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

◆ onChangeVolumeControl()

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

◆ resetLua()

void MainOptions::GameOption::resetLua ( )

◆ restartRequired()

void MainOptions::GameOption::restartRequired ( unknown oldValue,
unknown newValue )

◆ restoreOriginalValue()

void MainOptions::GameOption::restoreOriginalValue ( )

◆ storeCurrentValue()

void MainOptions::GameOption::storeCurrentValue ( )

◆ toUI()

void MainOptions::GameOption::toUI ( )

Member Data Documentation

◆ control

ISUIElement MainOptions::GameOption::control

◆ name

string MainOptions::GameOption::name

◆ onChange

function MainOptions::GameOption::onChange

◆ tableContains

function MainOptions::GameOption::tableContains

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