mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Version 2.4 - http://otclient.net/showthread.php?tid=160
This commit is contained in:
@@ -4,9 +4,11 @@ questLineWindow = nil
|
||||
function init()
|
||||
g_ui.importStyle('questlogwindow')
|
||||
g_ui.importStyle('questlinewindow')
|
||||
|
||||
questLogButton = modules.client_topmenu.addLeftGameButton('questLogButton', tr('Quest Log'), '/images/topbuttons/questlog', function() g_game.requestQuestLog() end, false, 8)
|
||||
|
||||
|
||||
if not g_app.isMobile() then
|
||||
questLogButton = modules.client_topmenu.addLeftGameButton('questLogButton', tr('Quest Log'), '/images/topbuttons/questlog', function() g_game.requestQuestLog() end, false, 8)
|
||||
end
|
||||
|
||||
connect(g_game, { onQuestLog = onGameQuestLog,
|
||||
onQuestLine = onGameQuestLine,
|
||||
onGameEnd = destroyWindows})
|
||||
@@ -18,7 +20,9 @@ function terminate()
|
||||
onGameEnd = destroyWindows})
|
||||
|
||||
destroyWindows()
|
||||
questLogButton:destroy()
|
||||
if questLogButton then
|
||||
questLogButton:destroy()
|
||||
end
|
||||
end
|
||||
|
||||
function destroyWindows()
|
||||
|
Reference in New Issue
Block a user