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