2012-08-06 23:47:58 +02:00
|
|
|
EnterGameWindow < MainWindow
|
2013-03-01 09:08:30 +01:00
|
|
|
!text: tr('Enter Game')
|
2015-01-27 23:44:37 +01:00
|
|
|
size: 236 298
|
2013-03-01 09:08:30 +01:00
|
|
|
|
|
|
|
EnterGameButton < Button
|
|
|
|
width: 64
|
2012-08-06 23:47:58 +02:00
|
|
|
|
2013-02-23 12:41:21 +01:00
|
|
|
ServerListButton < UIButton
|
|
|
|
size: 17 17
|
|
|
|
image-source: /images/topbuttons/minimap
|
|
|
|
image-color: #ffffffff
|
|
|
|
|
|
|
|
$hover !disabled:
|
|
|
|
image-color: #ffffff99
|
|
|
|
|
|
|
|
$pressed:
|
|
|
|
image-color: #ffffff44
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
image-color: #ffffff55
|
|
|
|
|
2012-08-06 23:47:58 +02:00
|
|
|
EnterGameWindow
|
2011-11-02 04:02:56 +01:00
|
|
|
id: enterGame
|
2015-01-18 15:14:07 +01:00
|
|
|
&authenticatorEnabled: false
|
|
|
|
&authenticatorHeight: 44
|
2015-01-27 23:44:37 +01:00
|
|
|
&stayLoggedBoxEnabled: false
|
|
|
|
&stayLoggedBoxHeight: 24
|
2011-11-17 22:41:02 +01:00
|
|
|
@onEnter: EnterGame.doLogin()
|
2011-05-01 20:47:35 +02:00
|
|
|
|
2012-08-05 20:26:08 +02:00
|
|
|
MenuLabel
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Account name')
|
2011-04-10 23:16:24 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
2012-04-26 04:57:56 +02:00
|
|
|
text-auto-resize: true
|
2011-05-01 20:47:35 +02:00
|
|
|
|
2013-01-21 22:36:53 +01:00
|
|
|
PasswordTextEdit
|
2012-03-31 15:43:01 +02:00
|
|
|
id: accountNameTextEdit
|
2011-04-10 23:16:24 +02:00
|
|
|
anchors.left: parent.left
|
2011-07-27 01:13:27 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-top: 2
|
2011-05-01 20:47:35 +02:00
|
|
|
|
2012-08-05 20:26:08 +02:00
|
|
|
MenuLabel
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Password')
|
2011-07-27 01:13:27 +02:00
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.top: prev.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-top: 8
|
2012-04-26 04:57:56 +02:00
|
|
|
text-auto-resize: true
|
2011-04-10 23:16:24 +02:00
|
|
|
|
2012-03-31 15:43:01 +02:00
|
|
|
PasswordTextEdit
|
|
|
|
id: accountPasswordTextEdit
|
2011-04-10 23:16:24 +02:00
|
|
|
anchors.left: parent.left
|
2011-07-27 01:13:27 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-top: 2
|
2011-04-10 23:16:24 +02:00
|
|
|
|
2015-01-18 15:14:07 +01:00
|
|
|
MenuLabel
|
|
|
|
id: authenticatorTokenLabel
|
|
|
|
!text: tr('Authenticator Token')
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
text-auto-resize: true
|
2015-01-27 23:44:37 +01:00
|
|
|
margin-top: -12
|
2015-01-18 15:14:07 +01:00
|
|
|
visible: false
|
|
|
|
|
2015-01-27 23:44:37 +01:00
|
|
|
$on:
|
|
|
|
visible: true
|
|
|
|
margin-top: 8
|
|
|
|
|
2015-01-18 15:14:07 +01:00
|
|
|
TextEdit
|
|
|
|
id: authenticatorTokenTextEdit
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2015-01-27 23:44:37 +01:00
|
|
|
margin-top: -22
|
2015-01-18 15:14:07 +01:00
|
|
|
visible: false
|
|
|
|
max-length: 8
|
|
|
|
|
2015-01-27 23:44:37 +01:00
|
|
|
$on:
|
|
|
|
visible: true
|
|
|
|
margin-top: 2
|
|
|
|
|
|
|
|
CheckBox
|
|
|
|
id: stayLoggedBox
|
|
|
|
!text: tr('Stay logged during session')
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
margin-top: -16
|
|
|
|
visible: false
|
|
|
|
|
|
|
|
$on:
|
|
|
|
visible: true
|
|
|
|
margin-top: 8
|
|
|
|
|
|
|
|
HorizontalSeparator
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 8
|
|
|
|
|
2012-08-05 20:26:08 +02:00
|
|
|
MenuLabel
|
2011-11-16 21:07:52 +01:00
|
|
|
id: serverLabel
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Server')
|
2011-11-16 21:07:52 +01:00
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.top: prev.bottom
|
2015-01-27 23:44:37 +01:00
|
|
|
margin-top: 8
|
2012-04-26 04:57:56 +02:00
|
|
|
text-auto-resize: true
|
2011-11-16 21:07:52 +01:00
|
|
|
|
2013-02-23 12:41:21 +01:00
|
|
|
ServerListButton
|
|
|
|
id: serverListButton
|
2013-02-27 13:01:51 +01:00
|
|
|
!tooltip: tr('Server list')
|
2013-02-23 12:41:21 +01:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: serverLabel.bottom
|
|
|
|
margin-top: 3
|
|
|
|
@onClick: ServerList.show()
|
|
|
|
|
2012-03-31 15:43:01 +02:00
|
|
|
TextEdit
|
|
|
|
id: serverHostTextEdit
|
2013-08-04 00:21:08 +02:00
|
|
|
!tooltip: tr('Make sure that your client uses\nthe correct game client version')
|
2012-07-18 01:49:21 +02:00
|
|
|
anchors.left: parent.left
|
2013-02-23 12:41:21 +01:00
|
|
|
anchors.right: serverListButton.left
|
2011-11-16 21:07:52 +01:00
|
|
|
anchors.top: serverLabel.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-top: 2
|
2013-02-23 12:41:21 +01:00
|
|
|
margin-right: 4
|
2012-07-18 01:49:21 +02:00
|
|
|
|
2012-08-05 20:26:08 +02:00
|
|
|
MenuLabel
|
2013-08-04 00:21:08 +02:00
|
|
|
id: clientLabel
|
|
|
|
!text: tr('Client Version')
|
2012-07-18 01:49:21 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: serverHostTextEdit.bottom
|
2012-08-05 23:43:45 +02:00
|
|
|
text-auto-resize: true
|
2012-07-18 01:49:21 +02:00
|
|
|
margin-right: 10
|
|
|
|
margin-top: 8
|
|
|
|
|
|
|
|
ComboBox
|
2013-08-04 00:21:08 +02:00
|
|
|
id: clientComboBox
|
2012-08-06 16:39:27 +02:00
|
|
|
anchors.left: parent.left
|
2012-08-05 23:43:45 +02:00
|
|
|
anchors.right: parent.horizontalCenter
|
2013-08-04 00:21:08 +02:00
|
|
|
anchors.top: clientLabel.bottom
|
2012-07-18 01:49:21 +02:00
|
|
|
margin-top: 2
|
2012-08-05 23:43:45 +02:00
|
|
|
margin-right: 3
|
2012-07-18 01:49:21 +02:00
|
|
|
width: 90
|
2014-07-03 18:15:38 +02:00
|
|
|
menu-scroll: true
|
|
|
|
menu-height: 125
|
|
|
|
menu-scroll-step: 25
|
2011-11-16 21:07:52 +01:00
|
|
|
|
2012-08-05 20:26:08 +02:00
|
|
|
MenuLabel
|
2011-11-16 21:07:52 +01:00
|
|
|
id: portLabel
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Port')
|
2012-08-05 23:43:45 +02:00
|
|
|
anchors.left: serverPortTextEdit.left
|
2012-07-18 01:49:21 +02:00
|
|
|
anchors.top: serverHostTextEdit.bottom
|
|
|
|
margin-top: 8
|
2012-08-05 23:43:45 +02:00
|
|
|
text-auto-resize: true
|
2011-11-16 21:07:52 +01:00
|
|
|
|
2012-03-31 15:43:01 +02:00
|
|
|
TextEdit
|
|
|
|
id: serverPortTextEdit
|
2011-11-16 21:07:52 +01:00
|
|
|
text: 7171
|
2012-07-18 01:49:21 +02:00
|
|
|
anchors.right: parent.right
|
2012-08-05 23:43:45 +02:00
|
|
|
anchors.left: parent.horizontalCenter
|
2013-08-04 00:21:08 +02:00
|
|
|
anchors.top: clientComboBox.top
|
2012-08-05 23:43:45 +02:00
|
|
|
margin-left: 3
|
2011-11-16 21:07:52 +01:00
|
|
|
|
2011-11-16 00:47:32 +01:00
|
|
|
CheckBox
|
|
|
|
id: rememberPasswordBox
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Remember password')
|
2013-01-21 22:36:53 +01:00
|
|
|
!tooltip: tr('Remember account and password when starts client')
|
2011-11-16 00:47:32 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-top: 10
|
2012-01-06 09:48:59 +01:00
|
|
|
@onCheckChange: self:getParent():getChildById('autoLoginBox'):setEnabled(self:isChecked())
|
2011-11-16 00:47:32 +01:00
|
|
|
|
|
|
|
CheckBox
|
|
|
|
id: autoLoginBox
|
2011-11-16 19:59:55 +01:00
|
|
|
enabled: false
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Auto login')
|
2013-01-21 22:36:53 +01:00
|
|
|
!tooltip: tr('Open charlist automatically when starting client')
|
2011-11-16 00:47:32 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2012-01-11 13:06:50 +01:00
|
|
|
margin-top: 2
|
2011-11-16 00:47:32 +01:00
|
|
|
|
2015-01-27 23:44:37 +01:00
|
|
|
HorizontalSeparator
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
|
2013-03-01 09:08:30 +01:00
|
|
|
EnterGameButton
|
2012-04-26 18:45:25 +02:00
|
|
|
!text: tr('Ok')
|
2011-04-10 23:16:24 +02:00
|
|
|
anchors.right: parent.right
|
2015-01-27 23:44:37 +01:00
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 4
|
2012-08-10 21:26:39 +02:00
|
|
|
@onClick: EnterGame.doLogin()
|
2013-01-21 22:36:53 +01:00
|
|
|
|
|
|
|
Label
|
|
|
|
id: serverInfoLabel
|
|
|
|
font: verdana-11px-rounded
|
2015-01-27 23:44:37 +01:00
|
|
|
anchors.top: prev.top
|
2013-01-21 22:36:53 +01:00
|
|
|
anchors.left: parent.left
|
2015-01-27 23:44:37 +01:00
|
|
|
margin-top: 5
|
2013-01-21 22:36:53 +01:00
|
|
|
color: green
|
2015-01-27 23:44:37 +01:00
|
|
|
text-auto-resize: true
|