3 minutos atrás, Naruse disse:Não adianta tu mandar o OTMOD, pois ele é inútil, é um módulo sómente para ativar o client_entergame inteiro, mande o otui ai
Entendido!
Ta na mão: entergame.otui:
EnterGameWindow < MainWindow
!text: tr('Enter Game')
size: 236 274
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
id: enterGame
@onEnter: EnterGame.doLogin()
MenuLabel
!text: tr('Account name')
anchors.left: parent.left
anchors.top: parent.top
text-auto-resize: true
PasswordTextEdit
id: accountNameTextEdit
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
MenuLabel
!text: tr('Password')
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
menu-scroll: true
menu-height: 125
menu-scroll-step: 25
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('Remember password')
!tooltip: tr('Remember account and password when starts client')
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 10
@onCheckChange: self:getParent():getChildById('autoLoginBox'):setEnabled(self:isChecked())
CheckBox
id: autoLoginBox
enabled: false
!text: tr('Auto login')
!tooltip: tr('Open charlist automatically when starting client')
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
EnterGameButton
!text: tr('Ok')
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






info
Grupo: Campones
Registrado: 13/04/15
Posts: 25
Reputação: +2
Char no Tibia: [ADM] Phellip
Olá pessoal, poderiam me ajudar por favor? Acessei vários tópicos mas infelizmente sem sucesso...
Eu gostaria de remover o campo "Servidor", "Client Version" e "Porta" na tela de login do OTClient:
Gostaria de atribuí-los por linha de código, por exemplo: "192.168.0.100, 860, 7171".
Segue meu modules\client_entergame\entergame.lua:
Segue meu modules\client_entergame\entergame.otmod:
Module name: client_entergame description: Manages enter game and character list windows author: edubart website: www.otclient.info dependencies: - client_topmenu @onLoad: | dofile 'entergame' dofile 'characterlist' EnterGame.init() CharacterList.init() @onUnload: | EnterGame.terminate() CharacterList.terminate()Agradeço desde já!