mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +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()
|
||||
|
@@ -23,6 +23,8 @@ QuestLogWindow < MainWindow
|
||||
!text: tr('Quest Log')
|
||||
size: 500 400
|
||||
@onEscape: self:destroy()
|
||||
$mobile:
|
||||
size: 500 350
|
||||
|
||||
TextList
|
||||
id: questList
|
||||
|
Reference in New Issue
Block a user