|
Project Zomboid Lua Docs 42.20.3
Unofficial documentation for Project Zomboid's Lua
|
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 |
| GameOptions::GameOptions | ( | ) |
| boolean GameOptions::add | ( | GameOption | option | ) |
| void GameOptions::addAllFromUIElement | ( | ISUIElement | uiRootElement | ) |
| void GameOptions::addFromUIElement | ( | ISUIElement | uiElement | ) |
| void GameOptions::apply | ( | ) |
| boolean GameOptions::containsOption | ( | GameOption | option | ) |
| GameOption GameOptions::get | ( | string | optionName | ) |
| void GameOptions::onChange | ( | GameOption | option | ) |
| boolean GameOptions::remove | ( | GameOption | option | ) |
| void GameOptions::removeAllFromUIElement | ( | ISUIElement | uiRootElement | ) |
| void GameOptions::removeFromUIElement | ( | ISUIElement | uiElement | ) |
| void GameOptions::restoreOriginalValues | ( | ) |
| void GameOptions::storeCurrentValues | ( | ) |
| void GameOptions::toUI | ( | ) |
| boolean GameOptions::tryAdd | ( | GameOption | option | ) |
| boolean GameOptions::tryRemove | ( | GameOption | option | ) |
| boolean GameOptions::changed |
| GameOption [] GameOptions::options |