reorganize modules

This commit is contained in:
Eduardo Bart
2011-12-05 16:27:07 -02:00
parent ffeb34e0e7
commit cf0aab6d4d
90 changed files with 186 additions and 181 deletions

View File

@@ -0,0 +1,22 @@
Background = { }
-- private variables
local background
-- public functions
function Background.create()
background = UI.display('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,14 @@
Module
name: client_background
description: Handles the background of the login screen
author: OTClient team
website: https://github.com/edubart/otclient
onLoad: |
require 'background'
Background.create()
return true
onUnload:
Background.destroy()

View File

@@ -0,0 +1,12 @@
Panel
id: background
image:
source: /client_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