mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
change interface style, add top menu
This commit is contained in:
@@ -69,4 +69,5 @@ MainWindow
|
||||
function(self)
|
||||
self:getParent():unlock()
|
||||
self:getParent():hide()
|
||||
EnterGame.create()
|
||||
end
|
||||
47
modules/mainmenu/ui/loginpanel.otui
Normal file
47
modules/mainmenu/ui/loginpanel.otui
Normal file
@@ -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()
|
||||
@@ -10,31 +10,8 @@ Panel
|
||||
source: /mainmenu/ui/background.png
|
||||
smooth: true
|
||||
fixed ratio: true
|
||||
anchors.fill: parent
|
||||
anchors.top: topMenu.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
focusable: false
|
||||
|
||||
RoundedPanel
|
||||
id: mainMenu
|
||||
size: 144 162
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
margin.left: 60
|
||||
margin.bottom: 70
|
||||
layout: verticalBox
|
||||
|
||||
MenuButton
|
||||
text: Enter Game
|
||||
margin.top: 18
|
||||
onClick: EnterGame.create()
|
||||
|
||||
MenuButton
|
||||
text: Options
|
||||
onClick: UI.loadAndDisplayLocked("/mainmenu/ui/optionswindow.otui")
|
||||
|
||||
MenuButton
|
||||
text: Info
|
||||
onClick: UI.loadAndDisplayLocked("/mainmenu/ui/infowindow.otui")
|
||||
|
||||
MenuButton
|
||||
text: Exit
|
||||
onClick: exit()
|
||||
|
||||
BIN
modules/mainmenu/ui/otclient_logo.png
Normal file
BIN
modules/mainmenu/ui/otclient_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
Reference in New Issue
Block a user