Mercurial > wow > buffalo2
comparison ObjectiveTracker/ObjectiveTracker.lua @ 33:64f2a9bbea79
- implementing structural revisions in bonus objectives
- prevent instances of nil arithmetic
- decide on where to keep style values
- start widgets with dummy values for operability
| author | Nenue |
|---|---|
| date | Fri, 15 Apr 2016 17:01:06 -0400 |
| parents | a3afe6c3771e |
| children | 9856ebc63fa4 |
comparison
equal
deleted
inserted
replaced
| 32:a3afe6c3771e | 33:64f2a9bbea79 |
|---|---|
| 125 OffsetY = WRAPPER_OFFSET_Y, | 125 OffsetY = WRAPPER_OFFSET_Y, |
| 126 Height = WRAPPER_MAX_HEIGHT, | 126 Height = WRAPPER_MAX_HEIGHT, |
| 127 Width = WRAPPER_WIDTH, | 127 Width = WRAPPER_WIDTH, |
| 128 HeaderHeight = WRAPPER_HEADER_HEIGHT, | 128 HeaderHeight = WRAPPER_HEADER_HEIGHT, |
| 129 TextSpacing = 3, | 129 TextSpacing = 3, |
| 130 TextIndent = 4, | |
| 130 TitleSpacing = 3, | 131 TitleSpacing = 3, |
| 132 TitleIndent = 4, | |
| 131 } | 133 } |
| 132 | 134 |
| 133 | 135 |
| 134 | 136 |
| 135 --- Tracker module definitions begin here; innards dealing with data retreival and output are defined further in | 137 --- Tracker module definitions begin here; innards dealing with data retreival and output are defined further in |
| 302 end | 304 end |
| 303 Event.SUPER_TRACKED_QUEST_CHANGED = function() | 305 Event.SUPER_TRACKED_QUEST_CHANGED = function() |
| 304 return OBJECTIVE_TRACKER_UPDATE_QUEST | 306 return OBJECTIVE_TRACKER_UPDATE_QUEST |
| 305 end | 307 end |
| 306 Event.ZONE_CHANGED = function() | 308 Event.ZONE_CHANGED = function() |
| 307 | |
| 308 local inMicroDungeon = IsPlayerInMicroDungeon(); | 309 local inMicroDungeon = IsPlayerInMicroDungeon(); |
| 309 if ( inMicroDungeon ~= T.inMicroDungeon ) then | 310 if ( inMicroDungeon ~= T.inMicroDungeon ) then |
| 310 if ( not WorldMapFrame:IsShown() and GetCVarBool("questPOI") ) then | 311 if ( not WorldMapFrame:IsShown() and GetCVarBool("questPOI") ) then |
| 311 SetMapToCurrentZone(); -- update the zone to get the right POI numbers for the tracker | 312 SetMapToCurrentZone(); -- update the zone to get the right POI numbers for the tracker |
| 312 end | 313 end |
| 313 --SortQuestWatches(); | 314 --SortQuestWatches(); |
| 314 T.inMicroDungeon = inMicroDungeon; | 315 T.inMicroDungeon = inMicroDungeon; |
| 315 end | 316 end |
| 317 return OBJECTIVE_TRACKER_UPDATE_MODULE_BONUS_OBJECTIVE + OBJECTIVE_TRACKER_UPDATE_MODULE_SCENARIO | |
| 316 end | 318 end |
| 317 Event.QUEST_AUTOCOMPLETE = function(questId) | 319 Event.QUEST_AUTOCOMPLETE = function(questId) |
| 318 AddAutoQuestPopUp(questId, "COMPLETE"); | 320 AddAutoQuestPopUp(questId, "COMPLETE"); |
| 319 return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST + OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP | 321 return OBJECTIVE_TRACKER_UPDATE_MODULE_QUEST + OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP |
| 320 end | 322 end |
| 532 | 534 |
| 533 T.Conf.TasksLog = T.Conf.TasksLog or {} | 535 T.Conf.TasksLog = T.Conf.TasksLog or {} |
| 534 | 536 |
| 535 ObjectiveTrackerFrame:UnregisterAllEvents() | 537 ObjectiveTrackerFrame:UnregisterAllEvents() |
| 536 ObjectiveTrackerFrame:Hide() | 538 ObjectiveTrackerFrame:Hide() |
| 537 | 539 _G.MinimapCluster:Hide() |
| 538 | 540 |
| 539 for id, name in ipairs(T.orderedNames) do | 541 for id, name in ipairs(T.orderedNames) do |
| 540 if not T.orderedHandlers[id] then | 542 if not T.orderedHandlers[id] then |
| 541 Handler_Initialize(T.DefaultHandler, name, id) | 543 Handler_Initialize(T.DefaultHandler, name, id) |
| 542 end | 544 end |
