tibia-client/modules/client_about/about.lua

35 lines
623 B
Lua
Raw Normal View History

About = {}
-- private variables
2012-01-07 18:36:58 +01:00
local aboutButton
local aboutWindow
-- public functions
2012-01-07 18:36:58 +01:00
function About.init()
aboutButton = TopMenu.addRightButton('aboutButton', 'About', 'about.png', About.show)
aboutWindow = displayUI('about.otui')
aboutWindow:hide()
end
2012-01-07 18:36:58 +01:00
function About.terminate()
aboutButton:destroy()
aboutButton = nil
aboutWindow:destroy()
aboutWindow = nil
2012-02-07 01:41:53 +01:00
About = nil
end
function About.show()
aboutWindow:show()
aboutWindow:raise()
aboutWindow:focus()
end
function About.hide()
aboutWindow:hide()
end
function About.openWebpage()
displayErrorBox("Error", "Not implemented yet")
2011-11-17 22:41:02 +01:00
end