mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
many changes and refactoring
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
window#enterGameWindow
|
||||
%window#enterGameWindow
|
||||
title: Enter Game
|
||||
size: [236, 178]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onLoad: self.locked = true
|
||||
|
||||
label#accountNameLabel
|
||||
%label#accountNameLabel
|
||||
text: Account name
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 33
|
||||
|
||||
label#passwordLabel
|
||||
%label#passwordLabel
|
||||
text: "Password:"
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 62
|
||||
|
||||
label#createAccountLabel
|
||||
%label#createAccountLabel
|
||||
text: |
|
||||
If you don't have
|
||||
an account yet
|
||||
@@ -28,7 +28,7 @@ window#enterGameWindow
|
||||
margin.left: 18
|
||||
margin.top: 87
|
||||
|
||||
button#createAccountButton
|
||||
%button#createAccountButton
|
||||
text: Create Account
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
@@ -36,7 +36,7 @@ window#enterGameWindow
|
||||
margin.left: 132
|
||||
onClick: messageBox("Error", "Not implemented yet")
|
||||
|
||||
button#okButton
|
||||
%button#okButton
|
||||
text: Ok
|
||||
size: [43, 20]
|
||||
anchors.right: parent.right
|
||||
@@ -45,7 +45,7 @@ window#enterGameWindow
|
||||
margin.right: 66
|
||||
onClick: enterGame_onOkClicked()
|
||||
|
||||
button#cancelButton
|
||||
%button#cancelButton
|
||||
text: Cancel
|
||||
size: [43, 20]
|
||||
anchors.right: parent.right
|
||||
@@ -54,13 +54,13 @@ window#enterGameWindow
|
||||
margin.right: 13
|
||||
onClick: self.parent:destroy()
|
||||
|
||||
textEdit#accountNameTextEdit
|
||||
%textEdit#accountNameTextEdit
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
margin.top: 32
|
||||
margin.right: 18
|
||||
|
||||
textEdit#passwordTextEdit
|
||||
%textEdit#passwordTextEdit
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
margin.top: 61
|
||||
|
@@ -1,11 +1,11 @@
|
||||
window#infoWindow
|
||||
%window#infoWindow
|
||||
title: Info
|
||||
size: [244, 221]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onLoad: self.locked = true
|
||||
|
||||
panel#infoPanel
|
||||
%panel#infoPanel
|
||||
skin: flatPanel
|
||||
size: [208, 129]
|
||||
anchors.left: parent.left
|
||||
@@ -13,7 +13,7 @@ window#infoWindow
|
||||
margin.top: 32
|
||||
margin.left: 18
|
||||
|
||||
label#infoLabel
|
||||
%label#infoLabel
|
||||
align: center
|
||||
text: |-
|
||||
OTClient
|
||||
@@ -23,21 +23,21 @@ window#infoWindow
|
||||
anchors.top: parent.top
|
||||
margin.top: 20
|
||||
|
||||
lineDecoration#bottomSeparator
|
||||
%lineDecoration#bottomSeparator
|
||||
size: [190, 2]
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.top: 83
|
||||
margin.left: 9
|
||||
|
||||
label#websiteLabel
|
||||
%label#websiteLabel
|
||||
text: Official Website
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
margin.bottom: 14
|
||||
margin.left: 9
|
||||
|
||||
button#websiteButton
|
||||
%button#websiteButton
|
||||
text: Github Page
|
||||
size: [80,22]
|
||||
anchors.right: parent.right
|
||||
@@ -45,7 +45,7 @@ window#infoWindow
|
||||
margin.bottom: 9
|
||||
margin.right: 9
|
||||
|
||||
lineDecoration#bottomSeparator
|
||||
%lineDecoration#bottomSeparator
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -53,7 +53,7 @@ window#infoWindow
|
||||
margin.left: 13
|
||||
margin.right: 13
|
||||
|
||||
button#okButton
|
||||
%button#okButton
|
||||
text: Ok
|
||||
size: [43, 20]
|
||||
anchors.left: parent.left
|
||||
|
@@ -1,11 +1,11 @@
|
||||
panel#background
|
||||
%panel#background
|
||||
skin: mainMenuBackground
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
panel#icos4d
|
||||
%panel#icos4d
|
||||
skin:
|
||||
image: /skins/lightness/mouse.png
|
||||
anchors.left: parent.left
|
||||
@@ -13,7 +13,7 @@ panel#background
|
||||
margin.left: -2
|
||||
margin.top: 70
|
||||
|
||||
panel#mouse
|
||||
%panel#mouse
|
||||
skin:
|
||||
image: /skins/lightness/icos4d.png
|
||||
anchors.right: parent.right
|
||||
@@ -21,7 +21,7 @@ panel#background
|
||||
margin.left: 60
|
||||
margin.top: 70
|
||||
|
||||
panel#mainMenu
|
||||
%panel#mainMenu
|
||||
skin: roundedGridPanel
|
||||
size: [117, 171]
|
||||
anchors.left: parent.left
|
||||
@@ -29,35 +29,35 @@ panel#background
|
||||
margin.left: 60
|
||||
margin.bottom: 70
|
||||
|
||||
button#enterGameButton
|
||||
%button#enterGameButton
|
||||
text: Enter Game
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 16
|
||||
onClick: UI.load("entergamewindow.yml")
|
||||
|
||||
button#accessAccountButton
|
||||
%button#accessAccountButton
|
||||
text: Access Account
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 46
|
||||
onClick: messageBox("Error", "Not implemented yet")
|
||||
|
||||
button#optionsButton
|
||||
%button#optionsButton
|
||||
text: Options
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 76
|
||||
onClick: UI.load("optionswindow.yml")
|
||||
|
||||
button#infoButton
|
||||
%button#infoButton
|
||||
text: Info
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 106
|
||||
onClick: UI.load("infowindow.yml")
|
||||
|
||||
button#exitGameButton
|
||||
%button#exitGameButton
|
||||
text: Exit
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
@@ -1,4 +1,4 @@
|
||||
window#optionsWindow
|
||||
%window#optionsWindow
|
||||
title: Options
|
||||
size: [286, 262]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
@@ -6,14 +6,14 @@ window#optionsWindow
|
||||
onLoad: self.locked = true
|
||||
|
||||
# general
|
||||
button#generalButton
|
||||
%button#generalButton
|
||||
text: General
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 32
|
||||
|
||||
label#generalLabel
|
||||
%label#generalLabel
|
||||
text: |-
|
||||
Change general
|
||||
game options
|
||||
@@ -23,14 +23,14 @@ window#optionsWindow
|
||||
margin.top: 29
|
||||
|
||||
# graphics
|
||||
button#graphicsButton
|
||||
%button#graphicsButton
|
||||
text: Graphics
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 65
|
||||
|
||||
label#graphicsLabel
|
||||
%label#graphicsLabel
|
||||
text: |-
|
||||
Change graphics and
|
||||
performance settings
|
||||
@@ -40,14 +40,14 @@ window#optionsWindow
|
||||
margin.top: 62
|
||||
|
||||
# console
|
||||
button#consoleButton
|
||||
%button#consoleButton
|
||||
text: Console
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 98
|
||||
|
||||
label#consoleLabel
|
||||
%label#consoleLabel
|
||||
text: Customise the console
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
@@ -55,21 +55,21 @@ window#optionsWindow
|
||||
margin.top: 95
|
||||
|
||||
# hotkeys
|
||||
button#hotkeysButton
|
||||
%button#hotkeysButton
|
||||
text: Hotkeys
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 18
|
||||
margin.top: 131
|
||||
|
||||
label#hotkeysLabel
|
||||
%label#hotkeysLabel
|
||||
text: Edit your hotkey texts
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.left: 117
|
||||
margin.top: 128
|
||||
|
||||
lineDecoration#middleSeparator
|
||||
%lineDecoration#middleSeparator
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -78,14 +78,14 @@ window#optionsWindow
|
||||
margin.right: 18
|
||||
|
||||
# motd
|
||||
button#motdButton
|
||||
%button#motdButton
|
||||
text: Motd
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
margin.left: 18
|
||||
margin.bottom: 60
|
||||
|
||||
label#motdLabel
|
||||
%label#motdLabel
|
||||
text: |
|
||||
Show the most recent
|
||||
Message of the Day
|
||||
@@ -94,7 +94,7 @@ window#optionsWindow
|
||||
margin.left: 117
|
||||
margin.bottom: 56
|
||||
|
||||
lineDecoration#bottomSeparator
|
||||
%lineDecoration#bottomSeparator
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -103,7 +103,7 @@ window#optionsWindow
|
||||
margin.right: 13
|
||||
|
||||
# ok button
|
||||
button#okButton
|
||||
%button#okButton
|
||||
text: Ok
|
||||
size: [43, 20]
|
||||
anchors.right: parent.right
|
||||
|
@@ -1,15 +1,15 @@
|
||||
window#messageBoxWindow
|
||||
%window#messageBoxWindow
|
||||
size: [192, 78]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
|
||||
label#textLabel
|
||||
%label#textLabel
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
margin.top: 27
|
||||
|
||||
button#okButton
|
||||
%button#okButton
|
||||
text: Ok
|
||||
size: [43, 20]
|
||||
anchors.right: parent.right
|
||||
|
Reference in New Issue
Block a user