mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
improve window moving, minor changes to enable others apps use otclient framework
This commit is contained in:
@@ -3,7 +3,6 @@ Module
|
||||
description: Create the about window
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
autoLoad: true
|
||||
dependencies:
|
||||
- core
|
||||
|
||||
|
@@ -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'
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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'
|
||||
|
@@ -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')
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
17
modules/otclient/otclient.otmod
Normal file
17
modules/otclient/otclient.otmod
Normal 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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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'
|
||||
|
@@ -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
|
||||
|
@@ -8,6 +8,7 @@ MiniWindow
|
||||
|
||||
TextList
|
||||
id: vipList
|
||||
border-image: ~
|
||||
anchors.fill: parent
|
||||
margin.top: 26
|
||||
margin.bottom: 6
|
||||
|
Reference in New Issue
Block a user