mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01: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:
@@ -7,11 +7,18 @@ local background
|
||||
function Background.init()
|
||||
background = displayUI('background.otui')
|
||||
background:lower()
|
||||
|
||||
connect(g_game, { onGameStart = Background.hide })
|
||||
connect(g_game, { onGameEnd = Background.show })
|
||||
end
|
||||
|
||||
function Background.terminate()
|
||||
disconnect(g_game, { onGameStart = Background.hide })
|
||||
disconnect(g_game, { onGameEnd = Background.show })
|
||||
|
||||
background:destroy()
|
||||
background = nil
|
||||
|
||||
Background = nil
|
||||
end
|
||||
|
||||
|
||||
@@ -3,12 +3,14 @@ Module
|
||||
description: Handles the background of the login screen
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
autoload: true
|
||||
autoload-antecedence: 110
|
||||
reloadable: true
|
||||
|
||||
onLoad: |
|
||||
dependencies:
|
||||
- client_topmenu
|
||||
|
||||
@onLoad: |
|
||||
dofile 'background'
|
||||
Background.init()
|
||||
|
||||
onUnload: |
|
||||
@onUnload: |
|
||||
Background.terminate()
|
||||
|
||||
Reference in New Issue
Block a user