mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
BEAWARE all game functionality is disabled with this commit for a while
* rework client modules * hide main window when loading * remake top menu functions * rework modules autoload * improve path resolving for otml and lua * move core_widgets to core_lib * fix tooltip issues * split some styles * add bit32 lua library * fix assert issues * fix compilation on linux 32 systems * rework gcc compile options * renable and fix some warnings * remove unused constants * speedup sprite cache * move UIGame to lua (not funcional yet) * fix a lot of issues in x11 window * fix crash handler * add some warnings do uiwidget and much more...
This commit is contained in:
@@ -46,19 +46,6 @@ function g_game.startUseWith(thing)
|
||||
end
|
||||
|
||||
function g_game.createInterface()
|
||||
Background.hide()
|
||||
CharacterList.destroyLoadBox()
|
||||
g_game.gameUi = displayUI('game.otui')
|
||||
|
||||
--Keyboard.bindKeyPress('Up', function() g_game.walk(North) end)
|
||||
--Keyboard.bindKeyPress('Down', function() g_game.walk(South) end)
|
||||
--Keyboard.bindKeyPress('Left', function() g_game.walk(West) end)
|
||||
--Keyboard.bindKeyPress('Right', function() g_game.walk(East) end)
|
||||
|
||||
Keyboard.bindKeyPress('Ctrl+Shift+Up', function() g_game.forceWalk(North) end)
|
||||
Keyboard.bindKeyPress('Ctrl+Shift+Down', function() g_game.forceWalk(South) end)
|
||||
Keyboard.bindKeyPress('Ctrl+Shift+Left', function() g_game.forceWalk(West) end)
|
||||
Keyboard.bindKeyPress('Ctrl+Shift+Right', function() g_game.forceWalk(East) end)
|
||||
|
||||
rootWidget:moveChildToIndex(g_game.gameUi, 1)
|
||||
g_game.gameMapPanel = g_game.gameUi:getChildById('gameMapPanel')
|
||||
@@ -89,17 +76,6 @@ function g_game.hide()
|
||||
end
|
||||
|
||||
-- hooked events
|
||||
function g_game.onLoginError(message)
|
||||
CharacterList.destroyLoadBox()
|
||||
local errorBox = displayErrorBox("Login Error", "Login error: " .. message)
|
||||
connect(errorBox, { onOk = CharacterList.show })
|
||||
end
|
||||
|
||||
function g_game.onConnectionError(message)
|
||||
CharacterList.destroyLoadBox()
|
||||
local errorBox = displayErrorBox("Login Error", "Connection error: " .. message)
|
||||
connect(errorBox, { onOk = CharacterList.show })
|
||||
end
|
||||
|
||||
local function onApplicationClose()
|
||||
if g_game.isOnline() then
|
||||
|
Reference in New Issue
Block a user