UIMap just got in

This commit is contained in:
Eduardo Bart
2011-08-29 00:04:23 -03:00
parent fe9591ca8d
commit a8afbf9b3f
10 changed files with 193 additions and 36 deletions

3
modules/game/game.lua Normal file
View File

@@ -0,0 +1,3 @@
function Game.createMainInterface()
gameUi = loadUI('/game/ui/gameinterface.otui', UI.root)
end

17
modules/game/game.otmod Normal file
View File

@@ -0,0 +1,17 @@
Module
name: game
description: Create the game interface, where the ingame stuff starts
author: OTClient team
website: https://github.com/edubart/otclient
version: 0.2
autoLoad: true
dependencies:
- core
- tibiafiles
onLoad: |
require 'game'
return true
onUnload: |
-- nothing yet

View File

@@ -0,0 +1,12 @@
UIWidget
anchors.fill: parent
UIMap
id: gameMap
anchors.fill:parent
margin.right: 200
Button
anchors.left: gameMap.right
anchors.top: parent.top
text: Logout