After Width: | Height: | Size: 763 B |
After Width: | Height: | Size: 932 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 385 B |
After Width: | Height: | Size: 660 B |
After Width: | Height: | Size: 325 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 171 B |
@ -0,0 +1,47 @@
|
||||
RoundedRectPanel
|
||||
id: loginPanel
|
||||
background-color: #000000e5
|
||||
size: 192 164
|
||||
anchors.centerIn: parent
|
||||
margin.top: 64
|
||||
opacity: 0
|
||||
|
||||
LargerLabel
|
||||
text: Account name
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 16
|
||||
margin.top: 12
|
||||
|
||||
LineEdit
|
||||
id: accountNameLineEdit
|
||||
text: otclient0
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin.left: 14
|
||||
margin.right: 14
|
||||
|
||||
LargerLabel
|
||||
text: Password
|
||||
anchors.left: parent.left
|
||||
anchors.top: prev.bottom
|
||||
margin.left: 16
|
||||
margin.top: 8
|
||||
|
||||
PasswordLineEdit
|
||||
id: accountPasswordLineEdit
|
||||
text: 123456
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin.left: 14
|
||||
margin.right: 14
|
||||
|
||||
Button
|
||||
id: loginButton
|
||||
text: Login
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.bottom: 20
|
||||
onClick: EnterGame.doLogin()
|
After Width: | Height: | Size: 5.4 KiB |
@ -0,0 +1,14 @@
|
||||
TopMenu = {}
|
||||
|
||||
-- private variables
|
||||
local topMenu
|
||||
|
||||
-- public functions
|
||||
function TopMenu.create()
|
||||
topMenu = UI.loadAndDisplay("/topmenu/topmenu.otui")
|
||||
end
|
||||
|
||||
function TopMenu.destroy()
|
||||
topMenu:destroy()
|
||||
topMenu = nil
|
||||
end
|
@ -0,0 +1,18 @@
|
||||
Module
|
||||
name: topmenu
|
||||
description: Create the top menu
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
version: 0.2
|
||||
autoLoad: true
|
||||
dependencies:
|
||||
- core
|
||||
|
||||
onLoad: |
|
||||
require 'topmenu'
|
||||
TopMenu.create()
|
||||
return true
|
||||
|
||||
onUnload: |
|
||||
TopMenu.destroy()
|
||||
|
@ -0,0 +1,52 @@
|
||||
TopPanel
|
||||
id: topMenu
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
focusable: false
|
||||
|
||||
TopButton
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
margin.top: 3
|
||||
margin.left: 6
|
||||
|
||||
UIWidget
|
||||
size: 16 16
|
||||
image: /core_ui/icons/settings.png
|
||||
anchors.centerIn: parent
|
||||
phantom: true
|
||||
|
||||
TopButton
|
||||
anchors.top: prev.top
|
||||
anchors.left: prev.right
|
||||
margin.left: 6
|
||||
|
||||
UIWidget
|
||||
size: 16 16
|
||||
image: /core_ui/icons/login.png
|
||||
anchors.centerIn: parent
|
||||
phantom: true
|
||||
|
||||
TopButton
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
margin.top: 3
|
||||
margin.right: 6
|
||||
|
||||
UIWidget
|
||||
size: 16 16
|
||||
image: /core_ui/icons/exit.png
|
||||
anchors.centerIn: parent
|
||||
phantom: true
|
||||
|
||||
TopButton
|
||||
anchors.top: prev.top
|
||||
anchors.right: prev.left
|
||||
margin.right: 6
|
||||
|
||||
UIWidget
|
||||
size: 16 16
|
||||
image: /core_ui/icons/logout.png
|
||||
anchors.centerIn: parent
|
||||
phantom: true
|
Before Width: | Height: | Size: 136 KiB |