tibia-client/modules/client_entergame/entergame.otui

205 lines
4.4 KiB
Plaintext
Raw Normal View History

EnterGameWindow < MainWindow
!text: tr('Enter Game')
size: 236 298
EnterGameButton < Button
width: 64
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
EnterGameWindow
2011-11-02 04:02:56 +01:00
id: enterGame
&authenticatorEnabled: false
&authenticatorHeight: 44
&stayLoggedBoxEnabled: false
&stayLoggedBoxHeight: 24
2011-11-17 22:41:02 +01:00
@onEnter: EnterGame.doLogin()
2011-05-01 20:47:35 +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
PasswordTextEdit
id: accountNameTextEdit
2011-04-10 23:16:24 +02:00
anchors.left: parent.left
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
MenuLabel
2012-04-26 18:45:25 +02:00
!text: tr('Password')
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
PasswordTextEdit
id: accountPasswordTextEdit
2011-04-10 23:16:24 +02:00
anchors.left: parent.left
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
MenuLabel
id: authenticatorTokenLabel
!text: tr('Authenticator Token')
anchors.left: prev.left
anchors.top: prev.bottom
text-auto-resize: true
margin-top: -12
visible: false
$on:
visible: true
margin-top: 8
TextEdit
id: authenticatorTokenTextEdit
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: -22
visible: false
max-length: 8
$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
MenuLabel
id: serverLabel
2012-04-26 18:45:25 +02:00
!text: tr('Server')
anchors.left: prev.left
anchors.top: prev.bottom
margin-top: 8
2012-04-26 04:57:56 +02:00
text-auto-resize: true
ServerListButton
id: serverListButton
!tooltip: tr('Server list')
anchors.right: parent.right
anchors.top: serverLabel.bottom
margin-top: 3
@onClick: ServerList.show()
TextEdit
id: serverHostTextEdit
!tooltip: tr('Make sure that your client uses\nthe correct game client version')
anchors.left: parent.left
anchors.right: serverListButton.left
anchors.top: serverLabel.bottom
2011-11-17 22:41:02 +01:00
margin-top: 2
margin-right: 4
MenuLabel
id: clientLabel
!text: tr('Client Version')
anchors.left: parent.left
anchors.top: serverHostTextEdit.bottom
text-auto-resize: true
margin-right: 10
margin-top: 8
ComboBox
id: clientComboBox
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.top: clientLabel.bottom
margin-top: 2
margin-right: 3
width: 90
2014-07-03 18:15:38 +02:00
menu-scroll: true
menu-height: 125
menu-scroll-step: 25
MenuLabel
id: portLabel
2012-04-26 18:45:25 +02:00
!text: tr('Port')
anchors.left: serverPortTextEdit.left
anchors.top: serverHostTextEdit.bottom
margin-top: 8
text-auto-resize: true
TextEdit
id: serverPortTextEdit
text: 7171
anchors.right: parent.right
anchors.left: parent.horizontalCenter
anchors.top: clientComboBox.top
margin-left: 3
2011-11-16 00:47:32 +01:00
CheckBox
id: rememberPasswordBox
2012-04-26 18:45:25 +02:00
!text: tr('Remember password')
!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
enabled: false
2012-04-26 18:45:25 +02:00
!text: tr('Auto login')
!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
HorizontalSeparator
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 6
EnterGameButton
2012-04-26 18:45:25 +02:00
!text: tr('Ok')
2011-04-10 23:16:24 +02:00
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 4
@onClick: EnterGame.doLogin()
Label
id: serverInfoLabel
font: verdana-11px-rounded
anchors.top: prev.top
anchors.left: parent.left
margin-top: 5
color: green
text-auto-resize: true