support quantity display for items
This commit is contained in:
+9
-6
@@ -1727,7 +1727,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss)
|
||||
end
|
||||
text = AtlasLoot_FixText(dataSource[dataID][i][3])
|
||||
end
|
||||
quantity:SetText("")
|
||||
quantity:SetText(dataSource[dataID][i][8])
|
||||
itemButton.dressingroomID = dataSource[dataID][i][1]
|
||||
elseif isEnchant then
|
||||
local spellID = tonumber(string.sub(dataSource[dataID][i][1], 2))
|
||||
@@ -1854,17 +1854,20 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss)
|
||||
_G["AtlasLootItem_"..i.."_PriceIcon"..j]:Hide()
|
||||
end
|
||||
local index = 1
|
||||
for j = 6, 14, 2 do
|
||||
local prices = dataSource[dataID][i][6]
|
||||
if type(prices) == "table" then
|
||||
for j = 1, getn(prices), 2 do
|
||||
local pricetext = _G["AtlasLootItem_"..i.."_PriceText"..index]
|
||||
local priceicon = _G["AtlasLootItem_"..i.."_PriceIcon"..index]
|
||||
if dataSource[dataID][i][j] and dataSource[dataID][i][j] ~= "" then
|
||||
pricetext:SetText(dataSource[dataID][i][j])
|
||||
priceicon:SetTexture(AtlasLoot_FixText(dataSource[dataID][i][j + 1]))
|
||||
if prices[j] and prices[j + 1] and prices[j] ~= "" and prices[j + 1] ~= "" then
|
||||
pricetext:SetText(prices[j])
|
||||
priceicon:SetTexture(AtlasLoot_FixText(prices[j + 1]))
|
||||
pricetext:Show()
|
||||
priceicon:Show()
|
||||
end
|
||||
index = index + 1
|
||||
end
|
||||
end
|
||||
if (dataID == "SearchResult" or dataID == "WishList") and dataSource[dataID][i][5] then
|
||||
local _, _, wishDataID, wishDataSource = strfind(dataSource[dataID][i][5], "(.+)|(.+)")
|
||||
if wishDataSource == "AtlasLootRepItems" then
|
||||
@@ -1906,7 +1909,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss)
|
||||
itemButton.itemID = dataSource[dataID][i][1]
|
||||
itemButton.itemIDName = dataSource[dataID][i][3]
|
||||
itemButton.itemIDExtra = dataSource[dataID][i][4]
|
||||
itemButton.container = dataSource[dataID][i][16]
|
||||
itemButton.container = dataSource[dataID][i][7]
|
||||
if type(itemButton.container) == "table" then
|
||||
iconBorder:SetVertexColor(1, 0.82, 0)
|
||||
for row = 1, getn(itemButton.container) do
|
||||
|
||||
+30
-30
@@ -205,9 +205,9 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 21187, "INV_Misc_Cape_07", "=q3=Earthweave Cloak", "=ds=#s4#", "", "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" },
|
||||
{ 21178, "INV_Gauntlets_18", "=q3=Gloves of Earthen Power", "=ds=#s9#, #a2#", "", "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" },
|
||||
{ 21179, "INV_Jewelry_Ring_18", "=q3=Band of Earthen Wrath", "=ds=#s13#", "", "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" },
|
||||
{ 21187, "INV_Misc_Cape_07", "=q3=Earthweave Cloak", "=ds=#s4#", "", { "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" } },
|
||||
{ 21178, "INV_Gauntlets_18", "=q3=Gloves of Earthen Power", "=ds=#s9#, #a2#", "", { "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" } },
|
||||
{ 21179, "INV_Jewelry_Ring_18", "=q3=Band of Earthen Wrath", "=ds=#s13#", "", { "", "", "5", "#ccombat#", "3", "#clogistics#", "7", "#ctactical#" } },
|
||||
},
|
||||
Cenarion2 = {
|
||||
{ 0, "", "", "" },
|
||||
@@ -226,9 +226,9 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 21183, "INV_Chest_Cloth_06", "=q3=Earthpower Vest", "=ds=#s5#, #a1#", "", "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" },
|
||||
{ 21182, "INV_Jewelry_Ring_19", "=q3=Band of Earthen Might", "=ds=#s13#", "", "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" },
|
||||
{ 21181, "INV_Misc_Herb_02", "=q3=Grace of Earth", "=ds=#s14#", "", "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" },
|
||||
{ 21183, "INV_Chest_Cloth_06", "=q3=Earthpower Vest", "=ds=#s5#, #a1#", "", { "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" } },
|
||||
{ 21182, "INV_Jewelry_Ring_19", "=q3=Band of Earthen Might", "=ds=#s13#", "", { "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" } },
|
||||
{ 21181, "INV_Misc_Herb_02", "=q3=Grace of Earth", "=ds=#s14#", "", { "", "", "7", "#ccombat#", "4", "#clogistics#", "4", "#ctactical#" } },
|
||||
},
|
||||
Cenarion3 = {
|
||||
{ 0, "", "", "" },
|
||||
@@ -247,10 +247,10 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 21186, "INV_Bracer_12", "=q4=Rockfury Bracers", "=ds=#s8#, #a1#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" },
|
||||
{ 21184, "INV_Bracer_07", "=q4=Deeprock Bracers", "=ds=#s8#, #a4#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" },
|
||||
{ 21189, "INV_Jewelry_Ring_41", "=q4=Might of Cenarius", "=ds=#s13#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" },
|
||||
{ 21185, "INV_Misc_Gem_Pearl_06", "=q4=Earthcalm Orb", "=ds=#s15#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" },
|
||||
{ 21186, "INV_Bracer_12", "=q4=Rockfury Bracers", "=ds=#s8#, #a1#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" } },
|
||||
{ 21184, "INV_Bracer_07", "=q4=Deeprock Bracers", "=ds=#s8#, #a4#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" } },
|
||||
{ 21189, "INV_Jewelry_Ring_41", "=q4=Might of Cenarius", "=ds=#s13#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" } },
|
||||
{ 21185, "INV_Misc_Gem_Pearl_06", "=q4=Earthcalm Orb", "=ds=#s15#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "17", "#ctactical#", "1", "#cremulos#" } },
|
||||
},
|
||||
Cenarion4 = {
|
||||
{ 0, "", "", "" },
|
||||
@@ -269,9 +269,9 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 21190, "INV_Jewelry_Ring_40", "=q4=Wrath of Cenarius", "=ds=#s13#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" },
|
||||
{ 21180, "Spell_Nature_AbolishMagic", "=q4=Earthstrike", "=ds=#s14#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" },
|
||||
{ 21188, "INV_Hammer_23", "=q4=Fist of Cenarius", "=ds=#h2#, #w6#", "", "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" },
|
||||
{ 21190, "INV_Jewelry_Ring_40", "=q4=Wrath of Cenarius", "=ds=#s13#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" } },
|
||||
{ 21180, "Spell_Nature_AbolishMagic", "=q4=Earthstrike", "=ds=#s14#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" } },
|
||||
{ 21188, "INV_Hammer_23", "=q4=Fist of Cenarius", "=ds=#h2#, #w6#", "", { "", "", "15", "#ccombat#", "20", "#clogistics#", "20", "#ctactical#", "1", "#ccenarius#" } },
|
||||
},
|
||||
Darkmoon = {
|
||||
{ 0, "", "", "" },
|
||||
@@ -279,15 +279,15 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 19289, "INV_Misc_Ticket_Tarot_Maelstrom_01", "=q4=Darkmoon Card: Maelstrom", "=ds=#s14#" },
|
||||
{ 19287, "INV_Misc_Ticket_Tarot_Heroism_01", "=q4=Darkmoon Card: Heroism", "=ds=#s14#" },
|
||||
{ 19290, "INV_Misc_Ticket_Tarot_TwistingNether_01", "=q4=Darkmoon Card: Twisting Nether", "=ds=#s14#" },
|
||||
{ 19491, "INV_Jewelry_Necklace_14", "=q4=Amulet of the Darkmoon", "=ds=#s2#", "", "1200", "#darkmoon#" },
|
||||
{ 19426, "INV_Jewelry_Necklace_16", "=q4=Orb of the Darkmoon", "=ds=#s2#", "", "1200", "#darkmoon#" },
|
||||
{ 19296, "INV_Misc_Bag_21", "=q2=Greater Darkmoon Prize", "", "", "40", "#darkmoon#" },
|
||||
{ 19297, "INV_Misc_Bag_07_Black", "=q2=Lesser Darkmoon Prize", "", "", "12", "#darkmoon#" },
|
||||
{ 19298, "INV_Misc_Bag_04", "=q2=Minor Darkmoon Prize", "", "", "5", "#darkmoon#" },
|
||||
{ 19291, "INV_Box_04", "=q1=Darkmoon Storage Box", "", "", "50", "#darkmoon#" },
|
||||
{ 19293, "INV_Misc_Food_18", "=q1=Last Year's Mutton", "", "", "50", "#darkmoon#" },
|
||||
{ 19292, "INV_Misc_Food_18", "=q1=Last Month's Mutton", "", "", "10", "#darkmoon#" },
|
||||
{ 19295, "INV_Misc_Herb_19", "=q1=Darkmoon Flower", "", "", "5", "#darkmoon#" },
|
||||
{ 19491, "INV_Jewelry_Necklace_14", "=q4=Amulet of the Darkmoon", "=ds=#s2#", "", { "1200", "#darkmoon#" } },
|
||||
{ 19426, "INV_Jewelry_Necklace_16", "=q4=Orb of the Darkmoon", "=ds=#s2#", "", { "1200", "#darkmoon#" } },
|
||||
{ 19296, "INV_Misc_Bag_21", "=q2=Greater Darkmoon Prize", "", "", { "40", "#darkmoon#" } },
|
||||
{ 19297, "INV_Misc_Bag_07_Black", "=q2=Lesser Darkmoon Prize", "", "", { "12", "#darkmoon#" } },
|
||||
{ 19298, "INV_Misc_Bag_04", "=q2=Minor Darkmoon Prize", "", "", { "5", "#darkmoon#" } },
|
||||
{ 19291, "INV_Box_04", "=q1=Darkmoon Storage Box", "", "", { "50", "#darkmoon#" } },
|
||||
{ 19293, "INV_Misc_Food_18", "=q1=Last Year's Mutton", "", "", { "50", "#darkmoon#" } },
|
||||
{ 19292, "INV_Misc_Food_18", "=q1=Last Month's Mutton", "", "", { "10", "#darkmoon#" } },
|
||||
{ 19295, "INV_Misc_Herb_19", "=q1=Darkmoon Flower", "", "", { "5", "#darkmoon#" } },
|
||||
},
|
||||
Zandalar1 = {
|
||||
{ 0, "", "", "" },
|
||||
@@ -316,14 +316,14 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 19780, "INV_Scroll_03", "=q1=Plans: Darksoul Leggings", "=ds=#p2# (300)" },
|
||||
{ 20014, "INV_Scroll_03", "=q1=Recipe: Major Troll's Blood Potion", "=ds=#p1# (290)" },
|
||||
{ 20756, "INV_Misc_Note_01", "=q1=Formula: Brilliant Wizard Oil", "=ds=#p4# (300)" },
|
||||
{ 20031, "INV_Misc_Food_42", "=q1=Essence Mango", "=ds=#e2#", "", "1", "#zandalar#" },
|
||||
{ 20031, "INV_Misc_Food_42", "=q1=Essence Mango", "=ds=#e2#", "", { "1", "#zandalar#" } },
|
||||
},
|
||||
Zandalar2 = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "INV_Misc_Coin_08", "=q6=#r4#", "" },
|
||||
{ 20080, "INV_Potion_29", "=q2=Sheen of Zanza", "=ds=#e1#", "", "3", "#zandalar#" },
|
||||
{ 20079, "INV_Potion_30", "=q2=Spirit of Zanza", "=ds=#e1#", "", "3", "#zandalar#" },
|
||||
{ 20081, "INV_Potion_31", "=q2=Swiftness of Zanza", "=ds=#e1#", "", "3", "#zandalar#" },
|
||||
{ 20080, "INV_Potion_29", "=q2=Sheen of Zanza", "=ds=#e1#", "", { "3", "#zandalar#" } },
|
||||
{ 20079, "INV_Potion_30", "=q2=Spirit of Zanza", "=ds=#e1#", "", { "3", "#zandalar#" } },
|
||||
{ 20081, "INV_Potion_31", "=q2=Swiftness of Zanza", "=ds=#e1#", "", { "3", "#zandalar#" } },
|
||||
{ 19764, "INV_Scroll_03", "=q1=Pattern: Bloodvine Vest", "=ds=#p8# (300)" },
|
||||
{ 19769, "INV_Scroll_03", "=q1=Pattern: Primal Batskin Jerkin", "=ds=#p7# (300)" },
|
||||
{ 19772, "INV_Scroll_03", "=q1=Pattern: Blood Tiger Breastplate", "=ds=#p7# (300)" },
|
||||
@@ -336,10 +336,10 @@ AtlasLoot_Data["AtlasLootRepItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "INV_Misc_Coin_08", "=q6=#r5#", "" },
|
||||
{ 20077, "INV_Misc_ArmorKit_08", "=q3=Zandalar Signet of Might", "=ds=#s3# #e11#", "", "", "", "", "", "15", "#zandalar#" },
|
||||
{ 20076, "INV_Jewelry_Ring_46", "=q3=Zandalar Signet of Mojo", "=ds=#s3# #e11#", "", "", "", "", "", "15", "#zandalar#" },
|
||||
{ 20078, "Spell_Holy_PowerWordShield", "=q3=Zandalar Signet of Serenity", "=ds=#s3# #e11#", "", "", "", "", "", "15", "#zandalar#" },
|
||||
{ 65033, "spell_holy_devotionaura", "=q3=Zandalar Signet of Tenacity", "=ds=#s3# #e11#", "", "", "", "", "", "15", "#zandalar#" },
|
||||
{ 20077, "INV_Misc_ArmorKit_08", "=q3=Zandalar Signet of Might", "=ds=#s3# #e11#", "", { "", "", "", "", "15", "#zandalar#" } },
|
||||
{ 20076, "INV_Jewelry_Ring_46", "=q3=Zandalar Signet of Mojo", "=ds=#s3# #e11#", "", { "", "", "", "", "15", "#zandalar#" } },
|
||||
{ 20078, "Spell_Holy_PowerWordShield", "=q3=Zandalar Signet of Serenity", "=ds=#s3# #e11#", "", { "", "", "", "", "15", "#zandalar#" } },
|
||||
{ 65033, "spell_holy_devotionaura", "=q3=Zandalar Signet of Tenacity", "=ds=#s3# #e11#", "", { "", "", "", "", "15", "#zandalar#" } },
|
||||
{ 20013, "INV_Scroll_03", "=q1=Recipe: Living Action Potion", "=ds=#p1# (285)" },
|
||||
},
|
||||
Wintersaber1 = {
|
||||
|
||||
+324
-324
File diff suppressed because it is too large
Load Diff
+14
-14
@@ -188,20 +188,20 @@ AtlasLoot_Data["AtlasLootWBItems"] = {
|
||||
{ 0, "", "", "" },
|
||||
{ 0, "", "", "" },
|
||||
{ 83236, "inv_misc_bag_corefelclothbag", "=q4=Void-Linked Satchel of Goods", "=ds=#m23#", "100%" },
|
||||
{ 7076, "spell_nature_strengthofearthtotem02", "=q2=Essence of Earth", "Group 1", "[1-2] 25%" },
|
||||
{ 7078, "spell_fire_volcano", "=q2=Essence of Fire", "Group 1", "[1-2] 25%" },
|
||||
{ 7080, "spell_nature_acid_01", "=q2=Essence of Water", "Group 1", "[1-2] 25%" },
|
||||
{ 7082, "spell_nature_earthbind", "=q2=Essence of Air", "Group 1", "[1-2] 25%" },
|
||||
{ 7971, "inv_misc_gem_pearl_01", "=q2=Black Pearl", "Group 2", "[2-3] 20%" },
|
||||
{ 12361, "inv_misc_gem_sapphire_02", "=q2=Blue Sapphire", "Group 2", "[1-2] 20%" },
|
||||
{ 12363, "inv_misc_gem_topaz_01", "=q2=Arcane Crystal", "Group 2", "[1-2] 20%" },
|
||||
{ 12364, "inv_misc_gem_emerald_01", "=q2=Huge Emerald", "Group 2", "[1-2] 20%" },
|
||||
{ 12800, "inv_misc_gem_diamond_01", "=q2=Azerothian Diamond", "Group 2", "[1-3] 20%" },
|
||||
{ 11370, "inv_ore_mithril_01", "=q1=Dark Iron Ore", "Group 3", "[3-6] 20%" },
|
||||
{ 13468, "inv_misc_herb_blacklotus", "=q2=Black Lotus", "Group 3", "[1-3] 20%" },
|
||||
{ 14256, "inv_fabric_felrag", "=q1=Felcloth", "Group 3", "[2-4] 20%" },
|
||||
{ 15416, "inv_misc_monsterscales_07", "=q1=Black Dragonscale", "Group 3", "[2-5] 20%" },
|
||||
{ 20520, "spell_shadow_sealofkings", "=q2=Dark Rune", "Group 3", "[2-4] 20%" },
|
||||
{ 7076, "spell_nature_strengthofearthtotem02", "=q2=Essence of Earth", "", "25%", nil, nil, "1-2" },
|
||||
{ 7078, "spell_fire_volcano", "=q2=Essence of Fire", "", "25%", nil, nil, "1-2" },
|
||||
{ 7080, "spell_nature_acid_01", "=q2=Essence of Water", "", "25%", nil, nil, "1-2" },
|
||||
{ 7082, "spell_nature_earthbind", "=q2=Essence of Air", "", "25%", nil, nil, "1-2" },
|
||||
{ 7971, "inv_misc_gem_pearl_01", "=q2=Black Pearl", "", "20%", nil, nil, "2-3" },
|
||||
{ 12361, "inv_misc_gem_sapphire_02", "=q2=Blue Sapphire", "", "20%", nil, nil, "1-2" },
|
||||
{ 12363, "inv_misc_gem_topaz_01", "=q2=Arcane Crystal", "", "20%", nil, nil, "1-2" },
|
||||
{ 12364, "inv_misc_gem_emerald_01", "=q2=Huge Emerald", "", "20%", nil, nil, "1-2" },
|
||||
{ 12800, "inv_misc_gem_diamond_01", "=q2=Azerothian Diamond", "", "20%", nil, nil, "1-3" },
|
||||
{ 11370, "inv_ore_mithril_01", "=q1=Dark Iron Ore", "", "20%", nil, nil, "3-6" },
|
||||
{ 13468, "inv_misc_herb_blacklotus", "=q2=Black Lotus", "", "20%", nil, nil, "1-3" },
|
||||
{ 14256, "inv_fabric_felrag", "=q1=Felcloth", "", "20%", nil, nil, "2-4" },
|
||||
{ 15416, "inv_misc_monsterscales_07", "=q1=Black Dragonscale", "", "20%", nil, nil, "2-5" },
|
||||
{ 20520, "spell_shadow_sealofkings", "=q2=Dark Rune", "", "20%", nil, nil, "2-4" },
|
||||
},
|
||||
CowKing = {
|
||||
{ 60486, "inv_misc_fish_02", "=q4=Fishbringer", "#h3#, #w6#", "25%" },
|
||||
|
||||
Reference in New Issue
Block a user