Mercurial > wow > worldplan
comparison ClassPlanShipments.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 | 589c444d4837 |
| children | 4d1520186ea4 |
comparison
equal
deleted
inserted
replaced
| 94:dfd53f7c0fe5 | 95:b29b35cb8539 |
|---|---|
| 207 -- flip sort table and key, push a sort and refresh | 207 -- flip sort table and key, push a sort and refresh |
| 208 end | 208 end |
| 209 | 209 |
| 210 | 210 |
| 211 ShipmentList.SortHandler = function(a, b) | 211 ShipmentList.SortHandler = function(a, b) |
| 212 if a[SortKey] then | 212 local status = false |
| 213 if b[SortKey] then | 213 if b.isComplete ~= a.isComplete then |
| 214 return SortTable[a[SortKey]] < SortTable[b[SortKey]] | 214 if a.isComplete then |
| 215 else | 215 status = true |
| 216 return true | 216 end |
| 217 end | 217 else |
| 218 else | 218 if a[SortKey] then |
| 219 if b.isComplete ~= a.isComplete then | 219 if b[SortKey] then |
| 220 return a.isComplete and true or false | 220 status = (SortTable[a[SortKey]] < SortTable[b[SortKey]]) |
| 221 else | |
| 222 status = true | |
| 223 end | |
| 221 else | 224 else |
| 222 if a.profileKey ~= b.profileKey then | 225 if a.profileKey ~= b.profileKey then |
| 223 return a.profileKey < b.profileKey | 226 status = (a.profileKey < b.profileKey) |
| 227 | |
| 224 else | 228 else |
| 225 if a.shipmentsReady and b.shipmentsReady then | 229 if a.shipmentsReady and b.shipmentsReady then |
| 226 return (a.shipmentsReady) > (b.shipmentsReady) | 230 status = (a.shipmentsReady) > (b.shipmentsReady) |
| 227 elseif a.shipmentsReady or b.shipmentsReady then | 231 elseif a.shipmentsReady or b.shipmentsReady then |
| 228 return (a.shipmentsReady) or true or false | 232 status = (a.shipmentsReady) or true or false |
| 229 else | 233 else |
| 230 | 234 |
| 231 if (a.creationTime ~= b.creationTime) then | 235 if (a.creationTime ~= b.creationTime) then |
| 232 return (a.creationTime) < (b.creationTime) | 236 status = (a.creationTime) < (b.creationTime) |
| 233 else | 237 else |
| 234 return (a.name) < (b.name) | 238 status = (a.name) < (b.name) |
| 235 end | 239 end |
| 236 end | 240 end |
| 237 | 241 |
| 238 end | 242 end |
| 239 end | 243 end |
| 240 end | 244 end |
| 241 end | 245 return status |
| 242 | 246 end |
| 243 function ShipmentList:OnLoad() | 247 |
| 244 end | |
| 245 function ShipmentList:OnShow() | 248 function ShipmentList:OnShow() |
| 246 print('|cFF00FF88'..self:GetName()..':OnShow()|r') | 249 print('|cFF00FF88'..self:GetName()..':OnShow()|r') |
| 247 end | 250 end |
| 248 | 251 |
| 249 function ShipmentEntry:OnLoad() | 252 function ShipmentEntry:OnLoad() |
