improve window moving, minor changes to enable others apps use otclient framework

This commit is contained in:
Eduardo Bart
2011-11-11 18:26:10 -02:00
parent 3f4ad7977c
commit fc65f99ead
31 changed files with 96 additions and 83 deletions

View File

@@ -3,7 +3,6 @@ Module
description: Create the about window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core

View File

@@ -3,10 +3,8 @@ Module
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'

View File

@@ -3,10 +3,6 @@ Module
description: Manage chat window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'chat'
return true

View File

@@ -6,6 +6,7 @@ Window < UIWindow
head height: 20
head text align: center
move policy: free
stackable: true
border-image:
source: /core_styles/images/window.png
border: 4

View File

@@ -3,12 +3,6 @@ Module
description: Manages enter game and character list windows
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core
- topmenu
- background
onLoad: |
require 'entergame'
require 'characterlist'

View File

@@ -17,6 +17,7 @@ function Game.createInterface()
Background.hide()
CharacterList.destroyLoadBox()
Game.gameUi = loadUI('/game/game.otui', UI.root)
UI.root:moveChildToIndex(Game.gameUi, 1)
Game.gameMapPanel = Game.gameUi:getChildById('mapPanel')
Game.gameRightPanel = Game.gameUi:getChildById('rightPanel')
Game.gameBottomPanel = Game.gameUi:getChildById('bottomPanel')

View File

@@ -3,14 +3,6 @@ Module
description: Create the game interface, where the ingame stuff starts
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core
- tibiafiles
- topmenu
- entergame
- background
onLoad: |
require 'game'
return true

View File

@@ -3,10 +3,6 @@ Module
description: Displays health and mana points
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'health_mana'
return true

View File

@@ -1,12 +1,8 @@
Module
name: equipments
name: inventory
description: View local player equipments window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'inventory'
return true

View File

@@ -3,10 +3,6 @@ Module
description: Create the options window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core
onLoad: |
require 'options'
return true

View File

@@ -0,0 +1,17 @@
Module
name: otclient
description: Load all other otclient modules
author: OTClient team
website: https://github.com/edubart/otclient
dependencies:
- core
- background
- topmenu
- game
- health_mana
- inventory
- skills
- viplist
- textmessage
- chat

View File

@@ -3,10 +3,6 @@ Module
description: Manage skills window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'skills'
return true

View File

@@ -3,10 +3,6 @@ Module
description: Manage game text messages
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'textmessage'
return true

View File

@@ -3,9 +3,11 @@ Module
description: Create the top menu
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- core
- entergame
- options
- about
onLoad: |
require 'topmenu'

View File

@@ -3,10 +3,6 @@ Module
description: Manage vip list window
author: OTClient team
website: https://github.com/edubart/otclient
autoLoad: true
dependencies:
- game
onLoad: |
require 'viplist'
return true

View File

@@ -8,6 +8,7 @@ MiniWindow
TextList
id: vipList
border-image: ~
anchors.fill: parent
margin.top: 26
margin.bottom: 6