Olá pessoal do Tibia King, estou solicitando ajuda para por botão no enterGame,
Meu "entergame.Otui"
EnterGameWindow < HeadlessWindow
anchors.centerIn: parent
size: 390 520
padding: 100
image-source: enter.png
margin-left: 485
margin-top: 93
EnterGameButton < Button
image-source: botao.png
width: 70
height: 35
margin-right: 0
margin-bottom: 20
image-clip: 0 0 70 35
image-border: 2
image-color: #ffffffff
$hover:
image-clip: 0 36 70 35
$pressed:
image-clip: 0 40 70 35
$disabled:
image-color: #ffffff66
ServerListButton < UIButton
size: 17 17
image-source: /images/topbuttons/map_on
image-color: #ffffffff
$hover !disabled:
image-color: #ffffff99
$pressed:
image-color: #ffffff44
$disabled:
image-color: #ffffff55
EnterGameWindow
id: enterGame
@onEnter: EnterGame.doLogin()
MenuLabel
!text: tr('Nome da conta')
anchors.left: parent.left
anchors.top: parent.top
text-auto-resize: true
margin-top: 70
PasswordTextEdit
id: accountNameTextEdit
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
MenuLabel
!text: tr('Senha')
anchors.left: prev.left
anchors.top: prev.bottom
margin-top: 8
text-auto-resize: true
PasswordTextEdit
id: accountPasswordTextEdit
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
MenuLabel
id: serverLabel
!text: tr('Server')
anchors.left: prev.left
anchors.top: prev.bottom
margin-top: 8
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
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
MenuLabel
id: portLabel
!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
CheckBox
id: rememberPasswordBox
!text: tr('Lembrar senha')
!tooltip: tr('Lembrar nome da conta e senha')
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 5
margin-left: 0
@onCheckChange: self:getParent():getChildById('autoLoginBox'):setEnabled(self:isChecked())
CheckBox
id: autoLoginBox
enabled: false
!text: tr('Entrar automaticamente')
!tooltip: tr('Abrir automaticamente e ir direcionado para lista de personagens')
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 0
margin-left: 0
EnterGameButton
!text: tr('')
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: EnterGame.doLogin()
Label
id: serverInfoLabel
font: verdana-11px-rounded
anchors.bottom: parent.bottom
anchors.left: parent.left
color: green
text-auto-resize: true
Imagem Ilustrativa dos botões organizado por mim:
Desde já agradeço!