mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
restore terminal, rework console
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
About = {}
|
||||
|
||||
-- private variables
|
||||
local aboutWindow
|
||||
local aboutButton
|
||||
|
||||
-- public functions
|
||||
function About.create()
|
||||
function About.init()
|
||||
aboutButton = TopMenu.addRightButton('aboutButton', 'About', '/core_styles/icons/about.png', About.display)
|
||||
end
|
||||
|
||||
function About.display()
|
||||
aboutWindow = displayUI('about.otui', { locked = true })
|
||||
end
|
||||
|
||||
function About.destroy()
|
||||
aboutWindow:destroy()
|
||||
aboutWindow = nil
|
||||
function About.terminate()
|
||||
aboutButton:destroy()
|
||||
aboutButton = nil
|
||||
end
|
||||
|
||||
function About.openWebpage()
|
||||
|
@@ -6,3 +6,7 @@ Module
|
||||
|
||||
onLoad: |
|
||||
require 'about'
|
||||
About.init()
|
||||
|
||||
onUnload:
|
||||
About.terminate()
|
@@ -58,4 +58,4 @@ MainWindow
|
||||
anchors.top: parent.top
|
||||
margin-top: 191
|
||||
margin-left: 188
|
||||
@onClick: About.destroy()
|
||||
@onClick: self:getParent():destroy()
|
||||
|
Reference in New Issue
Block a user