Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions modules/client_entergame/entergame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ function EnterGame.setPassword(password)
end

function EnterGame.setHttpLogin(httpLogin)
enterGame:getChildById('httpLoginBox'):setChecked(#httpLogin > 0)
if type(httpLogin) == "boolean" then
enterGame:getChildById('httpLoginBox'):setChecked(httpLogin)
else
enterGame:getChildById('httpLoginBox'):setChecked(#httpLogin > 0)
end
end

function EnterGame.clearAccountFields()
Expand Down Expand Up @@ -494,7 +498,13 @@ function EnterGame.doLogin()
protocolLogin.onCharacterList = onCharacterList
protocolLogin.onUpdateNeeded = onUpdateNeeded

loadBox = displayCancelBox(tr('Please wait'), tr('Connecting to login server...'))
if not host then
loadBox = displayCancelBox(tr('Please wait'), tr('ERROR , try adding \n- ip/login.php \n- Enable HTTP login'))
else
loadBox = displayCancelBox(tr('Please wait'), tr('Connecting to login server...\nServer: [%s]',
host .. ":" .. tostring(G.port) .. path))
end

connect(loadBox, {
onCancel = function(msgbox)
loadBox = nil
Expand Down
1 change: 0 additions & 1 deletion modules/client_entergame/entergame.otui
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
EnterGameWindow < MainWindow
!text: tr('Enter Game')
size: 236 316
draggable: false

EnterGameButton < Button
width: 64
Expand Down