Skip to content

Commit 7f533c9

Browse files
committed
Added a new Collections UI (open with /tum or the addon compartment) which displays all classes and supported seasons, and whether you know the transmog appearances
1 parent 159c8fb commit 7f533c9

File tree

7 files changed

+1911
-163
lines changed

7 files changed

+1911
-163
lines changed

TransmogUpgradeMaster.lua

Lines changed: 117 additions & 145 deletions
Large diffs are not rendered by default.

TransmogUpgradeMaster.toc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
## IconTexture: Interface\Addons\TransmogUpgradeMaster\media\icon
66
## Version: @project-version@
77
## SavedVariables: TransmogUpgradeMasterDB, TransmogUpgradeMasterCacheDB
8+
## OptionalDeps: Syndicator,BlizzMove
9+
10+
## AddonCompartmentFunc: TransmogUpgradeMaster_OnAddonCompartmentClick
11+
## AddonCompartmentFuncOnEnter: TransmogUpgradeMaster_OnAddonCompartmentEnter
12+
## AddonCompartmentFuncOnLeave: TransmogUpgradeMaster_OnAddonCompartmentLeave
13+
814
## X-Curse-Project-ID: 1265598
915
## X-Wago-ID: 4N2mjQGL
1016
## Category-enUS: Collections
@@ -25,3 +31,5 @@ TransmogUpgradeMaster.lua
2531

2632
api.lua
2733
settingsTemplates.xml
34+
35+
collectionUi.lua

api.lua

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,28 @@ end
3333
--- @return boolean? catalystAppearanceMissing # true if the item will teach a new appearance when catalysed
3434
--- @return boolean? catalystUpgradeAppearanceMissing # true if the item will teach a new appearance when catalysed AND upgraded to the next tier
3535
--- @return boolean? upgradeAppearanceMissing # true if the item will teach a new appearance when upgraded to the next tier
36-
--- @return boolean upgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
36+
--- @return boolean catalystAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3737
--- @return boolean catalystUpgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3838
--- @return boolean upgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3939
function api.IsAppearanceMissing(itemLink, classID)
40+
local result = TUM:IsAppearanceMissing(itemLink, classID)
41+
42+
return
43+
result.canCatalyse,
44+
result.canUpgrade,
45+
result.catalystAppearanceMissing,
46+
result.catalystUpgradeAppearanceMissing,
47+
result.upgradeAppearanceMissing,
48+
result.catalystAppearanceLearnedFromOtherItem,
49+
result.catalystUpgradeAppearanceLearnedFromOtherItem,
50+
result.upgradeAppearanceLearnedFromOtherItem
51+
end
52+
53+
--- Identical to IsAppearanceMissing, but returns a table instead
54+
--- @see api.IsAppearanceMissing
55+
--- @param itemLink string
56+
--- @param classID number? # defaults to the player's class
57+
--- @return TUM_AppearanceMissingResult result
58+
function api.GetAppearanceMissingData(itemLink, classID)
4059
return TUM:IsAppearanceMissing(itemLink, classID)
41-
end
60+
end

0 commit comments

Comments
 (0)