mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
lua console and some changes
This commit is contained in:
@@ -31,8 +31,8 @@ function EnterGame_connectToLoginServer()
|
||||
end
|
||||
|
||||
local enterGameWindow = rootWidget:getChild("enterGameWindow")
|
||||
local account = enterGameWindow:getChild("accountNameLineEdit").text
|
||||
local password = enterGameWindow:getChild("accountPasswordLineEdit").text
|
||||
local account = enterGameWindow:getChild("accountNameLineEdit"):getText()
|
||||
local password = enterGameWindow:getChild("accountPasswordLineEdit"):getText()
|
||||
protocolLogin:login(account, password)
|
||||
|
||||
enterGameWindow:destroy()
|
||||
|
@@ -50,4 +50,4 @@ MainWindow
|
||||
anchors.bottom: parent.bottom
|
||||
margin.bottom: 16
|
||||
margin.right: 16
|
||||
onClick: function(self) GFX.fadeOut(self.parent) end
|
||||
onClick: function(self) GFX.fadeOut(self:getParent()) end
|
||||
|
@@ -58,4 +58,4 @@ MainWindow
|
||||
anchors.top: parent.top
|
||||
margin.top: 191
|
||||
margin.left: 188
|
||||
onClick: function(self) self.parent:destroy() end
|
||||
onClick: function(self) self:getParent():destroy() end
|
||||
|
@@ -113,4 +113,4 @@ MainWindow
|
||||
anchors.bottom: parent.bottom
|
||||
margin.right: 10
|
||||
margin.bottom: 13
|
||||
onClick: function(self) self.parent:destroy() end
|
||||
onClick: function(self) self:getParent():destroy() end
|
||||
|
Reference in New Issue
Block a user