Mercurial > wow > worldplan
comparison WorldPlan.lua @ 95:b29b35cb8539
- Fixed quest completion checking and handling
- Changed animation method to hopefully stop weird flickering.
- Pins are now visible before full reward data is loaded
- Filter bar redesigned:
- aligned horizontally along the top of the map display
- filter buttons display a '+' when there are matches in both current and other zones, and '*' when there only matches in other zones
- button tooltips separate local and global quests
- button categories are highlighted and labeled when the cursor is over them
- Fixed invalid POI targets appearing when the spell targeting cursor is active
- ClassOrderPlan can be closed with the game menu button
| author | Nenue |
|---|---|
| date | Mon, 08 May 2017 22:38:52 -0400 |
| parents | 98b5e08b75ed |
| children | fbd4ead2a19f |
comparison
equal
deleted
inserted
replaced
| 94:dfd53f7c0fe5 | 95:b29b35cb8539 |
|---|---|
| 599 end | 599 end |
| 600 | 600 |
| 601 return info, info[subType] or db.DefaultType[subType] | 601 return info, info[subType] or db.DefaultType[subType] |
| 602 end | 602 end |
| 603 | 603 |
| 604 do | |
| 605 local timeStates = { | |
| 606 {maxSeconds = 60, | |
| 607 r=1, g=0.25, b =0, format = function (minutes) return '|cFFFF4400'.. minutes .. 'm' end, | |
| 608 }, | |
| 609 {maxSeconds = 240, | |
| 610 r=1, g=.5, b=0, format = function(minutes) return '|cFFFF4400'.. floor(minutes/60) .. 'h' end, | |
| 611 }, | |
| 612 {maxSeconds = 1440, | |
| 613 r=1, g=1, b=0, format = function(minutes) return '|cFFFFFF00'.. floor(minutes/60) .. 'h' end, | |
| 614 }, | |
| 615 {maxSeconds = 10081, | |
| 616 r=0, g=1, b=0, | |
| 617 }, -- 7 days + 1 minute | |
| 618 } | |
| 619 -- Generates a timeleft string | |
| 620 function WorldPlanCore:GetTimeInfo(timeLeft, limit) | |
| 621 for index = 1, limit do | |
| 622 local state = timeStates[index] | |
| 623 if timeLeft <= state.maxSeconds then | |
| 624 local text | |
| 625 if state.format then | |
| 626 text = state.format(timeLeft) | |
| 627 end | |
| 628 return text, index | |
| 629 end | |
| 630 end | |
| 631 return nil, nil | |
| 632 end | |
| 633 end | |
| 634 | 604 |
| 635 function WorldPlanCore:Refresh (forced) | 605 function WorldPlanCore:Refresh (forced) |
| 636 print('|cFFFFFF00'..self:GetName()..':Refresh()|r forced:', forced, 'init:', self.initialized) | 606 print('|cFFFFFF00'..self:GetName()..':Refresh()|r forced:', forced, 'init:', self.initialized) |
| 637 if not self.initialized then | 607 if not self.initialized then |
| 638 return | 608 return |
