mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
UIMap just got in
This commit is contained in:
3
modules/game/game.lua
Normal file
3
modules/game/game.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
function Game.createMainInterface()
|
||||
gameUi = loadUI('/game/ui/gameinterface.otui', UI.root)
|
||||
end
|
17
modules/game/game.otmod
Normal file
17
modules/game/game.otmod
Normal 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
|
12
modules/game/ui/gameinterface.otui
Normal file
12
modules/game/ui/gameinterface.otui
Normal 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
|
Reference in New Issue
Block a user