mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01:00
restore terminal, rework console
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
Options = {}
|
||||
|
||||
local optionsButton
|
||||
|
||||
function Options.init()
|
||||
optionsButton = TopMenu.addButton('settingsButton', 'Options', '/core_styles/icons/settings.png', Options.show)
|
||||
Options.load()
|
||||
end
|
||||
|
||||
function Options.terminate()
|
||||
TopMenu.removeButton(optionsButton)
|
||||
end
|
||||
|
||||
function Options.load()
|
||||
local booleanOptions = { vsync = true,
|
||||
showfps = true,
|
||||
|
||||
@@ -6,5 +6,7 @@ Module
|
||||
|
||||
onLoad: |
|
||||
require 'options'
|
||||
Options.load()
|
||||
Options.init()
|
||||
|
||||
onUnload:
|
||||
Options.terminate()
|
||||
Reference in New Issue
Block a user