mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Changed/Fixed Text Windows, Text Message, Hotkeys Manager, Game Interface and Quest Log
* Renamed game_textbooks to game_textwindow. * Fixed text window from opening multiple times, and is destroyed correctly. * Added new game_playerdeath module (moved death message and window here). * Hotkey window will hide on game end. * Logout/Exit/Stackable Items/Questlog/Hotkeys windows will now close on game end.
This commit is contained in:
@@ -61,6 +61,7 @@ function HotkeysManager.init()
|
||||
itemWidget:setVisible(false)
|
||||
itemWidget:setFocusable(false)
|
||||
|
||||
connect(g_game, { onGameEnd = HotkeysManager.hide })
|
||||
connect(currentHotkeysList, { onChildFocusChange = function (self, focusedChild) HotkeysManager.checkSelectedHotkey(focusedChild) end } )
|
||||
|
||||
hotkeysManagerLoaded = true
|
||||
@@ -104,6 +105,7 @@ end
|
||||
function HotkeysManager.terminate()
|
||||
hotkeysManagerLoaded = false
|
||||
|
||||
disconnect(g_game, { onGameEnd = HotkeysManager.hide })
|
||||
g_keyboard.unbindKeyDown('Ctrl+K')
|
||||
|
||||
HotkeysManager.save()
|
||||
|
Reference in New Issue
Block a user