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

Public Member Functions

boolean add (GameOption option)
boolean tryAdd (GameOption option)
boolean containsOption (GameOption option)
boolean remove (GameOption option)
boolean tryRemove (GameOption option)
void addAllFromUIElement (ISUIElement uiRootElement)
void addFromUIElement (ISUIElement uiElement)
void removeAllFromUIElement (ISUIElement uiRootElement)
void removeFromUIElement (ISUIElement uiElement)
GameOption get (string optionName)
void apply ()
void storeCurrentValues ()
void restoreOriginalValues ()
void toUI ()
void onChange (GameOption option)
 GameOptions ()
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

boolean changed
GameOption[] options
Public Attributes inherited from ISBaseObject
string Type
ISBaseObject SuperType
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ GameOptions()

GameOptions::GameOptions ( )

Member Function Documentation

◆ add()

boolean GameOptions::add ( GameOption option)

◆ addAllFromUIElement()

void GameOptions::addAllFromUIElement ( ISUIElement uiRootElement)

◆ addFromUIElement()

void GameOptions::addFromUIElement ( ISUIElement uiElement)

◆ apply()

void GameOptions::apply ( )

◆ containsOption()

boolean GameOptions::containsOption ( GameOption option)

◆ get()

GameOption GameOptions::get ( string optionName)

◆ onChange()

void GameOptions::onChange ( GameOption option)

◆ remove()

boolean GameOptions::remove ( GameOption option)

◆ removeAllFromUIElement()

void GameOptions::removeAllFromUIElement ( ISUIElement uiRootElement)

◆ removeFromUIElement()

void GameOptions::removeFromUIElement ( ISUIElement uiElement)

◆ restoreOriginalValues()

void GameOptions::restoreOriginalValues ( )

◆ storeCurrentValues()

void GameOptions::storeCurrentValues ( )

◆ toUI()

void GameOptions::toUI ( )

◆ tryAdd()

boolean GameOptions::tryAdd ( GameOption option)

◆ tryRemove()

boolean GameOptions::tryRemove ( GameOption option)

Member Data Documentation

◆ changed

boolean GameOptions::changed

◆ options

GameOption [] GameOptions::options

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