reorganize modules

This commit is contained in:
Eduardo Bart
2011-11-02 01:02:56 -02:00
parent 2304ff3529
commit 5ab0e6f2ac
59 changed files with 147 additions and 208 deletions

View File

@@ -0,0 +1,22 @@
Background = { }
-- private variables
local background
-- public functions
function Background.create()
background = UI.loadAndDisplay('/background/background.otui')
end
function Background.destroy()
background:destroy()
background = nil
end
function Background.hide()
background:hide()
end
function Background.show()
background:show()
end

View File

@@ -0,0 +1,18 @@
Module
name: background
description: Handles the background of the login screen
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core
- topmenu
onLoad: |
require 'background'
Background.create()
return true
onUnload:
Background.destroy()

View File

@@ -0,0 +1,12 @@
Panel
id: background
image:
source: /background/background.png
smooth: true
fixed ratio: true
anchors.top: topMenu.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
margin.top: 1
focusable: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB