Mercurial > wow > buffalo2
comparison ObjectiveEvents.lua @ 21:d5ee940de273
use hardcoded aesthetic manipulations over loadstring cramming
author | Nenue |
---|---|
date | Fri, 08 Apr 2016 06:12:05 -0400 |
parents | 6bd2102d340b |
children |
comparison
equal
deleted
inserted
replaced
20:6bd2102d340b | 21:d5ee940de273 |
---|---|
16 ------------------------------------------------------------------- | 16 ------------------------------------------------------------------- |
17 mod.AddQuestWatch = function(questID) | 17 mod.AddQuestWatch = function(questID) |
18 mod:Update(0x00000003) | 18 mod:Update(0x00000003) |
19 end | 19 end |
20 | 20 |
21 local Quest = mod.Quest | |
21 mod.RemoveQuestWatch = function(questIndex, ...) | 22 mod.RemoveQuestWatch = function(questIndex, ...) |
22 print('|cFFFF8800RemoveQuestWatch', questIndex, ...) | 23 print('|cFFFF8800RemoveQuestWatch', questIndex, ...) |
24 | |
23 local info = mod.Quest.LogInfo[questIndex] | 25 local info = mod.Quest.LogInfo[questIndex] |
24 | 26 |
25 -- remove quest refs | 27 -- remove quest refs |
26 mod.Quest.LogBlock[questIndex] = nil | 28 local block = Quest.QuestBlock[info.questID] |
27 mod.Quest.QuestBlock[info.questID] = nil | 29 Quest.QuestBlock[info.questID] = nil |
30 Quest.LogBlock[questIndex] = nil | |
28 | 31 |
29 -- remove if they still match | 32 -- remove if they still match |
30 if mod.Quest.WatchInfo[info.watchIndex] == info then | 33 if Quest.WatchInfo[info.watchIndex] == info then |
31 print('cleaning dead WatchInfo entry') | 34 print('cleaning dead WatchInfo entry') |
32 mod.Quest.WatchInfo[info.watchIndex] = nil | 35 Quest.WatchInfo[info.watchIndex] = nil |
33 end | 36 end |
37 for i = 1, #info.objectives do | |
38 Quest.lines[block.blockIndex][i]:Hide() | |
39 end | |
40 | |
34 mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST) | 41 mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST) |
35 end | 42 end |
36 | 43 |
37 mod.AddTrackedAchievement = function(cheevID) | 44 mod.AddTrackedAchievement = function(cheevID) |
38 mod.CleanWidgets() | 45 mod.CleanWidgets() |
66 end | 73 end |
67 | 74 |
68 | 75 |
69 | 76 |
70 mod.SetSuperTrackedQuestID = function(questID) | 77 mod.SetSuperTrackedQuestID = function(questID) |
71 mod:Update() | 78 --mod:Update() |
72 end | 79 end |