to many to note

This commit is contained in:
Anch
2022-07-28 02:29:35 +12:00
parent ae22837eee
commit 588ea67bdd
25 changed files with 19083 additions and 17858 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ TableRegister\TableRegister.xml
AtlasLayout\AtlasLayout.xml
Add_Ons\Addons.xml
Core\AtlasLoot.xml
DefaultFrame\AtlaslootDefaultFrame.xml
Menus\Menus.xml
DefaultFrame\AtlaslootDefaultFrame.lua
DefaultFrame\AtlaslootDefaultFrameCreate.lua
modules.xml
+61 -230
View File
@@ -3,264 +3,95 @@ local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
AtlasLoot_Difficulty = {
-- table of difficulties and there itemID references
["ClassicDungeon"] = {
[1] = {
{"Normal", "", [4] = "Submenu"},
},
[2] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Normal", 2,},
{"Bloodforged", 1,},
};
["PVP"] = {
[1] = {
{"Normal", "", [4] = "Submenu"},
},
[2] = {
{"Bloodforged", "Bloodforged", [4] = "Submenu"},
},
{"Normal", 2},
{"Bloodforged", 1},
};
["ClassicDungeonExt"] = {
[1] = {
{"Normal", "", [4] = "Submenu"},
},
[2] = {
{"Heroic", 3, "=q4=", [4] = "Submenu"},
},
[3] = {
{"Mythic", 4, "=q4=", [4] = "Submenu"},
},
[4] = {
["Mythic+ 1-10"] = {
{"Mythic 1", 5, "=q4=", [4] = "Submenu" }, {"Mythic 2", 6, "=q4=", [4] = "Submenu" }, {"Mythic 3", 7, "=q4=", [4] = "Submenu" }, {"Mythic 4", 8, "=q4=", [4] = "Submenu" }, {"Mythic 5", 9, "=q4=", [4] = "Submenu" },
{"Mythic 6", 10, "=q4=", [4] = "Submenu" }, {"Mythic 7", 11, "=q4=", [4] = "Submenu" }, {"Mythic 8", 12, "=q4=", [4] = "Submenu" }, {"Mythic 9", 13, "=q4=", [4] = "Submenu" }, {"Mythic 10", 14, "=q4=", [4] = "Submenu" },
},
},
[5] = {
["Mythic+ 11-20"] = {
{"Mythic 11", 15, "=q4=", [4] = "Submenu" }, {"Mythic 12", 16, "=q4=", [4] = "Submenu" }, {"Mythic 13", 17, "=q4=", [4] = "Submenu" }, {"Mythic 14", 18, "=q4=", [4] = "Submenu" }, {"Mythic 15", 19, "=q4=", [4] = "Submenu" },
{"Mythic 16", 20, "=q4=", [4] = "Submenu" }, {"Mythic 17", 21, "=q4=", [4] = "Submenu" }, {"Mythic 18", 22, "=q4=", [4] = "Submenu" }, {"Mythic 19", 23, "=q4=", [4] = "Submenu" }, {"Mythic 20", 24, "=q4=", [4] = "Submenu" },
},
},
[6] = {
["Mythic+ 21-30"] = {
{"Mythic 21", 25, "=q4=", [4] = "Submenu" }, {"Mythic 22", 26, "=q4=", [4] = "Submenu" }, {"Mythic 23", 27, "=q4=", [4] = "Submenu" }, {"Mythic 24", 28, "=q4=", [4] = "Submenu" }, {"Mythic 25", 29, "=q4=", [4] = "Submenu" },
{"Mythic 26", 30, "=q4=", [4] = "Submenu" }, {"Mythic 27", 31, "=q4=", [4] = "Submenu" }, {"Mythic 28", 32, "=q4=", [4] = "Submenu" }, {"Mythic 29", 33, "=q4=", [4] = "Submenu" }, {"Mythic 30", 34, "=q4=", [4] = "Submenu" },
},
},
[7] = {
["Mythic+ 31-40"] = {
{"Mythic 31", 35, "=q4=", [4] = "Submenu" }, {"Mythic 32", 36, "=q4=", [4] = "Submenu" }, {"Mythic 33", 37, "=q4=", [4] = "Submenu" }, {"Mythic 34", 38, "=q4=", [4] = "Submenu" }, {"Mythic 35", 39, "=q4=", [4] = "Submenu" },
{"Mythic 36", 40, "=q4=", [4] = "Submenu" }, {"Mythic 37", 41, "=q4=", [4] = "Submenu" }, {"Mythic 38", 42, "=q4=", [4] = "Submenu" }, {"Mythic 39", 43, "=q4=", [4] = "Submenu" }, {"Mythic 40", 44, "=q4=", [4] = "Submenu" },
},
},
[8] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Bloodforged", 1},
{"Normal", 2},
{"Heroic", 3, "=q4="},
{"Mythic", 4, "=q4="},
{"Mythic 1", 5, "=q4=" }, {"Mythic 2", 6, "=q4=" }, {"Mythic 3", 7, "=q4=" }, {"Mythic 4", 8, "=q4=" }, {"Mythic 5", 9, "=q4=" },
{"Mythic 6", 10, "=q4=" }, {"Mythic 7", 11, "=q4=" }, {"Mythic 8", 12, "=q4=" }, {"Mythic 9", 13, "=q4=" }, {"Mythic 10", 14, "=q4=" },
{"Mythic 11", 15, "=q4=" }, {"Mythic 12", 16, "=q4=" }, {"Mythic 13", 17, "=q4=" }, {"Mythic 14", 18, "=q4=" }, {"Mythic 15", 19, "=q4=" },
{"Mythic 16", 20, "=q4=" }, {"Mythic 17", 21, "=q4=" }, {"Mythic 18", 22, "=q4=" }, {"Mythic 19", 23, "=q4=" }, {"Mythic 20", 24, "=q4=" },
{"Mythic 21", 25, "=q4=" }, {"Mythic 22", 26, "=q4=" }, {"Mythic 23", 27, "=q4=" }, {"Mythic 24", 28, "=q4=" }, {"Mythic 25", 29, "=q4=" },
{"Mythic 26", 30, "=q4=" }, {"Mythic 27", 31, "=q4=" }, {"Mythic 28", 32, "=q4=" }, {"Mythic 29", 33, "=q4=" }, {"Mythic 30", 34, "=q4=" },
{"Mythic 31", 35, "=q4=" }, {"Mythic 32", 36, "=q4=" }, {"Mythic 33", 37, "=q4=" }, {"Mythic 34", 38, "=q4=" }, {"Mythic 35", 39, "=q4=" },
{"Mythic 36", 40, "=q4=" }, {"Mythic 37", 41, "=q4=" }, {"Mythic 38", 42, "=q4=" }, {"Mythic 39", 43, "=q4=" }, {"Mythic 40", 44, "=q4=" },
};
["ClassicRaid"] = {
[1] = {
{"Normal Flex", "", [4] = "Submenu"},
},
[2] = {
{"Heroic Flex", 3, [4] = "Submenu"},
},
[3] = {
{"Ascended", 4, [4] = "Submenu"},
},
[4] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Normal Flex", 2},
{"Heroic Flex", 3},
{"Ascended", 4},
{"Bloodforged", 1},
};
["BCDungeon"] = {
[1] = {
{"Normal/Heroic", "", [4] = "Submenu"},
},
[2] = {
{"Mythic", 4, "=q4=", [4] = "Submenu"},
},
[3] = {
["Mythic+ 1-10"] = {
{"Mythic 1", 5, "=q4=", [4] = "Submenu" }, {"Mythic 2", 6, "=q4=", [4] = "Submenu" }, {"Mythic 3", 7, "=q4=", [4] = "Submenu" }, {"Mythic 4", 8, "=q4=", [4] = "Submenu" }, {"Mythic 5", 9, "=q4=", [4] = "Submenu" },
{"Mythic 6", 10, "=q4=", [4] = "Submenu" }, {"Mythic 7", 11, "=q4=", [4] = "Submenu" }, {"Mythic 8", 12, "=q4=", [4] = "Submenu" }, {"Mythic 9", 13, "=q4=", [4] = "Submenu" }, {"Mythic 10", 14, "=q4=", [4] = "Submenu" },
},
},
[4] = {
["Mythic+ 11-20"] = {
{"Mythic 11", 15, "=q4=", [4] = "Submenu" }, {"Mythic 12", 16, "=q4=", [4] = "Submenu" }, {"Mythic 13", 17, "=q4=", [4] = "Submenu" }, {"Mythic 14", 18, "=q4=", [4] = "Submenu" }, {"Mythic 15", 19, "=q4=", [4] = "Submenu" },
{"Mythic 16", 20, "=q4=", [4] = "Submenu" }, {"Mythic 17", 21, "=q4=", [4] = "Submenu" }, {"Mythic 18", 22, "=q4=", [4] = "Submenu" }, {"Mythic 19", 23, "=q4=", [4] = "Submenu" }, {"Mythic 20", 24, "=q4=", [4] = "Submenu" },
},
},
--[[5] = {
["Mythic+ 21-30"] = {
{"Mythic 21", 25, "=q4=", [4] = "Submenu" }, {"Mythic 22", 26, "=q4=", [4] = "Submenu" }, {"Mythic 23", 27, "=q4=", [4] = "Submenu" }, {"Mythic 24", 28, "=q4=", [4] = "Submenu" }, {"Mythic 25", 29, "=q4=", [4] = "Submenu" },
{"Mythic 26", 30, "=q4=", [4] = "Submenu" }, {"Mythic 27", 31, "=q4=", [4] = "Submenu" }, {"Mythic 28", 32, "=q4=", [4] = "Submenu" }, {"Mythic 29", 33, "=q4=", [4] = "Submenu" }, {"Mythic 30", 34, "=q4=", [4] = "Submenu" },
},
},
[6] = {
["Mythic+ 31-40"] = {
{"Mythic 31", 35, "=q4=", [4] = "Submenu" }, {"Mythic 32", 36, "=q4=", [4] = "Submenu" }, {"Mythic 33", 37, "=q4=", [4] = "Submenu" }, {"Mythic 34", 38, "=q4=", [4] = "Submenu" }, {"Mythic 35", 39, "=q4=", [4] = "Submenu" },
{"Mythic 36", 40, "=q4=", [4] = "Submenu" }, {"Mythic 37", 41, "=q4=", [4] = "Submenu" }, {"Mythic 38", 42, "=q4=", [4] = "Submenu" }, {"Mythic 39", 43, "=q4=", [4] = "Submenu" }, {"Mythic 40", 44, "=q4=", [4] = "Submenu" },
},
},]]
[5] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Bloodforged", 1},
{"Normal/Heroic", 2},
{"Mythic", 4, "=q4="},
{"Mythic 1", 5, "=q4=" }, {"Mythic 2", 6, "=q4=" }, {"Mythic 3", 7, "=q4=" }, {"Mythic 4", 8, "=q4=" }, {"Mythic 5", 9, "=q4=" },
{"Mythic 6", 10, "=q4=" }, {"Mythic 7", 11, "=q4=" }, {"Mythic 8", 12, "=q4=" }, {"Mythic 9", 13, "=q4=" }, {"Mythic 10", 14, "=q4=" },
{"Mythic 11", 15, "=q4=" }, {"Mythic 12", 16, "=q4=" }, {"Mythic 13", 17, "=q4=" }, {"Mythic 14", 18, "=q4=" }, {"Mythic 15", 19, "=q4=" },
{"Mythic 16", 20, "=q4=" }, {"Mythic 17", 21, "=q4=" }, {"Mythic 18", 22, "=q4=" }, {"Mythic 19", 23, "=q4=" }, {"Mythic 20", 24, "=q4=" },
{"Mythic 21", 25, "=q4=" }, {"Mythic 22", 26, "=q4=" }, {"Mythic 23", 27, "=q4=" }, {"Mythic 24", 28, "=q4=" }, {"Mythic 25", 29, "=q4=" },
{"Mythic 26", 30, "=q4=" }, {"Mythic 27", 31, "=q4=" }, {"Mythic 28", 32, "=q4=" }, {"Mythic 29", 33, "=q4=" }, {"Mythic 30", 34, "=q4=" },
{"Mythic 31", 35, "=q4=" }, {"Mythic 32", 36, "=q4=" }, {"Mythic 33", 37, "=q4=" }, {"Mythic 34", 38, "=q4=" }, {"Mythic 35", 39, "=q4=" },
{"Mythic 36", 40, "=q4=" }, {"Mythic 37", 41, "=q4=" }, {"Mythic 38", 42, "=q4=" }, {"Mythic 39", 43, "=q4=" }, {"Mythic 40", 44, "=q4=" },
};
["D3Set"] = {
[1] = {
{"Normal/Heroic", 2, [4] = "Submenu"},
},
[2] = {
{"Mythic", 4, "=q4=", [4] = "Submenu"},
},
[3] = {
["Mythic+ 1-10"] = {
{"Mythic 1", 5, "=q4=", [4] = "Submenu" }, {"Mythic 2", 6, "=q4=", [4] = "Submenu" }, {"Mythic 3", 7, "=q4=", [4] = "Submenu" }, {"Mythic 4", 8, "=q4=", [4] = "Submenu" }, {"Mythic 5", 9, "=q4=", [4] = "Submenu" },
{"Mythic 6", 10, "=q4=", [4] = "Submenu" }, {"Mythic 7", 11, "=q4=", [4] = "Submenu" }, {"Mythic 8", 12, "=q4=", [4] = "Submenu" }, {"Mythic 9", 13, "=q4=", [4] = "Submenu" }, {"Mythic 10", 14, "=q4=", [4] = "Submenu" },
},
},
[4] = {
["Mythic+ 11-20"] = {
{"Mythic 11", 15, "=q4=", [4] = "Submenu" }, {"Mythic 12", 16, "=q4=", [4] = "Submenu" }, {"Mythic 13", 17, "=q4=", [4] = "Submenu" }, {"Mythic 14", 18, "=q4=", [4] = "Submenu" }, {"Mythic 15", 19, "=q4=", [4] = "Submenu" },
{"Mythic 16", 20, "=q4=", [4] = "Submenu" }, {"Mythic 17", 21, "=q4=", [4] = "Submenu" }, {"Mythic 18", 22, "=q4=", [4] = "Submenu" }, {"Mythic 19", 23, "=q4=", [4] = "Submenu" }, {"Mythic 20", 24, "=q4=", [4] = "Submenu" },
},
},
--[[5] = {
["Mythic+ 21-30"] = {
{"Mythic 21", 25, "=q4=", [4] = "Submenu" }, {"Mythic 22", 26, "=q4=", [4] = "Submenu" }, {"Mythic 23", 27, "=q4=", [4] = "Submenu" }, {"Mythic 24", 28, "=q4=", [4] = "Submenu" }, {"Mythic 25", 29, "=q4=", [4] = "Submenu" },
{"Mythic 26", 30, "=q4=", [4] = "Submenu" }, {"Mythic 27", 31, "=q4=", [4] = "Submenu" }, {"Mythic 28", 32, "=q4=", [4] = "Submenu" }, {"Mythic 29", 33, "=q4=", [4] = "Submenu" }, {"Mythic 30", 34, "=q4=", [4] = "Submenu" },
},
},
[6] = {
["Mythic+ 31-40"] = {
{"Mythic 31", 35, "=q4=", [4] = "Submenu" }, {"Mythic 32", 36, "=q4=", [4] = "Submenu" }, {"Mythic 33", 37, "=q4=", [4] = "Submenu" }, {"Mythic 34", 38, "=q4=", [4] = "Submenu" }, {"Mythic 35", 39, "=q4=", [4] = "Submenu" },
{"Mythic 36", 40, "=q4=", [4] = "Submenu" }, {"Mythic 37", 41, "=q4=", [4] = "Submenu" }, {"Mythic 38", 42, "=q4=", [4] = "Submenu" }, {"Mythic 39", 43, "=q4=", [4] = "Submenu" }, {"Mythic 40", 44, "=q4=", [4] = "Submenu" },
},
},]]
[5] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Bloodforged", 1},
{"Normal/Heroic", 2},
{"Mythic", 4, "=q4="},
{"Mythic 1", 5, "=q4=" }, {"Mythic 2", 6, "=q4=" }, {"Mythic 3", 7, "=q4=" }, {"Mythic 4", 8, "=q4=" }, {"Mythic 5", 9, "=q4=" },
{"Mythic 6", 10, "=q4=" }, {"Mythic 7", 11, "=q4=" }, {"Mythic 8", 12, "=q4=" }, {"Mythic 9", 13, "=q4=" }, {"Mythic 10", 14, "=q4=" },
{"Mythic 11", 15, "=q4=" }, {"Mythic 12", 16, "=q4=" }, {"Mythic 13", 17, "=q4=" }, {"Mythic 14", 18, "=q4=" }, {"Mythic 15", 19, "=q4=" },
{"Mythic 16", 20, "=q4=" }, {"Mythic 17", 21, "=q4=" }, {"Mythic 18", 22, "=q4=" }, {"Mythic 19", 23, "=q4=" }, {"Mythic 20", 24, "=q4=" },
{"Mythic 21", 25, "=q4=" }, {"Mythic 22", 26, "=q4=" }, {"Mythic 23", 27, "=q4=" }, {"Mythic 24", 28, "=q4=" }, {"Mythic 25", 29, "=q4=" },
{"Mythic 26", 30, "=q4=" }, {"Mythic 27", 31, "=q4=" }, {"Mythic 28", 32, "=q4=" }, {"Mythic 29", 33, "=q4=" }, {"Mythic 30", 34, "=q4=" },
{"Mythic 31", 35, "=q4=" }, {"Mythic 32", 36, "=q4=" }, {"Mythic 33", 37, "=q4=" }, {"Mythic 34", 38, "=q4=" }, {"Mythic 35", 39, "=q4=" },
{"Mythic 36", 40, "=q4=" }, {"Mythic 37", 41, "=q4=" }, {"Mythic 38", 42, "=q4=" }, {"Mythic 39", 43, "=q4=" }, {"Mythic 40", 44, "=q4=" },
};
["BCRaid"] = {
[1] = {
{"Normal Flex", "", [4] = "Submenu"},
},
[2] = {
{"Heroic Flex", 3, [4] = "Submenu"},
},
[3] = {
{"Ascended", 4, [4] = "Submenu"},
},
[4] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Normal Flex", 2},
{"Heroic Flex", 3},
{"Ascended", 4},
{"Bloodforged", 1},
};
["WrathDungeon"] = {
[1] = {
{"Normal/Heroic", "", [4] = "Submenu"},
},
[2] = {
{"Mythic", 4, "=q4=", [4] = "Submenu"},
},
[3] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
--[[
[3] = {
["Mythic+ 1-10"] = {
{"Mythic 1", 5, "=q4=", [4] = "Submenu" }, {"Mythic 2", 6, "=q4=", [4] = "Submenu" }, {"Mythic 3", 7, "=q4=", [4] = "Submenu" }, {"Mythic 4", 8, "=q4=", [4] = "Submenu" }, {"Mythic 5", 9, "=q4=", [4] = "Submenu" },
{"Mythic 6", 10, "=q4=", [4] = "Submenu" }, {"Mythic 7", 11, "=q4=", [4] = "Submenu" }, {"Mythic 8", 12, "=q4=", [4] = "Submenu" }, {"Mythic 9", 13, "=q4=", [4] = "Submenu" }, {"Mythic 10", 14, "=q4=", [4] = "Submenu" },
},
},
[4] = {
["Mythic+ 11-20"] = {
{"Mythic 11", 15, "=q4=", [4] = "Submenu" }, {"Mythic 12", 16, "=q4=", [4] = "Submenu" }, {"Mythic 13", 17, "=q4=", [4] = "Submenu" }, {"Mythic 14", 18, "=q4=", [4] = "Submenu" }, {"Mythic 15", 19, "=q4=", [4] = "Submenu" },
{"Mythic 16", 20, "=q4=", [4] = "Submenu" }, {"Mythic 17", 21, "=q4=", [4] = "Submenu" }, {"Mythic 18", 22, "=q4=", [4] = "Submenu" }, {"Mythic 19", 23, "=q4=", [4] = "Submenu" }, {"Mythic 20", 24, "=q4=", [4] = "Submenu" },
},
},
]]
{"Normal/Heroic", 2},
{"Mythic", 4, "=q4="},
{"Bloodforged", 1},
{"Mythic 1", 5, "=q4=" }, {"Mythic 2", 6, "=q4=" }, {"Mythic 3", 7, "=q4=" }, {"Mythic 4", 8, "=q4=" }, {"Mythic 5", 9, "=q4=" },
{"Mythic 6", 10, "=q4=" }, {"Mythic 7", 11, "=q4=" }, {"Mythic 8", 12, "=q4=" }, {"Mythic 9", 13, "=q4=" }, {"Mythic 10", 14, "=q4=" },
{"Mythic 11", 15, "=q4=" }, {"Mythic 12", 16, "=q4=" }, {"Mythic 13", 17, "=q4=" }, {"Mythic 14", 18, "=q4=" }, {"Mythic 15", 19, "=q4=" },
{"Mythic 16", 20, "=q4=" }, {"Mythic 17", 21, "=q4=" }, {"Mythic 18", 22, "=q4=" }, {"Mythic 19", 23, "=q4=" }, {"Mythic 20", 24, "=q4=" },
};
["WrathRaid"] = {
[1] = {
{"Normal Flex", "", [4] = "Submenu"},
},
[2] = {
{"Heroic Flex", 3, [4] = "Submenu"},
},
[3] = {
{"Ascended", 4, [4] = "Submenu"},
},
[4] = {
{"Bloodforged", 1, [4] = "Submenu"},
},
{"Normal Flex", 2},
{"Heroic Flex", 3},
{"Ascended", 4},
{"Bloodforged", 1},
};
["Crafting"] = {
[1] = {
{"Crafting Patterns", "", [4] = "Submenu" },
},
[2] = {
{"Item Normal", "=s=Normal", [4] = "Submenu" },
},
[3] = {
{"Bloodforged", 1, [4] = "Submenu" },
},
{"Crafting Patterns", "" },
{"Item Normal", "=s=Normal" },
{"Bloodforged", 1 },
};
["CraftingExt"] = {
[1] = {
{"Crafting Pattern Uncommon", "", [4] = "Submenu" },
},
[2] = {
{"Crafting Patterns Rare", "Rare", [4] = "Submenu" },
},
[3] = {
{"Crafting Patterns Epic", "Epic", [4] = "Submenu" },
},
[4] = {
{"Item Uncommon", "=s=", [4] = "Submenu" },
},
[5] = {
{"Item Rare", "=s=Rare", [4] = "Submenu" },
},
[6] = {
{"Item Epic", "=s=Epic", [4] = "Submenu" }
},
};
["CraftingExtTBC"] = {
[1] = {
{"Crafting Patterns Rare", "", [4] = "Submenu" },
},
[2] = {
{"Crafting Patterns Epic", "Epic", [4] = "Submenu" },
},
[3] = {
{"Item Rare", "=s=", [4] = "Submenu" },
},
[4] = {
{"Item Epic", "=s=Epic", [4] = "Submenu" }
},
};
["Expansion"] = {
[1] = {
{"Classic", "=ex=CLASSIC", [4] = "Submenu"}
},
[2] = {
{"Burning Crusade", "=ex=TBC", [4] = "Submenu"}
},
[3] ={
{"Wrath of the Lich King", "=ex=WRATH", [4] = "Submenu"}
}
},
["Search"] = {"Bloodforged", "Normal", "Heroic", "Mythic",
"Mythic 1", "Mythic 2","Mythic 3","Mythic 4","Mythic 5", "Mythic 6","Mythic 7", "Mythic 8","Mythic 9", "Mythic 10",
"Mythic 11", "Mythic 12","Mythic 13","Mythic 14","Mythic 15", "Mythic 16","Mythic 17","Mythic 18", "Mythic 19", "Mythic 20",
+118 -388
View File
@@ -14,7 +14,6 @@ AtlasLoot_OnLoad()
AtlasLootBoss_OnClick()
AtlasLoot_ShowItemsFrame()
AtlasLoot_GenerateAtlasMenu(dataID, pFrame)
AtlasLoot_SetupForAtlas()
AtlasLootOptions_ItemAutoQuery()
AtlasLoot_SetItemInfoFrame()
AtlasLootItemsFrame_OnCloseButton()
@@ -46,7 +45,6 @@ ATLASLOOT_PREVIEW_ATLAS = {"1.17.3", "1.17.2"};
ATLASLOOT_POSITION = AL["Position:"];
ATLASLOOT_DEBUGMESSAGES = false;
ATLASLOOT_FILTER_ENABLE = false;
--Standard indent to line text up with Atlas text
ATLASLOOT_INDENT = " ";
@@ -54,10 +52,11 @@ ATLASLOOT_INDENT = " ";
--Make the Dewdrop menu in the standalone loot browser accessible here
AtlasLoot_Dewdrop = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu2 = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropExpansionMenu = AceLibrary("Dewdrop-2.0");
AtlasLoot_DifficultyAtlas = AceLibrary("Dewdrop-2.0");
--Variable to cap debug spam
ATLASLOOT_DEBUGSHOWN = false;
ATLASLOOT_FILTER_ENABLE = false;
-- Colours stored for code readability
local GREY = "|cff999999";
@@ -214,7 +213,10 @@ function AtlasLoot_OnVariablesLoaded()
AtlasLoot_TableNames["AtlasLootFallback"] = { "AtlasLoot", "AtlasLootFallback" };
end
if AtlasLoot_Data then
AtlasLoot_Data["EmptyTable"] = {};
AtlasLoot_Data["EmptyTable"] = {
Name = AL["Select a Loot Table..."];
{Name = AL["Select a Loot Table..."]};
};
end
--Figure out if it is a compatible Atlas version
for i=1,#ATLASLOOT_CURRENT_ATLAS do
@@ -237,10 +239,6 @@ function AtlasLoot_OnVariablesLoaded()
--Set up options frame
AtlasLootOptions_OnLoad();
AtlasLoot_CreateOptionsInfoTooltips();
--Legacy code for those using the ultimately failed attempt at making Atlas load on demand
if AtlasButton_LoadAtlas then
AtlasButton_LoadAtlas();
end
--Hook the necessary Atlas functions
Hooked_Atlas_Refresh = Atlas_Refresh;
Atlas_Refresh = AtlasLoot_Refresh;
@@ -278,7 +276,6 @@ function AtlasLoot_OnVariablesLoaded()
end
--If Atlas is installed, set up for Atlas
if ( Hooked_Atlas_Refresh ) then
AtlasLoot_SetupForAtlas();
--If a first time user, set up options
if( (AtlasLoot.db.profile.AtlasLootVersion == nil) or (tonumber(AtlasLoot.db.profile.AtlasLootVersion) < 40500)) then
AtlasLoot.db.profile.SafeLinks = true;
@@ -359,23 +356,12 @@ function AtlasLoot_OnVariablesLoaded()
end
--Set up the menu in the loot browser
AtlasLoot_DewdropRegister();
AtlasLoot_DewdropExpansionMenuRegister();
--If EquipCompare is available, use it
if((EquipCompare_RegisterTooltip) and (AtlasLoot.db.profile.EquipCompare == true)) then
EquipCompare_RegisterTooltip(AtlasLootTooltip);
end
--Position relevant UI objects for loot browser and set up menu
AtlasLootDefaultFrame_SelectedCategory:SetPoint("TOP", "AtlasLootDefaultFrame_Menu", "BOTTOM", 0, -4);
AtlasLootDefaultFrame_SelectedTable:SetPoint("TOP", "AtlasLootDefaultFrame_SubMenu", "BOTTOM", 0, -4);
AtlasLootDefaultFrame_SelectedTable2:SetPoint("TOP", "AtlasLootDefaultFrame_SubMenu2", "BOTTOM", 0, -4);
AtlasLootDefaultFrame_SelectedCategory:SetText(AL["Choose Table ..."]);
AtlasLootDefaultFrame_SelectedTable:SetText("");
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootItemsFrame_DifficultyAtlasButton:SetText("Select Difficulty");
AtlasLootDefaultFrame_SelectedCategory:Show();
AtlasLootDefaultFrame_SelectedTable:Show();
AtlasLootDefaultFrame_SelectedTable2:Show();
AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SubMenu2:Disable();
if (AtlasLoot.db.profile.LoadAllLoDStartup == true) then
AtlasLoot_LoadAllModules();
else
@@ -496,11 +482,11 @@ function AtlasLoot_OnLoad()
--Sets the default loot tables for the current expansion enabled on the server.
local function getExpac()
local xpaclist = { [0] = {"CLASSIC"} ,[1] = {"TBC"} ,[2] = {"WRATH"} };
AtlasLoot_Expac = xpaclist[GetAccountExpansionLevel()][1];
local xpaclist = {"CLASSIC", "TBC", "WRATH"};
AtlasLoot_Expac = xpaclist[GetAccountExpansionLevel()+1];
end
getExpac();
AtlasLoot_Expac_CurrentTable = AtlasLoot_Expac;
end
function AtlasLoot_CleandataID(newID, listnum)
@@ -522,7 +508,7 @@ pFrame - Data structure describing how and where to anchor the item frame (more
This fuction is not normally called directly, it is usually invoked by AtlasLoot_ShowBossLoot.
It is the workhorse of the mod and allows the loot tables to be displayed any way anywhere in any mod.
]]
function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame, tablenum)
--Set up local variables needed for GetItemInfo, etc
local itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture, itemColor;
local iconFrame, nameFrame, extraFrame, itemButton;
@@ -531,7 +517,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
local isItem;
local spellName, spellIcon;
SearchPrevData = {dataID, dataSource, boss, pFrame};
SearchPrevData = {dataID, dataSource, boss, pFrame, tablenum};
--If the loot table name has not been passed, throw up a debugging statement
if dataID==nil then
@@ -554,24 +540,11 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
-- Hide the Filter Check-Box
AtlasLootFilterCheck:Hide();
-- Hide Selector
AtlasLootItemsFrame_DifficultyAtlasButton:Disable();
AtlasLootItemsFrame_DifficultyAtlasButton:Hide();
-- Updates AtlasLoot_Lastboss if your in a main loot table
if AtlasLoot_Hold == false or AtlasLoot_Lastboss == nil then
AtlasLoot_Lastboss = dataID;
end
dataSource_backup = dataSource;
if dataID == "SearchResult" or dataID == "WishList" then
ItemindexID = "";
AtlasLootItemsFrame_DifficultyAtlasButton:Disable();
AtlasLootItemsFrame_DifficultyAtlasButton:Hide();
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
AtlasLootItemsFrame_DifficultyAtlasButton:SetText("Select Difficulty");
dataSource = {};
-- Match the page number to display
wlPage = tonumber(dataSource_backup:match("%d+$"));
@@ -588,131 +561,43 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
dataSource = AtlasLoot_Data;
end
if dataID == "FilterList" then
Type = lastType;
else
Type = dataSource[dataID].Type;
end
if Type ~= lastType then
AtlasLoot_DifficultyDisable()
if lastReference ~= nil then
dataID = gsub(dataID, lastReference, ""); -- removes old table reference before adding a new 1 if needed
end
ItemindexID = "";
end
if DewDrop2Enable or not dataID == nil or lastReference then
dataID = gsub(dataID, lastReference, ""); -- removes old table reference before adding a new 1 if needed
end
if dataID:match("MENU") and ATLASLOOT_FILTER_ENABLE then
AtlasLootFilterCheck:SetChecked(false);
ATLASLOOT_FILTER_ENABLE = false
end
if (AtlasLootItemsFrame:GetParent() == AlphaMapAlphaMapFrame or AtlasLootItemsFrame:GetParent() == AtlasFrame) then
AtlasMapMenu = true;
else
AtlasLootItemsFrame_DifficultyAtlasButton:Hide();
AtlasLootItemsFrame_DifficultyAtlasButton:Disable();
AtlasMapMenu = false;
end
if Type == nil and ATLASLOOT_FILTER_ENABLE == false or ATLASLOOT_FILTER_ENABLE and dataSource[AtlasLoot_CurrentBoss].Type == nil then -- disable difficulty menu
AtlasLoot_DifficultyDisable()
AtlasLoot_CurrentBoss = dataID;
elseif ATLASLOOT_FILTER_ENABLE then
AtlasLoot_DifficultyEnable(AtlasLoot_CurrentBoss, dataSource)
elseif Type ~= nil then-- enable difficulty menu
AtlasLoot_DifficultyEnable(dataID, dataSource)
AtlasLoot_CurrentBoss = dataID
end
if isTablereference and not notPattern then -- if the itemID is the item rather from a crafting pattern rather then the pattern itself
local dataClean = dataID
dataID = AtlasLoot_CleandataID(dataID, 1);
dataClean = gsub(dataClean, dataID, "")
dataID = dataID .. tableReference .. dataClean;
DewDrop2Enable = true;
lastReference = tableReference;
elseif isTablereference and notPattern then -- if the itemID is a new table reference rather then and itemID reference
local dataClean = dataID
dataID = AtlasLoot_CleandataID(dataID, 1);
dataClean = gsub(dataClean, dataID, "")
dataID = dataID .. tableReference .. dataClean;
DewDrop2Enable = true;
lastReference = tableReference;
elseif isTableExpansion then
local function cleanTableName(tid)
for i = 1, #ATLAS_EXPANSION do
tid = gsub(tid, ATLAS_EXPANSION[i], "");
end
return tid;
end
dataID = cleanTableName(dataID);
dataID = dataID..tableReference;
lastReference = "";
DewDrop2Enable = true;
else
DewDrop2Enable = false;
end
--Turns on the submenu to change expansion
if dataID == "SearchResult" or dataID == "WishList" then
elseif AtlasLoot_Data[dataID].Submenu == "Expansion" then
Updated_dataID = AtlasLoot_CleandataID(dataID, 1);
AtlasLoot_Expac_CurrentTable = gsub(dataID, Updated_dataID, "")
AtlasLoot_Expac_CurrentTable = AtlasLoot_CleandataID(AtlasLoot_Expac_CurrentTable, 2);
AtlasLootDefaultFrame_SubMenu:Enable();
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
AtlasLoot_DewdropSubMenuRegister(AtlasLoot_DewDropDown_SubTables["Expansion"]);
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[AtlasLoot_Expac_CurrentTable][1]);
SelectedTableTextSet = true;
elseif AtlasLoot_Data[dataID].Submenu == "Disable" then
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
SelectedTableTextSet = false;
AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SelectedTable:SetText("");
AtlasLoot_Expac_CurrentTable = "";
end
--Hide UI objects so that only needed ones are shown
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide();
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootItem_"..i):Hide();
getglobal("AtlasLootItem_"..i).itemID = 0;
getglobal("AtlasLootItem_"..i).spellitemID = 0;
end
if AtlasLoot_TableNames[dataID] ~= nil and AtlasLoot_TableNames[dataID][2] == "Menu" then
--[[ if AtlasLoot_TableNames[dataID] ~= nil and AtlasLoot_TableNames[dataID][2] == "Menu" then
AtlasLoot_GenerateAtlasMenu(dataID, pFrame);
lastType = dataSource[dataID].Type
return;
end
end ]]
AtlasLoot_CurrentType = dataSource[dataID].Type or "";
AtlasLootDefaultFrame_ScrollFrameUpdate();
-- Create the loottable
if (dataID == "SearchResult") or (dataID == "WishList") or (AtlasLoot_IsLootTableAvailable(dataID)) then
if (dataID == "SearchResult") or (dataID == "WishList") or dataSource[dataID][tablenum] then
--Iterate through each item object and set its properties
for i = 1, 30, 1 do
--Check for a valid object (that it exists, and that it has a name)
local toShow = true;
if(dataSource[dataID][i] ~= nil and dataSource[dataID][i][4] ~= "") then
if(dataSource[dataID][tablenum][i] ~= nil and dataSource[dataID][tablenum][i][4] ~= "") then
--Checks if an item has a Minimum difficulty, this is to hide items that shouldn't show on lower difficulties
if dataSource[dataID][i][AtlasLoot_Difficulty.MIN_DIF] then
if dataSource[dataID][i][AtlasLoot_Difficulty.MIN_DIF] > ItemindexID then toShow = false end;
if dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.MIN_DIF] then
if dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.MIN_DIF] > ItemindexID then toShow = false end;
end
else
toShow = false;
end
if(toShow) then
IDfound = AL_FindId(dataSource[dataID][i][2], ItemindexID) or dataSource[dataID][i][2];
IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], ItemindexID) or dataSource[dataID][tablenum][i][2];
if ((dataID == "SearchResult") or (dataID == "WishList")) then
IDfound = AL_FindId(dataSource[dataID][i][2], dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][tablenum][i][2];
end
if string.sub(IDfound, 1, 1) == "s" then
@@ -723,19 +608,19 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
if isItem then
if ItemindexID == "Bloodforged" then
IDfound = "60"..dataSource[dataID][i][2];
IDfound = "60"..dataSource[dataID][tablenum][i][2];
else
--Sets ItemindexID to normal(2) if it is nil for min/max difficulties.
if not tonumber(ItemindexID) then ItemindexID = AtlasLoot_Difficulty.Normal end;
--Checks if an item has a Maximum difficulty, this is to correct some items that have an entry for higher difficulties then they really do
if dataSource[dataID][i][AtlasLoot_Difficulty.MAX_DIF] then
if tonumber(dataSource[dataID][i][AtlasLoot_Difficulty.MAX_DIF]) < ItemindexID then ItemindexID = dataSource[dataID][i][AtlasLoot_Difficulty.MAX_DIF] end;
if dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.MAX_DIF] then
if tonumber(dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.MAX_DIF]) < ItemindexID then ItemindexID = dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.MAX_DIF] end;
end
--If something was found in itemID database show that if not show default table item
IDfound = AL_FindId(dataSource[dataID][i][2], ItemindexID) or dataSource[dataID][i][2];
IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], ItemindexID) or dataSource[dataID][tablenum][i][2];
if ((dataID == "SearchResult") or (dataID == "WishList")) then
IDfound = AL_FindId(dataSource[dataID][i][2], dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][tablenum][i][2];
end
end
@@ -745,68 +630,68 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
if(GetItemInfo(IDfound)) then
_, _, _, itemColor = GetItemQualityColor(itemQuality);
text = itemColor..itemName;
elseif dataSource[dataID][i][2] ~= IDfound and itemDefaultColour ~= nil and not dataSource[dataID][i][4]:match("=q5=") then
elseif dataSource[dataID][tablenum][i][2] ~= IDfound and itemDefaultColour ~= nil and not dataSource[dataID][tablenum][i][4]:match("=q5=") then
--If the item is not in cache, use the saved value and process it
text = (string.sub(dataSource[dataID][i][4], 5));
text = (string.sub(dataSource[dataID][tablenum][i][4], 5));
text = itemDefaultColour .. text;
text = AtlasLoot_FixText(text);
else
--If the item is not in cache, use the saved value and process it
text = dataSource[dataID][i][4];
text = dataSource[dataID][tablenum][i][4];
text = AtlasLoot_FixText(text);
end
else
spellName, _, spellIcon, _, _, _, _, _, _ = GetSpellInfo(string.sub(IDfound, 2));
if spellName then
text = AtlasLoot_FixText(string.sub(dataSource[dataID][i][4], 1, 4)..spellName);
text = AtlasLoot_FixText(string.sub(dataSource[dataID][tablenum][i][4], 1, 4)..spellName);
else
text = dataSource[dataID][i][4];
text = dataSource[dataID][tablenum][i][4];
text = AtlasLoot_FixText(text);
end
end
--Store data about the state of the items frame to allow minor tweaks or a recall of the current loot page
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame};
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame, tablenum};
if dataID ~= "FilterList" then
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame}
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame, tablenum}
end
--Insert the item description
if dataSource[dataID][i][6] and dataSource[dataID][i][6] ~= "" then
extra = dataSource[dataID][i][6];
elseif dataSource[dataID][i][5] then
extra = dataSource[dataID][i][5];
if dataSource[dataID][tablenum][i][6] and dataSource[dataID][tablenum][i][6] ~= "" then
extra = dataSource[dataID][tablenum][i][6];
elseif dataSource[dataID][tablenum][i][5] then
extra = dataSource[dataID][tablenum][i][5];
else
extra = "";
end
extra = AtlasLoot_FixText(extra);
--Use shortcuts for easier reference to parts of the item button
itemButton = getglobal("AtlasLootItem_"..dataSource[dataID][i][1]);
iconFrame = getglobal("AtlasLootItem_"..dataSource[dataID][i][1].."_Icon");
nameFrame = getglobal("AtlasLootItem_"..dataSource[dataID][i][1].."_Name");
extraFrame = getglobal("AtlasLootItem_"..dataSource[dataID][i][1].."_Extra");
itemButton = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1]);
iconFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Icon");
nameFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Name");
extraFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Extra");
--If there is no data on the texture an item should have, show a big red question mark
if dataSource[dataID][i][3] == "?" then
if dataSource[dataID][tablenum][i][3] == "?" then
iconFrame:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
elseif dataSource[dataID][i][3] == "" then
elseif dataSource[dataID][tablenum][i][3] == "" then
iconFrame:SetTexture(GetItemIcon(IDfound));
elseif (not isItem) and (spellIcon) then
if tonumber(dataSource[dataID][i][3]) then
iconFrame:SetTexture(GetItemIcon(tonumber(dataSource[dataID][i][3])));
elseif dataSource[dataID][i][3] == "" then
if tonumber(dataSource[dataID][tablenum][i][3]) then
iconFrame:SetTexture(GetItemIcon(tonumber(dataSource[dataID][tablenum][i][3])));
elseif dataSource[dataID][tablenum][i][3] == "" then
iconFrame:SetTexture(spellIcon);
elseif type(dataSource[dataID][i][3]) == "string" then
iconFrame:SetTexture("Interface\\Icons\\"..dataSource[dataID][i][3]);
elseif type(dataSource[dataID][tablenum][i][3]) == "string" then
iconFrame:SetTexture("Interface\\Icons\\"..dataSource[dataID][tablenum][i][3]);
else
iconFrame:SetTexture(spellIcon);
end
else
--else show the texture
iconFrame:SetTexture("Interface\\Icons\\"..dataSource[dataID][i][3]);
iconFrame:SetTexture("Interface\\Icons\\"..dataSource[dataID][tablenum][i][3]);
end
itemButton.itemTexture = dataSource[dataID][i][3];
itemButton.itemTexture = dataSource[dataID][tablenum][i][3];
if iconFrame:GetTexture() == nil then
iconFrame:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
end
@@ -825,17 +710,17 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
extraFrame:SetText(extra);
extraFrame:Show();
--For convenience, we store information about the objects in the objects so that it can be easily accessed later
if((string.sub(IDfound, 1, 1) == "s") and (AtlasLoot.db.profile.CraftingLink ~= 1) and (tonumber(dataSource[dataID][i][3]))) then
itemButton.itemID = dataSource[dataID][i][3];
itemButton.spellitemID = dataSource[dataID][i][3];
elseif ((string.sub(IDfound, 1, 1) == "s") and notPattern == true and (tonumber(dataSource[dataID][i][3]))) then
itemButton.itemID = dataSource[dataID][i][3];
itemButton.spellitemID = dataSource[dataID][i][3];
if((string.sub(IDfound, 1, 1) == "s") and (AtlasLoot.db.profile.CraftingLink ~= 1) and (tonumber(dataSource[dataID][tablenum][i][3]))) then
itemButton.itemID = dataSource[dataID][tablenum][i][3];
itemButton.spellitemID = dataSource[dataID][tablenum][i][3];
elseif ((string.sub(IDfound, 1, 1) == "s") and notPattern == true and (tonumber(dataSource[dataID][tablenum][i][3]))) then
itemButton.itemID = dataSource[dataID][tablenum][i][3];
itemButton.spellitemID = dataSource[dataID][tablenum][i][3];
else
itemButton.itemID = IDfound;
if tonumber(dataSource[dataID][i][3]) then
itemButton.spellitemID = dataSource[dataID][i][3];
if tonumber(dataSource[dataID][tablenum][i][3]) then
itemButton.spellitemID = dataSource[dataID][tablenum][i][3];
else
itemButton.spellitemID = 0;
end
@@ -848,42 +733,37 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
itemButton.storeID = IDfound;
itemButton.dressingroomID = IDfound;
else
itemButton.iteminfo.idcore = dataSource[dataID][i][3];
itemButton.iteminfo.icontexture = GetItemIcon(dataSource[dataID][i][3]);
itemButton.storeID = dataSource[dataID][i][3];
itemButton.dressingroomID = dataSource[dataID][i][3];
itemButton.iteminfo.idcore = dataSource[dataID][tablenum][i][3];
itemButton.iteminfo.icontexture = GetItemIcon(dataSource[dataID][tablenum][i][3]);
itemButton.storeID = dataSource[dataID][tablenum][i][3];
itemButton.dressingroomID = dataSource[dataID][tablenum][i][3];
end
if dataSource[dataID][i][5] then
itemButton.desc = dataSource[dataID][i][5];
if dataSource[dataID][tablenum][i][5] then
itemButton.desc = dataSource[dataID][tablenum][i][5];
else
itemButton.desc = nil;
end
if dataSource[dataID][i][6] then
itemButton.price = dataSource[dataID][i][6];
if dataSource[dataID][tablenum][i][6] then
itemButton.price = dataSource[dataID][tablenum][i][6];
else
itemButton.price = nil;
end
if dataSource[dataID][i][7] and dataSource[dataID][i][7] ~= "" then
itemButton.droprate = dataSource[dataID][i][7];
if dataSource[dataID][tablenum][i][7] and dataSource[dataID][tablenum][i][7] ~= "" then
itemButton.droprate = dataSource[dataID][tablenum][i][7];
else
itemButton.droprate = nil;
end
if (dataID == "SearchResult" or dataID == "WishList") and dataSource[dataID][i][8] then
itemButton.sourcePage = dataSource[dataID][i][8];
elseif dataSource[dataID][i][8] ~= nil and dataSource[dataID][i][8]:match("=LT=") then
itemButton.sourcePage = string.sub(dataSource[dataID][i][8], 5);
if (dataID == "SearchResult" or dataID == "WishList") and dataSource[dataID][tablenum][i][8] then
itemButton.sourcePage = dataSource[dataID][tablenum][i][8];
elseif dataSource[dataID][tablenum][i][8] ~= nil and dataSource[dataID][tablenum][i][8]:match("=LT=") then
itemButton.sourcePage = string.sub(dataSource[dataID][tablenum][i][8], 5);
else
itemButton.sourcePage = nil;
end
if dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH] then
itemButton.difficulty = dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH];
if dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.DIF_SEARCH] then
itemButton.difficulty = dataSource[dataID][tablenum][i][AtlasLoot_Difficulty.DIF_SEARCH];
else
itemButton.difficulty = ItemindexID;
if dataSource[dataID].Type then
if string.find(dataSource[dataID].Type, "Raid") and ItemindexID == 4 then
itemButton.difficulty = 99;
end
end
end
itemButton.i = 1;
@@ -894,21 +774,9 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
end
end
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame, tablenum};
if dataID ~= "FilterList" then
lastType = dataSource[dataID].Type
end
if AtlasLoot_Expac_CurrentTable ~= "" then
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[AtlasLoot_Expac_CurrentTable][1]);
elseif SelectedTableTextSet then
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[dataID][1]);
else
AtlasLootDefaultFrame_SelectedTable:SetText("");
end
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame};
if dataID ~= "FilterList" then
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame}
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame, tablenum};
end
--If the item is not in cache, querying the server may cause a disconnect
@@ -932,23 +800,17 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
AtlasLootQuickLooksButton:Show();
-- Show the Filter Check-Box
if dataID ~= "WishList" and dataID ~= "SearchResult" and dataSource_backup ~= "AtlasLootCrafting" then
if dataID ~= "WishList" and dataID ~= "SearchResult" and dataSource[dataID].NoFilter ~= true then
AtlasLootFilterCheck:Show();
end
--Hide navigation buttons by default, only show what we need
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
if dataID ~= "SearchResult" and dataID ~= "WishList" then
local affix = "";
if AtlasLoot_Data[dataID].Dif ~= nil then
local d = AtlasLoot_Data[dataID].Type or "Dungeon"
affix = " ("..AtlasLoot_Difficulty[d][GetDifficultyTier()]..")"
end
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]..affix);
else
AtlasLoot_BossName:SetText(boss);
end
AtlasLoot_BossName:SetText(dataSource[dataID][tablenum].Name);
AtlasLootDefaultFrame_SubMenu:SetText(dataSource[dataID].Name);
--Consult the button registry to determine what nav buttons are required
if dataID == "SearchResult" or dataID == "WishList" then
@@ -961,144 +823,36 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
getglobal("AtlasLootItemsFrame_PREV").lootpage = dataID.."Page"..(wlPage - 1);
end
else
local tablebase = dataSource[dataID];
if tablebase.Next then
local tablebase = dataID;
if ATLASLOOT_FILTER_ENABLE and dataID == "FilterList" then
tablebase = AtlasLootItemsFrame.refreshOri[1];
end
if tablenum + 1 ~= AtlasLoot_GetNumOfRows(dataSource[tablebase]) then
getglobal("AtlasLootItemsFrame_NEXT"):Show();
getglobal("AtlasLootItemsFrame_NEXT").lootpage = tablebase.Next;
getglobal("AtlasLootItemsFrame_NEXT").lootpage = tablebase;
getglobal("AtlasLootItemsFrame_NEXT").tablenum = tablenum + 1;
end
if tablebase.Prev then
if tablenum -1 ~= 0 then
getglobal("AtlasLootItemsFrame_PREV"):Show();
getglobal("AtlasLootItemsFrame_PREV").lootpage = tablebase.Prev;
getglobal("AtlasLootItemsFrame_PREV").lootpage = tablebase;
getglobal("AtlasLootItemsFrame_PREV").tablenum = tablenum - 1;
end
if tablebase.Back then
--[[ if tablebase.Back then
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = tablebase.Back;
end
end
end
--For Alphamap and Atlas integration, show a 'close' button to hide the loot table and restore the map view
if (AtlasLootItemsFrame:GetParent() == AlphaMapAlphaMapFrame or AtlasLootItemsFrame:GetParent() == AtlasFrame) then
AtlasLootItemsFrame_CloseButton:Show();
else
AtlasLootItemsFrame_CloseButton:Hide();
]] end
end
--Anchor the item frame where it is supposed to be
AtlasLoot_SetItemInfoFrame(pFrame);
if ATLASLOOT_FILTER_ENABLE == true and dataID ~= "FilterList" then
AtlasLoot_HideNoUsableItems()
if ATLASLOOT_FILTER_ENABLE and dataID ~= "FilterList" then
AtlasLoot_HideNoUsableItems();
end
if AtlasLoot.db.profile.ItemAutoQuery then AtlasLoot_QueryLootPage(); end
end
--[[
AtlasLoot_GenerateAtlasMenu(dataID, pFrame)
dataID - Identifier of the loot table to show
pFrame - Where to anchor the menu
This function allows menus to be defined in essentially the same way as
normal loot tables
]]
function AtlasLoot_GenerateAtlasMenu(dataID, pFrame)
local extra;
local text;
local dataSource = AtlasLoot_Data;
--Hide UI objects so that only needed ones are shown
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide();
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
--Check for a valid object (that it exists, and that it has a name)
if(AtlasLoot_Data[dataID][i] ~= nil and AtlasLoot_Data[dataID][i][4] ~= "") then
text = AtlasLoot_Data[dataID][i][4];
text = AtlasLoot_FixText(text);
--Store data about the state of the items frame to allow minor tweaks or a recall of the current loot page
AtlasLootItemsFrame.refresh = {dataID, "", "", pFrame};
--Insert the item description
if AtlasLoot_Data[dataID][i][5] then
extra = AtlasLoot_Data[dataID][i][5];
else
extra = "";
end
extra = AtlasLoot_FixText(extra);
--Use shortcuts for easier reference to parts of the item button
itemButton = getglobal("AtlasLootMenuItem_"..AtlasLoot_Data[dataID][i][1]);
iconFrame = getglobal("AtlasLootMenuItem_"..AtlasLoot_Data[dataID][i][1].."_Icon");
nameFrame = getglobal("AtlasLootMenuItem_"..AtlasLoot_Data[dataID][i][1].."_Name");
extraFrame = getglobal("AtlasLootMenuItem_"..AtlasLoot_Data[dataID][i][1].."_Extra");
--If there is no data on the texture an item should have, show a big red question mark
if AtlasLoot_Data[dataID][i][3] == "?" then
iconFrame:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
else
iconFrame:SetTexture("Interface\\Icons\\"..AtlasLoot_Data[dataID][i][3]);
end
itemButton.itemTexture = AtlasLoot_Data[dataID][i][3];
if iconFrame:GetTexture() == nil then
iconFrame:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
end
itemButton.name = text;
itemButton.extra = extra;
--Store where we want the menu button to link to
itemButton.lootpage = AtlasLoot_Data[dataID][i][2];
--Set the name and description of the item
nameFrame:SetText(text);
extraFrame:SetText(extra);
extraFrame:Show();
itemButton.i = 1;
itemButton:Show();
end
end
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]);
--This is not a valid QuickLook, so hide the UI objects
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLootFilterCheck:Hide();
--Hide navigation buttons by default, only show what we need
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
local tablebase = AtlasLoot_Data[dataID];
if tablebase.Next then
getglobal("AtlasLootItemsFrame_NEXT"):Show();
getglobal("AtlasLootItemsFrame_NEXT").lootpage = tablebase.Next;
end
if tablebase.Prev then
getglobal("AtlasLootItemsFrame_PREV"):Show();
getglobal("AtlasLootItemsFrame_PREV").lootpage = tablebase.Prev;
end
if tablebase.Back then
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = tablebase.Back;
end
--For Alphamap and Atlas integration, show a 'close' button to hide the loot table and restore the map view
if (AtlasLootItemsFrame:GetParent() == AlphaMapAlphaMapFrame or AtlasLootItemsFrame:GetParent() == AtlasFrame) then
AtlasLootItemsFrame_CloseButton:Show();
else
AtlasLootItemsFrame_CloseButton:Hide();
end
--Anchor the item frame where it is supposed to be
AtlasLoot_SetItemInfoFrame(pFrame);
end
--[[
AtlasLoot_SetItemInfoFrame(pFrame):
pFrame - Data structure with anchor info. Format: {Anchor Point, Relative Frame, Relative Point, X Offset, Y Offset }
@@ -1154,32 +908,27 @@ function AtlasLootItemsFrame_OnCloseButton()
AtlasLootItemsFrame:Hide();
end
--[[
AtlasLootMenuItem_OnClick:
Requests the relevant loot page from a menu screen
]]
function AtlasLootMenuItem_OnClick()
if this.lootpage ~= nil and this.lootpage ~= "" then
AtlasLoot_ShowBossLoot(this.lootpage, "", AtlasLoot_AnchorFrame);
end
end
--[[
AtlasLoot_NavButton_OnClick:
Called when <-, -> are pressed and calls up the appropriate loot page
]]
function AtlasLoot_NavButton_OnClick()
if AtlasLootItemsFrame.refresh and AtlasLootItemsFrame.refresh[4] then
if strsub(this.lootpage, 1, 16) == "SearchResultPage" then
AtlasLoot_ShowItemsFrame("SearchResult", this.lootpage, (AL["Search Result: %s"]):format(AtlasLootCharDB.LastSearchedText or ""), AtlasLootItemsFrame.refresh[4]);
elseif strsub(this.lootpage, 1, 12) == "WishListPage" then
AtlasLoot_ShowItemsFrame("WishList", this.lootpage, AL["Wishlist"], AtlasLootItemsFrame.refresh[4]);
local tabelname = this.lootpage;
local tablenum = this.tablenum;
local filtercheck = false;
if AtlasLootItemsFrame.refresh and AtlasLootItemsFrame.refresh[4] and AtlasLootItemsFrame.refresh[5] then
if strsub(tabelname, 1, 16) == "SearchResultPage" then
AtlasLoot_ShowItemsFrame("SearchResult", tabelname, (AL["Search Result: %s"]):format(AtlasLootCharDB.LastSearchedText or ""), AtlasLootItemsFrame.refresh[4],AtlasLootItemsFrame.refresh[5]);
elseif strsub(tabelname, 1, 12) == "WishListPage" then
AtlasLoot_ShowItemsFrame("WishList", tabelname, AL["Wishlist"], AtlasLootItemsFrame.refresh[4],AtlasLootItemsFrame.refresh[5]);
else
AtlasLoot_ShowItemsFrame(this.lootpage, AtlasLootItemsFrame.refresh[2], "", AtlasLootItemsFrame.refresh[4]);
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(tabelname, AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[4], tablenum);
AtlasLoot_ShowItemsFrame(tabelname, AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[3], AtlasLootItemsFrame.refresh[4], tablenum);
end
else
--Fallback for if the requested loot page is a menu and does not have a .refresh instance
AtlasLoot_ShowItemsFrame(this.lootpage, "", "", AtlasFrame);
AtlasLoot_ShowItemsFrame(tabelname, "", "", AtlasFrame);
end
end
@@ -1211,28 +960,10 @@ AtlasLoot_IsLootTableAvailable(dataID):
Checks if a loot table is in memory and attempts to load the correct LoD module if it isn't
dataID: Loot table dataID
]]
function AtlasLoot_IsLootTableAvailable(dataID)
local menu_check=false;
function AtlasLoot_IsLootTableAvailable(dataID,dataSource)
local moduleName=nil;
for k,v in pairs(AtlasLoot_MenuList) do
if v == dataID then
menu_check=true;
end
end
if menu_check then
return true;
else
if not AtlasLoot_TableNames[dataID] then
DEFAULT_CHAT_FRAME:AddMessage(RED..AL["AtlasLoot Error!"].." "..WHITE..dataID..AL[" not listed in loot table registry, please report this message to the AtlasLoot forums at https://discord.gg/uYCE2X2FgA"]);
return false;
end
local dataSource = AtlasLoot_TableNames[dataID][2];
moduleName = AtlasLoot_GetLODModule(dataSource);
if AtlasLoot_Data[dataID] then
@@ -1251,7 +982,7 @@ function AtlasLoot_IsLootTableAvailable(dataID)
end
end
end
if AtlasLoot_Data[dataID] then
--[[ if AtlasLoot_Data[dataID] then
if ATLASLOOT_DEBUGMESSAGES then
DEFAULT_CHAT_FRAME:AddMessage(GREEN..AL["AtlasLoot"]..": "..ORANGE..moduleName..WHITE.." "..AL["sucessfully loaded."]);
end
@@ -1260,13 +991,12 @@ function AtlasLoot_IsLootTableAvailable(dataID)
else
DEFAULT_CHAT_FRAME:AddMessage(RED..AL["AtlasLoot Error!"].." "..ORANGE..AtlasLoot_TableNames[dataID][1]..WHITE..AL[" could not be accessed, the following module may be out of date: "]..ORANGE..moduleName);
return false;
end
end ]]
else
DEFAULT_CHAT_FRAME:AddMessage(RED..AL["AtlasLoot Error!"].." "..ORANGE..AL["Loot module returned as nil!"]);
return false;
end
end
end
end
--[[
@@ -1344,7 +1074,7 @@ function AtlasLoot_ShowQuickLooks(button)
"tooltipTitle", AL["QuickLook"].." 1",
"tooltipText", AL["Assign this loot table\n to QuickLook"].." 1",
"func", function()
AtlasLootCharDB["QuickLooks"][1]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]};
AtlasLootCharDB["QuickLooks"][1]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]};
AtlasLoot_RefreshQuickLookButtons();
dewdrop:Close(1);
end
@@ -1354,7 +1084,7 @@ function AtlasLoot_ShowQuickLooks(button)
"tooltipTitle", AL["QuickLook"].." 2",
"tooltipText", AL["Assign this loot table\n to QuickLook"].." 2",
"func", function()
AtlasLootCharDB["QuickLooks"][2]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]};
AtlasLootCharDB["QuickLooks"][2]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]};
AtlasLoot_RefreshQuickLookButtons();
dewdrop:Close(1);
end
@@ -1364,7 +1094,7 @@ function AtlasLoot_ShowQuickLooks(button)
"tooltipTitle", AL["QuickLook"].." 3",
"tooltipText", AL["Assign this loot table\n to QuickLook"].." 3",
"func", function()
AtlasLootCharDB["QuickLooks"][3]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]};
AtlasLootCharDB["QuickLooks"][3]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]};
AtlasLoot_RefreshQuickLookButtons();
dewdrop:Close(1);
end
@@ -1374,7 +1104,7 @@ function AtlasLoot_ShowQuickLooks(button)
"tooltipTitle", AL["QuickLook"].." 4",
"tooltipText", AL["Assign this loot table\n to QuickLook"].." 4",
"func", function()
AtlasLootCharDB["QuickLooks"][4]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]};
AtlasLootCharDB["QuickLooks"][4]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]};
AtlasLoot_RefreshQuickLookButtons();
dewdrop:Close(1);
end
+6 -150
View File
@@ -14,7 +14,7 @@
<Script file="Options.lua"/>
<Script file="LootButtons.lua"/>
<Script file="HooksandAPI.lua"/>
<Script file="AtlasIntegration.lua"/>
<!-- <Script file="AtlasIntegration.lua"/> -->
<Script file="Launchers.lua"/>
<Script file="AtlasLoot.lua"/>
<Script file="WishList.lua"/>
@@ -313,7 +313,6 @@
end
end
AtlasLootOptionsFrameHidePanel:SetChecked(AtlasLoot.db.profile.HidePanel);
AtlasLoot_SetupForAtlas();
</OnClick>
</Scripts>
</Button>
@@ -348,53 +347,12 @@
<Frame name="AtlasLootItemsFrame" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="510" y="510"/>
<AbsDimension x="535" y="510"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Frames>
<Button name="$parent_CloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
AtlasLootItemsFrame_OnCloseButton();
</OnClick>
<OnShow>
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
</OnShow>
</Scripts>
</Button>
<Button name="$parent_DifficultyAtlasButton" inherits="OptionsButtonTemplate">
<Size>
<AbsDimension x="140" y="23" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="-130" y="4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnShow>
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
</OnShow>
<OnClick>
if AtlasLoot_DifficultyAtlas:IsOpen() then
AtlasLoot_DifficultyAtlas:Close();
else
AtlasLoot_DifficultyAtlas:Open(this);
end
</OnClick>
</Scripts>
</Button>
<Button name="AtlasLootItem_1" inherits="AtlasLootItem_Template" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
@@ -497,108 +455,6 @@
<Button name="AtlasLootItem_30" inherits="AtlasLootItem_Template" id="30">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_29" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_1" inherits="AtlasLootMenuItem_Template" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="25" y="-35"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="AtlasLootMenuItem_2" inherits="AtlasLootMenuItem_Template" id="2">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_1" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_3" inherits="AtlasLootMenuItem_Template" id="3">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_2" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_4" inherits="AtlasLootMenuItem_Template" id="4">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_3" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_5" inherits="AtlasLootMenuItem_Template" id="5">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_4" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_6" inherits="AtlasLootMenuItem_Template" id="6">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_5" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_7" inherits="AtlasLootMenuItem_Template" id="7">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_6" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_8" inherits="AtlasLootMenuItem_Template" id="8">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_7" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_9" inherits="AtlasLootMenuItem_Template" id="9">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_8" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_10" inherits="AtlasLootMenuItem_Template" id="10">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_9" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_11" inherits="AtlasLootMenuItem_Template" id="11">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_10" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_12" inherits="AtlasLootMenuItem_Template" id="12">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_11" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_13" inherits="AtlasLootMenuItem_Template" id="13">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_12" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_14" inherits="AtlasLootMenuItem_Template" id="14">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_13" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_15" inherits="AtlasLootMenuItem_Template" id="15">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_14" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_16" inherits="AtlasLootMenuItem_Template" id="16">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="AtlasLootItem_1" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="AtlasLootMenuItem_17" inherits="AtlasLootMenuItem_Template" id="17">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_16" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_18" inherits="AtlasLootMenuItem_Template" id="18">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_17" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_19" inherits="AtlasLootMenuItem_Template" id="19">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_18" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_20" inherits="AtlasLootMenuItem_Template" id="20">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_19" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_21" inherits="AtlasLootMenuItem_Template" id="21">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_20" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_22" inherits="AtlasLootMenuItem_Template" id="22">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_21" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_23" inherits="AtlasLootMenuItem_Template" id="23">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_22" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_24" inherits="AtlasLootMenuItem_Template" id="24">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_23" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_25" inherits="AtlasLootMenuItem_Template" id="25">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_24" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_26" inherits="AtlasLootMenuItem_Template" id="26">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_25" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_27" inherits="AtlasLootMenuItem_Template" id="27">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_26" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_28" inherits="AtlasLootMenuItem_Template" id="28">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_27" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_29" inherits="AtlasLootMenuItem_Template" id="29">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_28" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="AtlasLootMenuItem_30" inherits="AtlasLootMenuItem_Template" id="30">
<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_29" relativePoint="BOTTOMLEFT"/></Anchors>
</Button>
<Button name="$parent_BACK" inherits="AtlasLootClassButtonTemplate" hidden="true">
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
@@ -1507,7 +1363,7 @@
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], pFrame);
else
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], AtlasLootCharDB["QuickLooks"][1][4]);
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], AtlasLootCharDB["QuickLooks"][1][4] ,AtlasLootCharDB["QuickLooks"][1][5]);
end
end
</OnClick>
@@ -1551,7 +1407,7 @@
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], pFrame);
else
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], AtlasLootCharDB["QuickLooks"][2][4]);
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], AtlasLootCharDB["QuickLooks"][2][4] ,AtlasLootCharDB["QuickLooks"][2][5]);
end
end
</OnClick>
@@ -1595,7 +1451,7 @@
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], pFrame);
else
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], AtlasLootCharDB["QuickLooks"][3][4]);
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], AtlasLootCharDB["QuickLooks"][3][4] ,AtlasLootCharDB["QuickLooks"][3][5]);
end
end
</OnClick>
@@ -1639,7 +1495,7 @@
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], pFrame);
else
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], AtlasLootCharDB["QuickLooks"][4][4]);
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], AtlasLootCharDB["QuickLooks"][4][4] ,AtlasLootCharDB["QuickLooks"][4][5]);
end
end
</OnClick>
+21 -34
View File
@@ -96,8 +96,7 @@ local ClassHides = {
-- AtlasLoot_FilterEnableButton()
-- **********************************************************************
AtlasLoot_Data["FilterList"] = {
};
AtlasLoot_Data["FilterList"] = { [1] = {}; };
function AtlasLoot_Testabc()
print(BabbleInventory["Two-Hand"])
@@ -109,14 +108,16 @@ function AtlasLoot_HideNoUsableItems()
local dataSource = AtlasLootItemsFrame.refreshOri[2]
local boss = AtlasLootItemsFrame.refreshOri[3]
local pFrame = AtlasLootItemsFrame.refreshOri[4]
local tablebase = AtlasLoot_Data[dataID]
if not tablebase or dataID == "WishList" or dataID == "SearchResult" or dataSource == "AtlasLootCrafting" then return end
local tablenum = AtlasLootItemsFrame.refreshOri[5]
local tablebase = AtlasLoot_Data[dataID][tablenum]
if not tablebase or dataID == "WishList" or dataID == "SearchResult" then return end
local itemCount = 0
local countAll = 1
local count = 0
local leatherworking = GetSpellInfo(2108)
AtlasLoot_Data["FilterList"] = {}
AtlasLoot_Data["FilterList"] = { Type = dataSource[dataID].Type; [tablenum] = {}; };
for i=1,30 do
local info = getglobal("AtlasLootItem_"..i.."_Extra"):GetText()
if getglobal("AtlasLootItem_"..i):IsShown() then
@@ -169,35 +170,35 @@ function AtlasLoot_HideNoUsableItems()
-- Sort the items
if xgo == true then
if i==16 and countOld > 0 then
AtlasLoot_Data["FilterList"][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
AtlasLoot_Data["FilterList"][tablenum][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
countAll = 16
elseif i==16 and xitemExtraText and strfind(xitemExtraText, AL["Token"]) then
AtlasLoot_Data["FilterList"][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
AtlasLoot_Data["FilterList"][tablenum][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
countAll = 16
elseif countAll < 16 and xitemNameText and strfind(xitemNameText, AL["Hard Mode"]) then
AtlasLoot_Data["FilterList"][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
AtlasLoot_Data["FilterList"][tablenum][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
countAll = 16
elseif i==16 and xitemTexture == "INV_Box_01" then
AtlasLoot_Data["FilterList"][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
AtlasLoot_Data["FilterList"][tablenum][16] = { 16, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
countAll = 16
else
AtlasLoot_Data["FilterList"][countAll] = { countAll, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
AtlasLoot_Data["FilterList"][tablenum][countAll] = { countAll, xitemID, xitemTexture, xitemNameText, xitemExtraTextSave}
end
if tablebase[itemCount][6] and countAll==16 then
AtlasLoot_Data["FilterList"][16][6] = tablebase[itemCount][6]
AtlasLoot_Data["FilterList"][tablenum][16][6] = tablebase[itemCount][6]
elseif tablebase[itemCount][6] and countAll~=16 then
AtlasLoot_Data["FilterList"][countAll][6] = tablebase[itemCount][6]
AtlasLoot_Data["FilterList"][tablenum][countAll][6] = tablebase[itemCount][6]
end
if tablebase[itemCount][7] and countAll==16 then
AtlasLoot_Data["FilterList"][16][7] = tablebase[itemCount][7]
AtlasLoot_Data["FilterList"][tablenum][16][7] = tablebase[itemCount][7]
elseif tablebase[itemCount][7] and countAll~=16 then
AtlasLoot_Data["FilterList"][countAll][7] = tablebase[itemCount][7]
AtlasLoot_Data["FilterList"][tablenum][countAll][7] = tablebase[itemCount][7]
end
if tablebase[itemCount][8] and countAll==16 then
AtlasLoot_Data["FilterList"][16][8] = tablebase[itemCount][8]
AtlasLoot_Data["FilterList"][tablenum][16][8] = tablebase[itemCount][8]
elseif tablebase[itemCount][8] and countAll~=16 then
AtlasLoot_Data["FilterList"][countAll][8] = tablebase[itemCount][8]
AtlasLoot_Data["FilterList"][tablenum][countAll][8] = tablebase[itemCount][8]
end
countAll = countAll + 1
@@ -208,30 +209,16 @@ function AtlasLoot_HideNoUsableItems()
end
end
-- Set the Next, Prev and Back button.
if tablebase.Next then
AtlasLoot_Data["FilterList"].Next = tablebase.Next
end
if tablebase.Prev then
AtlasLoot_Data["FilterList"].Prev = tablebase.Prev
end
if tablebase.Back then
AtlasLoot_Data["FilterList"].Back = tablebase.Back
end
AtlasLoot_TableNames["FilterList"] = {AtlasLoot_TableNames[dataID][1],AtlasLoot_TableNames[dataID][2]};
AtlasLoot_ShowItemsFrame("FilterList", "AtlasLootFilter", "", AtlasLootItemsFrame.refresh[4])
Type = lastType
AtlasLoot_ShowItemsFrame("FilterList", AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[3], AtlasLootItemsFrame.refresh[4], AtlasLootItemsFrame.refresh[5])
end
function AtlasLoot_FilterEnableButton()
if ATLASLOOT_FILTER_ENABLE == true then
ATLASLOOT_FILTER_ENABLE = false
ReEnableFilter = false
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4])
ATLASLOOT_FILTER_ENABLE = false;
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]);
else
ATLASLOOT_FILTER_ENABLE = true
AtlasLoot_HideNoUsableItems()
AtlasLoot_HideNoUsableItems();
end
end
-1
View File
@@ -27,7 +27,6 @@ function AtlasLoot_Atlas_OnShow()
--We don't want Atlas and the Loot Browser open at the same time, so the Loot Browser is close
if AtlasLootDefaultFrame then
AtlasLootDefaultFrame:Hide();
AtlasLoot_SetupForAtlas();
end
--Call the Atlas function
Hooked_Atlas_OnShow();
-9
View File
@@ -146,15 +146,6 @@ function AtlasLootOptions_ItemIDToggle()
end
function AtlasLootOptions_SubtablePositionToggle()
if AtlasLootOptionsFrameSubtablePosition:GetChecked() then
AtlasLootDefaultFrame_SubMenu2:SetPoint("TOP", 160, -40);
AtlasLootDefaultFrame_SubMenu:SetPoint("TOP", 0, -40);
AtlasLoot.db.profile.SubtablePosition = AtlasLootOptionsFrameSubtablePosition:GetChecked();
else
AtlasLootDefaultFrame_SubMenu:SetPoint("TOP", 160, -40);
AtlasLootDefaultFrame_SubMenu2:SetPoint("TOP", 0, -40);
AtlasLoot.db.profile.SubtablePosition = AtlasLootOptionsFrameSubtablePosition:GetChecked();
end
AtlasLootOptions_Init();
end
+1 -15
View File
@@ -284,19 +284,10 @@ function AtlasLoot_AdvancedSearchShow()
AdvSearchSubMenu2Enabled = 0;
AdvSearchSubMenuText = "";
if AtlasLootDefaultFrame_SubMenu2:IsEnabled() then
AdvSearchSubMenu2Enabled = 1;
AdvSearchSubMenu2Text = AtlasLootDefaultFrame_SelectedTable2:GetText();
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
end
if AtlasLootDefaultFrame_SubMenu:IsEnabled() then
AdvSearchSubMenuEnabled = 1;
AdvSearchSubMenuText = AtlasLootDefaultFrame_SelectedTable:GetText();
AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SelectedTable:SetText("");
end
AtlasLootServerQueryButton:Hide();
@@ -329,11 +320,6 @@ function AtlasLoot_AdvancedSearchClose()
AtlasLootAdvancedSearch:Hide();
AtlasLootServerQueryButton:Show();
if AdvSearchSubMenu2Enabled then
AtlasLootDefaultFrame_SubMenu2:Enable();
AtlasLootDefaultFrame_SelectedTable2:SetText(AdvSearchSubMenu2Text);
end
if AdvSearchSubMenuEnabled then
AtlasLootDefaultFrame_SubMenu:Enable();
AtlasLootDefaultFrame_SelectedTable:SetText(AdvSearchSubMenuText);
@@ -1,5 +1,5 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="DewDropDown.lua"/>
<Script file="Menu.lua"/>
<Script file="AtlaslootDefaultFrame.lua"/>
<Button name="AtlasLootDefaultFrameButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
@@ -165,7 +165,7 @@
<AbsDimension x="515" y="515"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="90"/>
</Offset>
@@ -183,7 +183,6 @@
</Layer>
</Layers>
</Frame>
<Button name="$parent_Preset2" inherits="AtlasLootDefaultFrameButtonTemplate">
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
@@ -262,7 +261,7 @@
</Button>
<Button name="$parent_Preset3" inherits="AtlasLootDefaultFrameButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Preset2" relativePoint="RIGHT">
<Anchor point="LEFT" relativeTo="$parent_Preset1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
@@ -581,5 +580,4 @@
</OnDragStop>
</Scripts>
</Frame>
</Ui>
+75 -634
View File
@@ -2,14 +2,14 @@
Functions:
AtlasLoot_DewDropClick(tablename, text, tabletype, tabletype2)
AtlasLoot_DewDropSubMenuClick(tablename, text)
AtlasLoot_DewDropSubMenu2Click(tablename, text)
AtlasLoot_DewdropExpansionMenuClick(tablename, text)
AtlasLoot_DefaultFrame_OnShow()
AtlasLootDefaultFrame_OnHide()
AtlasLoot_DewDropSubMenu2Click(raidtablename, itemID, itemColour)
AtlasLoot_DewdropExpansionMenuClick(raidtablename, itemID, itemColour)
AtlasLoot_DifficultyDisable()
AtlasLoot_DifficultyEnable(dataID, dataSource)
AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, itemColour)
AtlasLoot_DewdropSubMenu2Register(loottable)
AtlasLoot_DewdropExpansionMenuRegister(loottable)
AtlasLoot_DewdropSubMenuRegister(loottable)
AtlasLoot_DewdropRegister()
AtlasLoot_SetNewStyle(style)
@@ -24,10 +24,10 @@ local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
--Load the 2 dewdrop menus
AtlasLoot_Dewdrop = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu2 = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropExpansionMenu = AceLibrary("Dewdrop-2.0");
AtlasLoot_DifficultyAtlas = AceLibrary("Dewdrop-2.0");
indexID = 2;
ItemindexID = "";
ItemindexID = 2;
AtlasLoot_Data["AtlasLootFallback"] = {
EmptyInstance = {};
@@ -37,63 +37,20 @@ AtlasLoot_Data["AtlasLootFallback"] = {
AtlasLoot_DewDropClick(tablename, text, tabletype):
tablename - Name of the loot table in the database
text - Heading for the loot table
tabletype - Whether the tablename indexes an actual table or needs to generate a submenu
tabletype2 - Whether the tablename indexes an actual second submenu
Called when a button in AtlasLoot_Dewdrop is clicked
]]
function AtlasLoot_DewDropClick(tablename, text, tabletype)
--Definition of where I want the loot table to be shown
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
--If the button clicked was linked to a loot table
AtlasLoot_Hold = false;
if tabletype == "Table" then
--Show the loot table
AtlasLoot_ShowBossLoot(tablename, tablename, pFrame);
--Save needed info for fuure re-display of the table
AtlasLoot_Lastboss = tablename;
AtlasLoot.db.profile.LastBoss = tablename;
--Turns on the submenu to select expansion
if AtlasLoot_Data[tablename].Submenu == "Expansion" then
local updated_tablename = AtlasLoot_CleandataID(tablename, 1);
Updated_dataID = updated_tablename;
AtlasLootDefaultFrame_SubMenu:Enable();
function AtlasLoot_DewDropClick(tablename, text, tablenum)
ATLASLOOT_FILTER_ENABLE = false;
AtlasLootFilterCheck:SetChecked(false);
AltasLoot_CurrentTable = tablename;
tablename = tablename .. AtlasLoot_Expac;
AtlasLootDefaultFrame_Menu:SetText(text);
AtlasLoot_IsLootTableAvailable(tablename,AtlasLoot_SubMenus[tablename].Module);
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
AtlasLoot_DewdropSubMenuRegister(AtlasLoot_DewDropDown_SubTables["Expansion"]);
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[AtlasLoot_Expac][1]);
else
--Purge the text label for the submenu and disable the submenu
AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SelectedTable:SetText("");
AtlasLootDefaultFrame_SelectedTable:Show();
SelectedTableTextSet = false;
Updated_dataID = "";
AtlasLoot_Expac_CurrentTable = "";
AtlasLoot_DewdropSubMenuRegister(AtlasLoot_SubMenus[tablename]);
if AtlasLoot_SubMenus[tablename].AutoLoad then
AtlasLoot_DewDropSubMenuClick(AtlasLoot_SubMenus[tablename][1][2])
end
else
--Enable the submenu button
AtlasLootDefaultFrame_SubMenu:Enable();
AtlasLoot_Lastboss = AtlasLoot_DewDropDown_SubTables[tablename][1][2];
--Show the first loot table associated with the submenu
AtlasLoot_ShowBossLoot(AtlasLoot_DewDropDown_SubTables[tablename][1][2], AtlasLoot_DewDropDown_SubTables[tablename][1][1], pFrame);
--Save needed info for fuure re-display of the table
AtlasLoot.db.profile.LastBoss = AtlasLoot_DewDropDown_SubTables[tablename][1][2];
--Load the correct submenu and associated with the button
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
AtlasLoot_DewdropSubMenuRegister(AtlasLoot_DewDropDown_SubTables[tablename]);
--Show a text label of what has been selected
if AtlasLoot_DewDropDown_SubTables[tablename][1][1] ~= "" then
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_DewDropDown_SubTables[tablename][1][1]);
else
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[AtlasLoot_DewDropDown_SubTables[tablename][1][2]][1]);
end
AtlasLootDefaultFrame_SelectedTable:Show();
SelectedTableTextSet = true;
Updated_dataID = ""
AtlasLoot_Expac_CurrentTable = "";
end
--Show the category that has been selected
AtlasLootDefaultFrame_SelectedCategory:SetText(text);
AtlasLootDefaultFrame_SelectedCategory:Show();
AtlasLoot_Dewdrop:Close(1);
end
@@ -104,25 +61,16 @@ text - Heading for the loot table
Called when a button in AtlasLoot_DewdropSubMenu is clicked
]]
function AtlasLoot_DewDropSubMenuClick(tablename, text)
--Changes the lable of the submenu to show Expansion not the main table name
if Updated_dataID ~= "" then
if AtlasLoot_Data[Updated_dataID..tablename].Submenu == "Expansion" then
tablename = Updated_dataID..tablename;
end
end
--Definition of where I want the loot table to be shown
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
--Show the select loot table
AtlasLoot_ShowItemsFrame(tablename, "", text, pFrame);
local tablenum = AtlasLoot_Data[tablename].Loadfirst or 1;
ItemindexID = ItemindexID or 2;
AtlasLoot_ShowItemsFrame(tablename, AtlasLoot_Data, AtlasLoot_Data[tablename][tablenum].Name, pFrame, tablenum);
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(tablename, AtlasLoot_Data, pFrame, tablenum);
--Save needed info for fuure re-display of the table
AtlasLoot.db.profile.LastBoss = tablename;
AtlasLoot.db.profile.LastBoss = {tablename, AtlasLoot_Data, AtlasLoot_Data[tablename][tablenum].Name, pFrame, tablenum};
--Show the table that has been selected
if text ~= "" then
AtlasLootDefaultFrame_SelectedTable:SetText(text);
else
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[tablename][1]);
end
AtlasLootDefaultFrame_SelectedTable:Show();
AtlasLoot_DewdropSubMenu:Close(1);
end
@@ -138,15 +86,17 @@ function AtlasLootDefaultFrame_OnShow()
if AtlasFrame then
AtlasFrame:Hide();
end
--Remove the selection of a loot table in Atlas
AtlasLootItemsFrame.activeBoss = nil;
--Set the item table to the loot table
AtlasLoot_SetItemInfoFrame(pFrame);
--Show the last displayed loot table
if AtlasLoot_IsLootTableAvailable(AtlasLoot.db.profile.LastBoss) then
AtlasLoot_ShowBossLoot(AtlasLoot.db.profile.LastBoss, "", pFrame);
local lastboss = AtlasLoot.db.profile.LastBoss;
if AtlasLoot_IsLootTableAvailable(lastboss[2]) then
AtlasLoot_ShowItemsFrame(lastboss[1], lastboss[2], lastboss[3], lastboss[4], lastboss[5]);
else
AtlasLoot_ShowBossLoot("EmptyTable", AL["Select a Loot Table..."], pFrame);
AtlasLoot_ShowItemsFrame("EmptyTable", "",AL["Select a Loot Table..."], pFrame);
end
end
@@ -156,384 +106,66 @@ When we close the loot browser, re-bind the item table to Atlas
and close all Dewdrop menus
]]
function AtlasLootDefaultFrame_OnHide()
if AtlasFrame then
AtlasLoot_SetupForAtlas();
end
AtlasLoot_Dewdrop:Close(1);
AtlasLoot_DewdropSubMenu:Close(1);
AtlasLoot_DewdropExpansionMenu:Close(1);
end
function AtlasLoot_DewDropSubMenu2Click(raidtablename, itemID, itemColour)
if ATLASLOOT_FILTER_ENABLE == true then --used to refresh loottable when filter is enabled
AtlasLoot_FilterEnableButton()
ReEnableFilter = true
end
-- gets itemID reference
AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, itemColour)
--Show the select loot table
if type(itemID) ~= "number" and itemID:match("=ex=") then
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refresh[1], AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[3], AtlasLootItemsFrame.refresh[4]);
else
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]);
end
--Set text for difficulty
AtlasLootDefaultFrame_SelectedTable2:SetText(DropTablename);
AtlasLootDefaultFrame_SelectedTable2:Show();
AtlasLoot_DewdropSubMenu2:Close(1);
if ReEnableFilter then --used to refresh loottable when filter is enabled
AtlasLoot_FilterEnableButton()
function AtlasLoot_DewdropExpansionMenuClick(expansion, name)
AtlasLootDefaultFrame_ExpansionMenu:SetText(name);
AtlasLoot_DewdropExpansionMenu:Close(1);
AtlasLoot_Expac = expansion;
if AltasLoot_CurrentTable then
local tablename = AltasLoot_CurrentTable .. AtlasLoot_Expac;
AtlasLoot_IsLootTableAvailable(tablename,AtlasLoot_SubMenus[tablename].Module);
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
AtlasLoot_DewdropSubMenuRegister(AtlasLoot_SubMenus[tablename]);
end
end
function AtlasLoot_DifficultyAtlasClick(raidtablename, itemID, itemColour)
if ATLASLOOT_FILTER_ENABLE == true then --used to refresh loottable when filter is enabled
AtlasLoot_FilterEnableButton()
ReEnableFilter = true
end
-- gets itemID reference
AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, itemColour)
--Show the select loot table
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]);
--Set text for difficulty
AtlasLootItemsFrame_DifficultyAtlasButton:SetText(DropTablename);
AtlasLoot_DifficultyAtlas:Close(1);
if ReEnableFilter then --used to refresh loottable when filter is enabled
AtlasLoot_FilterEnableButton()
end
end
function AtlasLoot_DifficultyDisable() --Disables Difficulty Menu
isTablereference = false
notPattern = false
isTableExpansion = false;
AtlasLootItemsFrame_DifficultyAtlasButton:Hide();
AtlasLootItemsFrame_DifficultyAtlasButton:Disable();
AtlasLoot_DifficultyAtlas:Unregister(AtlasLootItemsFrame_DifficultyAtlasButton);
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootItemsFrame_DifficultyAtlasButton:SetText("Select Difficulty");
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
DewDrop2Enable = false
SelectedTable2TextSet = false
end
function AtlasLoot_DifficultyEnable(dataID, dataSource) --Enables Difficulty Menu
if not AtlasLoot_Difficulty[dataSource[dataID].Type] then return end
if AtlasMapMenu == true then
AtlasLootItemsFrame_DifficultyAtlasButton:Show();
AtlasLootItemsFrame_DifficultyAtlasButton:Enable();
AtlasLoot_DifficultyAtlas:Unregister(AtlasLootItemsFrame_DifficultyAtlasButton);
AtlasLoot_DifficultyAtlasRegister(AtlasLoot_Difficulty[dataSource[dataID].Type]);
if SelectedTable2TextSet == false then
AtlasLootItemsFrame_DifficultyAtlasButton:SetText(AtlasLoot_Difficulty[dataSource[dataID].Type][1][1][1])
end
SelectedTable2TextSet = true
else
AtlasLootDefaultFrame_SubMenu2:Enable();
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLoot_DewdropSubMenu2Register(AtlasLoot_Difficulty[dataSource[dataID].Type]);
if SelectedTable2TextSet == false then
AtlasLootDefaultFrame_SelectedTable2:SetText(AtlasLoot_Difficulty[dataSource[dataID].Type][1][1][1])
end
AtlasLootDefaultFrame_SelectedTable2:Show();
SelectedTable2TextSet = true
end
end
function AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, itemColour)
isTablereference = false;
notPattern = false;
isTableExpansion = false;
if tonumber(itemID) or itemID:match("Bloodforged") then --used in itemID search feature for itemID database
ItemindexID = itemID;
itemDefaultColour = itemColour;
elseif itemID:match("=s=") then -- =s= infront of a table reference will make it show a normal crafting item instead of a crafting pattern
tableReference = gsub(gsub(itemID, "=s=",""), "Normal","");
isTablereference = true;
notPattern = true;
ItemindexID = "";
elseif itemID:match("=ex=") then
tableReference = gsub(itemID, "=ex=", "");
isTableExpansion = true;
ItemindexID = "";
else
tableReference = gsub(gsub(itemID, "=s=",""), "Normal","");
isTablereference = true;
ItemindexID = "";
end
DropTablename = raidtablename;
end
function AtlasLoot_DewdropSubMenu2Register(loottable)
AtlasLoot_DewdropSubMenu2:Register(AtlasLootDefaultFrame_SubMenu2,
--[[
AtlasLoot_DewdropExpansionMenuRegister():
Adds expansion menu from expansion table in mainmenus.lua
]]
function AtlasLoot_DewdropExpansionMenuRegister()
AtlasLoot_DewdropExpansionMenu:Register(AtlasLootDefaultFrame_ExpansionMenu,
'point', function(parent)
return "TOP", "BOTTOM"
end,
'children', function(level, value)
if level == 1 then
if AtlasLoot_Difficulty then
for k,v in ipairs(loottable) do
--If a link to show a submenu
if (type(v[1]) == "table") and (type(v[1][1]) == "string") then
if AtlasLoot_ExpansionMenu then
for k,v in ipairs(AtlasLoot_ExpansionMenu) do
if type(v) == "table" then
--If a link to show a expansion menu
local checked = false;
if v[1][3] == "Submenu" then
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1][1],
AtlasLoot_Dewdrop:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1][1],
'arg2', v[1][2],
'arg3', v[1][3],
'arg4', v[1][4],
'func', AtlasLoot_DewdropExpansionMenuClick,
'arg1', v[2],
'arg2', v[1],
'arg3', k,
'notCheckable', true
)
elseif v[1][1] ~= "" then
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1][1],
'arg2', v[1][2],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
end
else
local lock=0;
--If an entry linked to a subtable
for i,j in pairs(v) do
if lock==0 then
AtlasLoot_DewdropSubMenu2:AddLine(
'text', i,
'textR', 1,
'textG', 0.82,
'textB', 0,
'hasArrow', true,
'value', j,
'notCheckable', true
)
lock=1;
end
end
end
end
end
--Close button
AtlasLoot_DewdropSubMenu2:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DewdropSubMenu2:Close() end,
'notCheckable', true
)
elseif level == 2 then
if value then
for k,v in ipairs(value) do
if type(v) == "table" then
if (type(v[1]) == "string") then
local checked = false;
--If an entry to show a submenu
if v[4] == "Header" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1],
'textR', 0.2,
'textG', 0.82,
'textB', 0.5,
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
elseif v[3] == "Submenu" then
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
else
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
end
end
end
end
end
AtlasLoot_DewdropSubMenu2:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DewdropSubMenu2:Close() end,
'func', function() AtlasLoot_Dewdrop:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
end
function AtlasLoot_DifficultyAtlasRegister(loottable)
AtlasLoot_DifficultyAtlas:Register(AtlasLootItemsFrame_DifficultyAtlasButton,
'point', function(parent)
return "BOTTOM", "TOP"
end,
'children', function(level, value)
if level == 1 then
if AtlasLoot_Difficulty then
for k,v in ipairs(loottable) do
--If a link to show a submenu
if (type(v[1]) == "table") and (type(v[1][1]) == "string") then
local checked = false;
if v[1][3] == "Submenu" then
AtlasLoot_DifficultyAtlas:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DifficultyAtlasClick,
'arg1', v[1][1],
'arg2', v[1][2],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
elseif v[1][1] ~= "" then
AtlasLoot_DifficultyAtlas:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DifficultyAtlasClick,
'arg1', v[1][1],
'arg2', v[1][2],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
end
else
local lock=0;
--If an entry linked to a subtable
for i,j in pairs(v) do
if lock==0 then
AtlasLoot_DifficultyAtlas:AddLine(
'text', i,
'textR', 1,
'textG', 0.82,
'textB', 0,
'hasArrow', true,
'value', j,
'notCheckable', true
)
lock=1;
end
end
end
end
end
--Close button
AtlasLoot_DifficultyAtlas:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DifficultyAtlas:Close() end,
'notCheckable', true
)
elseif level == 2 then
if value then
for k,v in ipairs(value) do
if type(v) == "table" then
if (type(v[1]) == "string") then
local checked = false;
--If an entry to show a submenu
if v[4] == "Header" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1],
'textR', 0.2,
'textG', 0.82,
'textB', 0.5,
'func', AtlasLoot_DifficultyAtlasClick,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
elseif v[3] == "Submenu" then
AtlasLoot_DifficultyAtlas:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DifficultyAtlasClick,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
else
AtlasLoot_DifficultyAtlas:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DifficultyAtlasClick,
'arg1', v[1],
'arg2', v[2],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
end
end
end
end
end
AtlasLoot_DifficultyAtlas:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DifficultyAtlas:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
end
--[[
AtlasLoot_DewdropSubMenuRegister(loottable):
loottable - Table defining the sub menu
@@ -545,27 +177,31 @@ function AtlasLoot_DewdropSubMenuRegister(loottable)
return "TOP", "BOTTOM"
end,
'children', function(level, value)
if level == 1 then
for k,v in pairs(loottable) do
if v[1] == "" then
AtlasLoot_DewdropSubMenu:AddLine(
'text', AtlasLoot_TableNames[v[2]][1],
'func', AtlasLoot_DewDropSubMenuClick,
'arg1', v[2],
'arg2', v[1],
'notCheckable', true
)
else
if type(v) == "table" then
if v[3] == "Header" then
AtlasLoot_DewdropSubMenu:AddLine(
'text', v[1],
'textR', 0.2,
'textG', 0.82,
'textB', 0.5,
'func', AtlasLoot_DewDropSubMenuClick,
'arg1', v[2],
'arg2', v[1],
'notCheckable', true
)
else
AtlasLoot_DewdropSubMenu:AddLine(
'text', AtlasLoot_Data[v[2]].Name,
'func', AtlasLoot_DewDropSubMenuClick,
'arg1', v[2],
'arg2', AtlasLoot_Data[v[2]].Name,
'notCheckable', true
)
end
end
end
--Close button
AtlasLoot_DewdropSubMenu:AddLine(
'text', AL["Close Menu"],
'textR', 0,
@@ -574,7 +210,6 @@ function AtlasLoot_DewdropSubMenuRegister(loottable)
'func', function() AtlasLoot_DewdropSubMenu:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
@@ -590,57 +225,21 @@ function AtlasLoot_DewdropRegister()
return "TOP", "BOTTOM"
end,
'children', function(level, value)
if level == 1 then
if AtlasLoot_DewDropDown then
for k,v in ipairs(AtlasLoot_DewDropDown) do
if AtlasLoot_Modules then
for k,v in ipairs(AtlasLoot_Modules) do
--If a link to show a submenu
if (type(v[1]) == "table") and (type(v[1][1]) == "string") then
local checked = false;
if v[1][3] == "Submenu" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1][1],
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'arg1', v[2],
'arg2', v[1],
'arg3', k,
'notCheckable', true
)
elseif v[1][3] == "Table" and v[1][1] ~= "" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
end
else
local lock=0;
--If an entry linked to a subtable
for i,j in pairs(v) do
if lock==0 then
AtlasLoot_Dewdrop:AddLine(
'text', i,
'textR', 1,
'textG', 0.82,
'textB', 0,
'hasArrow', true,
'value', j,
'notCheckable', true
)
lock=1;
end
end
end
end
end
--Close button
@@ -652,164 +251,6 @@ function AtlasLoot_DewdropRegister()
'func', function() AtlasLoot_Dewdrop:Close() end,
'notCheckable', true
)
elseif level == 2 then
if value then
for k,v in ipairs(value) do
if type(v) == "table" then
if (type(v[1]) == "table") and (type(v[1][1]) == "string") then
local checked = false;
--If an entry to show a submenu
if v[1][4] == "Header" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1][1],
'textR', 0.2,
'textG', 0.82,
'textB', 0.5,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
elseif v[1][3] == "Submenu" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
--An entry to show a specific loot page
elseif v[1][3] == "Table" and v[1][1] == "" then
AtlasLoot_Dewdrop:AddLine(
'text', AtlasLoot_TableNames[v[1][2]][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
else
AtlasLoot_Dewdrop:AddLine(
'text', v[1][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[1][2],
'arg2', v[1][1],
'arg3', v[1][3],
'arg4', v[1][4],
'notCheckable', true
)
end
else
local lock=0;
--Entry to link to a sub table
for i,j in pairs(v) do
if lock==0 then
AtlasLoot_Dewdrop:AddLine(
'text', i,
'textR', 1,
'textG', 0.82,
'textB', 0,
'hasArrow', true,
'value', j,
'notCheckable', true
)
lock=1;
end
end
end
end
end
end
AtlasLoot_Dewdrop:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_Dewdrop:Close() end,
'notCheckable', true
)
elseif level == 3 then
--Essentially the same as level == 2
if value then
for k,v in pairs(value) do
if type(v[1]) == "string" then
local checked = false;
if v[3] == "Submenu" then
AtlasLoot_Dewdrop:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[2],
'arg2', v[1],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
elseif v[3] == "Table" and v[1] == "" then
AtlasLoot_Dewdrop:AddLine(
'text', AtlasLoot_TableNames[v[2]][1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[2],
'arg2', v[1],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
else
AtlasLoot_Dewdrop:AddLine(
'text', v[1],
'textR', 1,
'textG', 0.82,
'textB', 0,
'func', AtlasLoot_DewDropClick,
'arg1', v[2],
'arg2', v[1],
'arg3', v[3],
'arg4', v[4],
'notCheckable', true
)
end
elseif type(v) == "table" then
AtlasLoot_Dewdrop:AddLine(
'text', k,
'textR', 1,
'textG', 0.82,
'textB', 0,
'hasArrow', true,
'value', v,
'notCheckable', true
)
end
end
end
AtlasLoot_Dewdrop:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_Dewdrop:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
@@ -828,7 +269,7 @@ function AtlasLoot_SetNewStyle(style)
"AtlasLootDefaultFrame_LoadModules",
"AtlasLootDefaultFrame_Menu",
"AtlasLootDefaultFrame_SubMenu",
"AtlasLootDefaultFrame_SubMenu2",
"AtlasLootDefaultFrame_ExpansionMenu",
"AtlasLootDefaultFrame_Preset1",
"AtlasLootDefaultFrame_Preset2",
"AtlasLootDefaultFrame_Preset3",
@@ -0,0 +1,438 @@
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
--Main AtlasLoot Frame
local mainframe = CreateFrame("FRAME", "AtlasLootDefaultFrame", UIParent, nil);
mainframe:SetPoint("CENTER",0,0);
mainframe:SetSize(880,690);
mainframe:EnableMouse(true);
mainframe:SetMovable(1);
mainframe:SetBackdropColor(0.75,0,0,0.75);
mainframe:RegisterForDrag("LeftButton");
mainframe:SetMovable(true);
mainframe:EnableKeyboard(true)
mainframe:Hide()
mainframe:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
tile = "true",
insets = {left = "11", right = "12", top = "12", bottom = "11"},
edgeSize = 32,
titleSize = 32,
});
mainframe:SetScript("OnShow", function()
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
getglobal("AtlasLootDefaultFrame_Notice"):SetText(AL["This is a loot browser only. To view maps as well, install either Atlas or Alphamap."]);
AtlasLootDefaultFrame_OnShow();
end);
mainframe:SetScript("OnHide", function() AtlasLootDefaultFrame_OnHide() end)
mainframe:SetScript("OnDragStart", function(self)
self:StartMoving();
self.isMoving = true;
end);
mainframe:SetScript("OnDragStop", function(self)
self:StopMovingOrSizing();
self.isMoving = false;
end);
mainframe.header = mainframe:CreateTexture("AtlasLootDefaultFrameHeader","ARTWORK");
mainframe.header:SetSize(425,64);
mainframe.header:SetPoint("TOP",0,12);
mainframe.header:SetTexture("Interface\\DialogFrame\\UI-DialogBox-Header");
mainframe.header.txt = mainframe:CreateFontString(nil,"ARTWORK","GameFontNormal");
mainframe.header.txt:SetPoint("TOP",0,-1);
mainframe.header.txt:SetText(ATLASLOOT_VERSION);
mainframe.header.notice = mainframe:CreateFontString("AtlasLootDefaultFrame_Notice","ARTWORK","GameFontNormal");
mainframe.header.notice:SetPoint("BOTTOM",0,17);
--Close Button
local closebtn = CreateFrame("Button", "AtlasLootDefaultFrame_CloseButton", AtlasLootDefaultFrame, "UIPanelCloseButton");
closebtn:SetPoint("TOPRIGHT", AtlasLootDefaultFrame, "TOPRIGHT",-10,-10);
closebtn:SetScript("OnClick", function() AtlasLootDefaultFrame:Hide() end);
closebtn:SetScript("OnShow", function(self) self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 ) end);
--Load All Addon Moduels Button
local loadModulebtn = CreateFrame("Button", "AtlasLootDefaultFrame_LoadModules", AtlasLootDefaultFrame, "OptionsButtonTemplate");
loadModulebtn:SetSize(105,20);
loadModulebtn:SetPoint("TOPRIGHT", AtlasLootDefaultFrame, "TOPRIGHT",-38,-15);
loadModulebtn:SetText(AL["Load Modules"]);
loadModulebtn:SetScript("OnClick", function() AtlasLoot_LoadAllModules() end);
loadModulebtn:SetScript("OnShow", function(self)
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--Options Button
local optionsbtn = CreateFrame("Button", "AtlasLootDefaultFrame_Options", AtlasLootDefaultFrame, "OptionsButtonTemplate");
optionsbtn:SetSize(105,20);
optionsbtn:SetPoint("TOPLEFT", AtlasLootDefaultFrame, "TOPLEFT",40,-15);
optionsbtn:SetText(AL["Options"]);
optionsbtn:SetScript("OnClick", function() AtlasLootOptions_Toggle() end);
optionsbtn:SetScript("OnShow", function(self)
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--Moduel Menu Button
local menubtn = CreateFrame("Button", "AtlasLootDefaultFrame_Menu", AtlasLootDefaultFrame, "OptionsButtonTemplate");
menubtn:SetSize(179,25);
menubtn:SetPoint("TOPLEFT", AtlasLootDefaultFrame, "TOPLEFT",38,-55);
menubtn.Lable = menubtn:CreateFontString("AtlasLootDefaultFrame_SelectedCategory", "OVERLAY","GameFontNormal")
menubtn.Lable:SetPoint("TOP",menubtn,"BOTTOM",0,37);
menubtn.Lable:SetText("Select Module");
menubtn.Lable:Show();
menubtn:SetText(AL["Select Loot Table"]);
menubtn:SetScript("OnClick", function(self)
if AtlasLoot_Dewdrop:IsOpen() then
AtlasLoot_Dewdrop:Close();
else
AtlasLoot_Dewdrop:Open(self);
end
end);
menubtn:SetScript("OnShow", function(self)
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--SubMenu Button
local submenubtn = CreateFrame("Button", "AtlasLootDefaultFrame_SubMenu", AtlasLootDefaultFrame, "OptionsButtonTemplate");
submenubtn:SetSize(179,25);
submenubtn:SetPoint("LEFT", "AtlasLootDefaultFrame_Menu", "RIGHT",5,0);
submenubtn.Lable = submenubtn:CreateFontString("AtlasLootDefaultFrame_SelectedTable", "OVERLAY","GameFontNormal")
submenubtn.Lable:SetPoint("TOP",submenubtn,"BOTTOM",0,37);
submenubtn.Lable:SetText("Select Subcategory");
submenubtn.Lable:Show();
submenubtn:SetText(AL["Select Sub-Table"]);
submenubtn:SetScript("OnClick", function(self)
if AtlasLoot_DewdropSubMenu:IsOpen() then
AtlasLoot_DewdropSubMenu:Close();
else
AtlasLoot_DewdropSubMenu:Open(self);
end
end);
submenubtn:SetScript("OnShow", function(self)
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--Expansion Menu Button
local expansionmenubtn = CreateFrame("Button", "AtlasLootDefaultFrame_ExpansionMenu", AtlasLootDefaultFrame, "OptionsButtonTemplate");
expansionmenubtn:SetSize(179,25);
expansionmenubtn:SetPoint("LEFT", "AtlasLootDefaultFrame_SubMenu", "RIGHT",5,0);
expansionmenubtn:SetText(AtlasLoot_ExpansionMenu[GetAccountExpansionLevel()+1][1]);
expansionmenubtn.Lable = expansionmenubtn:CreateFontString("AtlasLootDefaultFrame_SelectedTable2", "OVERLAY","GameFontNormal")
expansionmenubtn.Lable:SetPoint("TOP",expansionmenubtn,"BOTTOM",0,37);
expansionmenubtn.Lable:SetText("Select Expansion");
expansionmenubtn.Lable:Show();
expansionmenubtn:SetScript("OnClick", function(self)
if AtlasLoot_DewdropExpansionMenu:IsOpen() then
AtlasLoot_DewdropExpansionMenu:Close();
else
AtlasLoot_DewdropExpansionMenu:Open(self);
end
end);
expansionmenubtn:SetScript("OnShow", function(self)
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--Loot Background
local lootbground = CreateFrame("Frame", "AtlasLootDefaultFrame_LootBackground", AtlasLootDefaultFrame);
lootbground:SetSize(540,515);
lootbground:SetPoint("BOTTOMLEFT", AtlasLootDefaultFrame, "BOTTOMLEFT",40,90);
lootbground.Back = lootbground:CreateTexture("AtlasLootDefaultFrame_LootBackground_Back", "BACKGROUND");
lootbground.Back:SetAllPoints();
lootbground.Back:SetPoint("TOPLEFT","AtlasLootDefaultFrame_LootBackground","TOPLEFT");
lootbground.Back:SetPoint("BOTTOMRIGHT","AtlasLootDefaultFrame_LootBackground","BOTTOMRIGHT");
lootbground:SetBackdropColor(0, 0, 0.5, 0.5);
--Wish List Button
local wishbtn = CreateFrame("Button", "AtlasLootDefaultFrameWishListButton", AtlasLootDefaultFrame, "OptionsButtonTemplate");
wishbtn:SetPoint("BOTTOMLEFT", "AtlasLootDefaultFrame", "BOTTOMLEFT", 40, 63);
wishbtn:SetSize(105,20);
wishbtn:SetScript("OnClick", function(self)AtlasLoot_ShowWishListDropDown("","","","","",self,true) end);
wishbtn:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText(AL["Wishlist"]);
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
--Quick Look Buttons
local function presetcreate(preset,num)
preset:SetSize(105,20);
preset:SetScript("OnEnter", function(self)
if self:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 5);
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][num][3]);
GameTooltip:Show();
end
end);
preset:SetScript("OnLeave", function()
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
end);
preset:SetScript("OnClick", function()
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][num][1]) then
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][2], pFrame, AtlasLootCharDB["QuickLooks"][num][5])
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][2], AtlasLootCharDB["QuickLooks"][num][3], pFrame, AtlasLootCharDB["QuickLooks"][num][5]);
end
end);
preset:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText(AL["QuickLook"].." "..num);
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][num]) or (not AtlasLootCharDB["QuickLooks"][num][1])) or (AtlasLootCharDB["QuickLooks"][num][1]==nil) then
self:Disable();
end
end);
end
--QuickLook Button 1
local preset1 = CreateFrame("Button", "AtlasLootDefaultFrame_Preset1", AtlasLootDefaultFrame, "OptionsButtonTemplate");
presetcreate(preset1,1);
preset1:SetPoint("LEFT", AtlasLootDefaultFrameWishListButton, "RIGHT", 5, 0);
--QuickLook Button 2
local preset2 = CreateFrame("Button", "AtlasLootDefaultFrame_Preset2", AtlasLootDefaultFrame, "OptionsButtonTemplate");
presetcreate(preset2,2);
preset2:SetPoint("LEFT", "AtlasLootDefaultFrame_Preset1", "RIGHT", 5, 0);
--QuickLook Button 3
local preset3 = CreateFrame("Button", "AtlasLootDefaultFrame_Preset3", AtlasLootDefaultFrame, "OptionsButtonTemplate");
presetcreate(preset3,3);
preset3:SetPoint("LEFT", "AtlasLootDefaultFrame_Preset2", "RIGHT", 5, 0);
--QuickLook Button 4
local preset4 = CreateFrame("Button", "AtlasLootDefaultFrame_Preset4", AtlasLootDefaultFrame, "OptionsButtonTemplate");
presetcreate(preset4,4);
preset4:SetPoint("LEFT", "AtlasLootDefaultFrame_Preset3", "RIGHT", 5, 0);
--Search Edit Box
local searchbox = CreateFrame("EditBox","AtlasLootDefaultFrameSearchBox",AtlasLootDefaultFrame,"InputBoxTemplate");
searchbox:SetSize(190,32);
searchbox:SetMaxLetters(100);
searchbox:SetAutoFocus(false);
searchbox:SetPoint("TOPLEFT",AtlasLootDefaultFrameWishListButton,"BOTTOMLEFT",7,-3)
searchbox:SetTextInsets(0, 8, 0, 0);
searchbox:SetScript("OnEnterPressed", function(self)
AtlasLoot:Search(self:GetText());
self:ClearFocus();
end)
local fstring = searchbox:CreateFontString("AtlasLootDefaultFrameSearchString", "ARTWORK", "GameFontNormal");
--Search Button
local searchbtn = CreateFrame("Button","AtlasLootDefaultFrameSearchButton",AtlasLootDefaultFrame,"UIPanelButtonTemplate2");
searchbtn:SetSize(69,32);
searchbtn:SetPoint("LEFT","AtlasLootDefaultFrameSearchBox","RIGHT",2,0);
searchbtn:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText(AL["Search"]);
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
searchbtn:SetScript("OnClick", function()
AtlasLoot:Search(AtlasLootDefaultFrameSearchBox:GetText());
AtlasLootDefaultFrameSearchBox:ClearFocus();
end);
--Search Options Button
local searchopt = CreateFrame("Button", "AtlasLootDefaultFrameSearchOptionsButton", AtlasLootDefaultFrameSearchButton);
searchopt:SetSize(28,28);
searchopt:SetPoint("LEFT","AtlasLootDefaultFrameSearchButton","RIGHT",-5,0);
searchopt:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up");
searchopt:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down");
searchopt:SetDisabledTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Disabled");
searchopt:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight","ADD");
searchopt:SetScript("OnShow", function(self) self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 ) end);
searchopt:SetScript("OnClick", function(self) AtlasLoot:ShowSearchOptions(self) end)
--Clear Search Button
local searchclear = CreateFrame("Button","AtlasLootDefaultFrameSearchClearButton",AtlasLootDefaultFrameSearchBox,"UIPanelButtonTemplate2");
searchclear:SetSize(58,32);
searchclear:SetPoint("LEFT",AtlasLootDefaultFrameSearchOptionsButton,"RIGHT",-2,0);
searchclear:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText(AL["Clear"]);
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
searchclear:SetScript("OnClick", function()
AtlasLootDefaultFrameSearchBox:SetText("");
AtlasLootDefaultFrameSearchBox:ClearFocus();
end);
--Last Result Button
local lastresult = CreateFrame("Button","AtlasLootDefaultFrameLastResultButton",AtlasLootDefaultFrameSearchBox,"UIPanelButtonTemplate2");
lastresult:SetSize(100,32);
lastresult:SetPoint("LEFT",AtlasLootDefaultFrameSearchClearButton,"RIGHT",1,0);
lastresult:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText(AL["Last Result"]);
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end);
lastresult:SetScript("OnClick", function() AtlasLoot:ShowSearchResult() end);
-- Advanced Search Button
local advSearch = CreateFrame("Button","AtlasLootDefaultFrameAdvancedSearchButton", AtlasLootDefaultFrame,"UIPanelButtonTemplate2");
advSearch:SetSize(95,32);
advSearch:SetPoint("LEFT",AtlasLootDefaultFrameLastResultButton,"RIGHT",2);
advSearch:SetScript("OnShow", function(self)
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
self:SetText("Advanced");
self:SetFrameLevel( (self:GetParent()):GetFrameLevel() + 1 );
end)
advSearch:SetScript("OnClick", function()
AtlasLoot_AdvancedSearchShow();
AtlasLootDefaultFrameSearchBox:ClearFocus();
end)
---------------------ScrollFrame----------------------------------
local ROW_HEIGHT = 16; -- How tall is each row?
local MAX_ROWS = 5; -- How many rows can be shown at once?
local scrollFrame = CreateFrame("Frame", "Atlasloot_Difficulty_ScrollFrame", AtlasLootDefaultFrame);
scrollFrame:EnableMouse(true);
scrollFrame:SetSize(265, ROW_HEIGHT * MAX_ROWS + 16);
scrollFrame:SetPoint("LEFT","AtlasLootDefaultFrame_ExpansionMenu","RIGHT",0,-39);
scrollFrame:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background", tile = true, tileSize = 16,
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
});
function AtlasLoot_GetNumOfRows(tablename)
local num = 1
if tablename then
for n in ipairs(tablename) do
num = num + 1
end
else
num = 0
end
return num
end
function AtlasLootDefaultFrame_ScrollFrameUpdate()
local maxValue = AtlasLoot_GetNumOfRows(AtlasLoot_Difficulty[AtlasLoot_CurrentType])
FauxScrollFrame_Update(scrollFrame.scrollBar, maxValue, MAX_ROWS, ROW_HEIGHT);
local offset = FauxScrollFrame_GetOffset(scrollFrame.scrollBar);
for i = 1, MAX_ROWS do
local value = i + offset
scrollFrame.rows[i]:SetChecked(false);
scrollFrame.rows[i]:SetHighlightTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
if value <= maxValue and AtlasLoot_Difficulty[AtlasLoot_CurrentType][value] then
local row = scrollFrame.rows[i]
row:SetText("|cffFFd200"..AtlasLoot_Difficulty[AtlasLoot_CurrentType][value][1]);
row.itemIndex = AtlasLoot_Difficulty[AtlasLoot_CurrentType][value][2];
if row.itemIndex == ItemindexID then
row:SetChecked(true);
end
row:Show()
else
scrollFrame.rows[i]:Hide()
end
end
end
local scrollSlider = CreateFrame("ScrollFrame","AtlasLootDefaultFrameScroll",Atlasloot_Difficulty_ScrollFrame,"FauxScrollFrameTemplate");
scrollSlider:SetPoint("TOPLEFT", 0, -8)
scrollSlider:SetPoint("BOTTOMRIGHT", -30, 8)
scrollSlider:SetScript("OnVerticalScroll", function(self, offset)
self.offset = math.floor(offset / ROW_HEIGHT + 0.5)
AtlasLootDefaultFrame_ScrollFrameUpdate()
end)
scrollSlider:SetScript("OnShow", function()
AtlasLootDefaultFrame_ScrollFrameUpdate()
end)
scrollFrame.scrollBar = scrollSlider
local rows = setmetatable({}, { __index = function(t, i)
local row = CreateFrame("CheckButton", "$parentRow"..i, scrollFrame)
row:SetSize(150, ROW_HEIGHT)
row:SetNormalFontObject(GameFontHighlightLeft)
row:SetCheckedTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
row:SetScript("OnClick", function()
ItemindexID = row.itemIndex;
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4], AtlasLootItemsFrame.refreshOri[5]);
AtlasLootDefaultFrame_ScrollFrameUpdate();
end)
if i == 1 then
row:SetPoint("TOPLEFT", scrollFrame, 8, -8)
else
row:SetPoint("TOPLEFT", scrollFrame.rows[i-1], "BOTTOMLEFT")
end
rawset(t, i, row)
return row
end })
scrollFrame.rows = rows
local MAX_ROWS2 = 26; -- How many rows can be shown at once?
--------------------Subtable Frame--------------------
local subtableFrame = CreateFrame("Frame", "Atlasloot_SubTableFrame", AtlasLootDefaultFrame);
subtableFrame:EnableMouse(true);
subtableFrame:SetSize(265, ROW_HEIGHT * MAX_ROWS2 + 23);
subtableFrame:SetPoint("LEFT","Atlasloot_Difficulty_ScrollFrame","LEFT",0,-273);
subtableFrame:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background", tile = true, tileSize = 16,
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
});
function AtlasLootDefaultFrame_SubTableScrollFrameUpdate(tablename, dataSource, pFrame, currenttablenum)
if dataSource ~= nil then
local maxValue = AtlasLoot_GetNumOfRows(dataSource[tablename]);
subtableFrame.tablename = tablename;
FauxScrollFrame_Update(subtableFrame.scrollBar, maxValue, MAX_ROWS2, ROW_HEIGHT);
local offset = FauxScrollFrame_GetOffset(subtableFrame.scrollBar);
for i = 1, MAX_ROWS2 do
local value = i + offset
subtableFrame.rows[i]:SetChecked(false);
subtableFrame.rows[i]:SetHighlightTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
if value <= maxValue and dataSource[tablename][value] then
local row = subtableFrame.rows[i]
row:SetText("|cffFFd200"..dataSource[tablename][value].Name);
row.tablenum = value;
row.dataSource = dataSource;
row.tablename = tablename;
row.pFrame = pFrame;
if currenttablenum == value then
row:SetChecked(true);
end
row:Show();
else
subtableFrame.rows[i]:Hide()
end
end
end
end
local scrollSlider2 = CreateFrame("ScrollFrame","AtlasLootDefaultFrameSubTableScroll",Atlasloot_SubTableFrame,"FauxScrollFrameTemplate");
scrollSlider2:SetPoint("TOPLEFT", 0, -8)
scrollSlider2:SetPoint("BOTTOMRIGHT", -30, 8)
scrollSlider2:SetScript("OnVerticalScroll", function(self, offset)
self.offset = math.floor(offset / ROW_HEIGHT + 0.5)
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(subtableFrame.tablename);
end)
scrollSlider2:SetScript("OnShow", function()
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(subtableFrame.tablename);
end)
subtableFrame.scrollBar = scrollSlider2
local rows2 = setmetatable({}, { __index = function(t, i)
local row = CreateFrame("CheckButton", "$parentRow"..i, subtableFrame)
row:SetSize(150, ROW_HEIGHT)
row:SetNormalFontObject(GameFontHighlightLeft)
row:SetCheckedTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
row:SetScript("OnClick", function()
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(row.tablename, row.dataSource, row.pFrame, row.tablenum);
AtlasLoot_ShowItemsFrame(row.tablename, row.dataSource, row.dataSource[row.tablename][row.tablenum].Name, row.pFrame, row.tablenum);
AtlasLoot.db.profile.LastBoss = {row.tablename, row.dataSource, row.dataSource[row.tablename][row.tablenum].Name, row.pFrame, row.tablenum};
end)
if i == 1 then
row:SetPoint("TOPLEFT", subtableFrame, 8, -8)
else
row:SetPoint("TOPLEFT", subtableFrame.rows[i-1], "BOTTOMLEFT")
end
rawset(t, i, row)
return row
end })
subtableFrame.rows = rows2
-959
View File
@@ -1,959 +0,0 @@
--[[
DewDropDown.lua
Defines the table listings for the dropdown lists.
]]
--Invoke all libraries
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
local BabbleBoss = AtlasLoot_GetLocaleLibBabble("LibBabble-Boss-3.0")
local BabbleFaction = AtlasLoot_GetLocaleLibBabble("LibBabble-Faction-3.0")
local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
local BabbleInventory = AtlasLoot_GetLocaleLibBabble("LibBabble-Inventory-3.0")
--This is a multi-layer table defining the main loot listing.
--Entries have the text to display, loot table or sub table to link to and if the link is to a loot table or sub table
AtlasLoot_DewDropDown = {
[1] = {
[AL["Classic Instances"]] = {
[1] = {
{ "Raids:", "OldKeys", "Table", "Header" },
},
[2] = {
{ BabbleZone["Molten Core"], "MoltenCore", "Submenu" },
},
[3] = {
{ BabbleZone["Zul'Gurub"], "ZulGurub", "Submenu" },
},
[4] = {
{ BabbleZone["Onyxia's Lair"], "Onyxia60", "Table" },
},
[5] = {
{ BabbleZone["Blackwing Lair"], "BlackwingLair", "Submenu" },
},
[6] = {
{ BabbleZone["Ruins of Ahn'Qiraj"], "RuinsofAQ", "Submenu" },
},
[7] = {
{ BabbleZone["Temple of Ahn'Qiraj"], "TempleofAQ", "Submenu" },
},
[8] = {
{ BabbleZone["Naxxramas"], "Naxxramas60", "Submenu" },
},
[9] = {
{ "Dungeons:", "OldKeys", "Table", "Header" },
},
[10] = {
{ BabbleZone["Blackfathom Deeps"], "BlackfathomDeeps1", "Table" },
},
[11] = {
{ BabbleZone["Blackrock Depths"], "BlackrockDepths", "Submenu" },
},
[12] = {
{ BabbleZone["Lower Blackrock Spire"], "LowerBlackrock", "Submenu" },
},
[13] = {
{ BabbleZone["Upper Blackrock Spire"], "UpperBlackrock", "Submenu" },
},
[14] = {
{ BabbleZone["The Deadmines"], "TheDeadmines1", "Table" },
},
[15] = {
[BabbleZone["Dire Maul"]] = {
{ BabbleZone["Dire Maul (East)"], "DireMaulEast", "Submenu" },
{ BabbleZone["Dire Maul (West)"], "DireMaulWest", "Submenu" },
{ BabbleZone["Dire Maul (North)"], "DireMaulNorth", "Submenu" },
},
},
[16] = {
{ BabbleZone["Gnomeregan"], "Gnomeregan1", "Table" },
},
[17] = {
{ BabbleZone["Maraudon"], "Maraudon1", "Table" },
},
[18] = {
{ BabbleZone["Ragefire Chasm"], "RagefireChasm", "Table" },
},
[19] = {
{ BabbleZone["Razorfen Downs"], "RazorfenDowns1", "Table" },
},
[20] = {
{ BabbleZone["Razorfen Kraul"], "RazorfenKraul1", "Table" },
},
[21] = {
{ BabbleZone["Scarlet Monastery"], "Scarlet Monastery", "Submenu" },
},
[22] = {
{ BabbleZone["Scholomance"], "Scholomance", "Submenu" },
},
[23] = {
{ BabbleZone["Shadowfang Keep"], "ShadowfangKeep1", "Table" },
},
[24] = {
{ BabbleZone["The Stockade"], "TheStockade", "Table" },
},
[25] = {
{ BabbleZone["Stratholme"], "Stratholme", "Submenu" },
},
[26] = {
{ BabbleZone["The Temple of Atal'Hakkar"], "SunkenTemple", "Submenu" },
},
[27] = {
{ BabbleZone["Uldaman"], "Uldaman", "Submenu" },
},
[28] = {
{ BabbleZone["Wailing Caverns"], "WailingCaverns1", "Table" },
},
[29] = {
{ BabbleZone["Zul'Farrak"], "ZulFarrak", "Submenu" },
},
},
},
[2] = {
[AL["BC Instances"]] = {
[1] = {
{ "Raids:", "BCKeys", "Table", "Header" },
},
[2] = {
{ BabbleZone["Karazhan"], "Karazhan", "Submenu" },
},
[3] = {
{ BabbleZone["Gruul's Lair"], "Gruul", "Submenu" },
},
[4] = {
{ BabbleZone["Magtheridon's Lair"], "HCMagtheridon", "Table" },
},
[5] = {
{ BabbleZone["Zul'Aman"], "ZulAman", "Submenu" },
},
[6] = {
{ BabbleZone["Serpentshrine Cavern"], "CFRSerpentshrine", "Submenu" },
},
[7] = {
{ BabbleZone["The Eye"], "TKEye", "Submenu" },
},
[8] = {
{ BabbleZone["Hyjal Summit"], "CoTHyjal", "Submenu" },
},
[9] = {
{ BabbleZone["Black Temple"], "BlackTemple", "Submenu" },
},
[10] = {
{ BabbleZone["Sunwell Plateau"], "SunwellPlateau", "Submenu" },
},
---- Dungeons -----
[11] = {
{ "Dungeons:", "BCKeys", "Table", "Header" },
},
[12] = {
{ BabbleZone["The Arcatraz"], "TKArc", "Submenu" },
},
[13] = {
{ BabbleZone["Auchenai Crypts"], "AuchCrypts", "Submenu" },
},
[14] = {
{ BabbleZone["The Black Morass"], "CoTBlackMorass", "Submenu" },
},
[15] = {
{ BabbleZone["The Blood Furnace"], "HCFurnace", "Submenu" },
},
[16] = {
{ BabbleZone["The Botanica"], "TKBot", "Submenu" },
},
[17] = {
{ BabbleZone["Hellfire Ramparts"], "HCRamparts", "Submenu" },
},
[18] = {
{ BabbleZone["Magisters' Terrace"], "MagistersTerrace", "Submenu" },
},
[19] = {
{ BabbleZone["Mana-Tombs"], "AuchManaTombs", "Submenu" },
},
[20] = {
{ BabbleZone["The Mechanar"], "TKMech", "Submenu" },
},
[21] = {
{ BabbleZone["Old Hillsbrad Foothills"], "CoTOldHillsbrad", "Submenu" },
},
[22] = {
{ BabbleZone["Sethekk Halls"], "AuchSethekk", "Submenu" },
},
[23] = {
{ BabbleZone["Shadow Labyrinth"], "AuchShadowLab", "Submenu" },
},
[24] = {
{ BabbleZone["The Shattered Halls"], "HCShatteredHalls", "Submenu" },
},
[25] = {
{ BabbleZone["The Slave Pens"], "CFRSlavePens", "Submenu" },
},
[26] = {
{ BabbleZone["The Steamvault"], "CFRSteamvault", "Submenu" },
},
[27] = {
{ BabbleZone["The Underbog"], "CFRUnderbog", "Submenu" },
},
},
},
[3] = {
[AL["WotLK Instances"]] = {
[1] = {
{ "Raids:", "WrathKeys", "Table", "Header" },
},
[2] = {
{ BabbleZone["Naxxramas"], "Naxxramas80", "Submenu" },
},
[3] = {
{ BabbleZone["The Obsidian Sanctum"], "Sartharion", "Table" },
},
[4] = {
{ BabbleZone["The Eye of Eternity"], "Malygos", "Table" },
},
[5] = {
{ BabbleZone["Vault of Archavon"], "VaultofArchavon_A", "Submenu" },
},
[6] = {
{ BabbleZone["Ulduar"], "Ulduar", "Submenu" },
},
[7] = {
{ BabbleZone["Trial of the Crusader"], "TrialoftheCrusader_A", "Submenu" },
},
[8] = {
{ BabbleZone["Onyxia's Lair"], "Onyxia_1", "Table" },
},
[9] = {
{ BabbleZone["Icecrown Citadel"], "IcecrownCitadel", "Submenu" },
},
[10] = {
{ BabbleZone["The Ruby Sanctum"], "Halion", "Table" },
},
[11] = {
{ "Dungeons:", "WrathKeys", "Table", "Header" },
},
[12] = {
{ BabbleZone["Ahn'kahet: The Old Kingdom"], "Ahnkahet", "Submenu" },
},
[13] = {
{ BabbleZone["Azjol-Nerub"], "AzjolNerub", "Submenu" },
},
[14] = {
{ BabbleZone["Caverns of Time"]..": "..BabbleZone["The Culling of Stratholme"], "CoTStratholme", "Submenu" },
},
[15] = {
{ BabbleZone["Drak'Tharon Keep"], "DrakTharonKeep", "Submenu" },
},
[16] = {
{ BabbleZone["The Forge of Souls"], "ForgeofSouls", "Submenu" },
},
[17] = {
{ BabbleZone["Gundrak"], "Gundrak", "Submenu" },
},
[18] = {
{ BabbleZone["Halls of Lightning"], "HallsofLightning", "Submenu" },
},
[19] = {
{ BabbleZone["Halls of Reflection"], "HallsofReflection", "Submenu" },
},
[20] = {
{ BabbleZone["Halls of Stone"], "HallsofStone", "Submenu" },
},
[21] = {
{ BabbleZone["The Nexus"], "TheNexus", "Submenu" },
},
[22] = {
{ BabbleZone["The Oculus"], "TheOculus", "Submenu" },
},
[23] = {
{ BabbleZone["Pit of Saron"], "PitofSaron", "Submenu" },
},
[24] = {
{ BabbleZone["Trial of the Champion"], "TrialoftheChampion", "Submenu" },
},
[25] = {
{ BabbleZone["Utgarde Keep"], "UtgardeKeep", "Submenu" },
},
[26] = {
{ BabbleZone["Utgarde Pinnacle"], "UtgardePinnacle", "Submenu" },
},
[27] = {
{ BabbleZone["The Violet Hold"], "TheVioletHold", "Submenu" },
},
},
},
[4] = {
{ AL["Crafting"], "CRAFTINGMENU", "Table" },
},
[5] = {
{ AL["Sets/Collections"], "SETMENU"..AtlasLoot_Expac, "Table" },
},
[6] = {
{ AL["PvP Rewards"], "PVPMENU"..AtlasLoot_Expac, "Table" },
},
[7] = {
{ AL["World Bosses"], "WorldBosses"..AtlasLoot_Expac, "Table" },
},
[8] = {
{ AL["Reputation Factions"], "REPMENU"..AtlasLoot_Expac, "Table" },
},
[9] = {
{ AL["World Events"], "WORLDEVENTMENU", "Table" },
},
};
AtlasLoot_DewDropDown_SubTables = {
["Expansion"] = {
{ "Classic", "CLASSIC" },
{ "Burning Crusade", "TBC" },
{ "Wrath of the Lich King", "WRATH" },
},
["BlackrockDepths"] = {
{ "", "BRDPyron" },
{ "", "BRDLordRoccor" },
{ "", "BRDHighInterrogatorGerstahn" },
{ "", "BRDArena" },
{ "", "BRDTheldren" },
{ "", "BRDHoundmaster" },
{ "", "BRDPyromantLoregrain" },
{ "", "BRDTheVault" },
{ "", "BRDWarderStilgiss" },
{ "", "BRDVerek" },
{ "", "BRDFineousDarkvire" },
{ "", "BRDLordIncendius" },
{ "", "BRDBaelGar" },
{ "", "BRDGeneralAngerforge" },
{ "", "BRDGolemLordArgelmach" },
{ "", "BRDGuzzler" },
{ "", "CorenDirebrew" },
{ "", "BRDFlamelash" },
{ "", "BRDPanzor" },
{ "", "BRDTomb" },
{ "", "BRDMagmus" },
{ "", "BRDImperatorDagranThaurissan" },
{ "", "BRDPrincess" },
{ "", "BRDBSPlans" },
{ "", "BRDTrash" },
{ "", "VWOWSets1" },
},
["LowerBlackrock"] = {
{ "", "LBRSSpirestoneButcher" },
{ "", "LBRSOmokk" },
{ "", "LBRSSpirestoneLord" },
{ "", "LBRSLordMagus" },
{ "", "LBRSVosh" },
{ "", "LBRSVoone" },
{ "", "LBRSGrayhoof" },
{ "", "LBRSGrimaxe" },
{ "", "LBRSSmolderweb" },
{ "", "LBRSCrystalFang" },
{ "", "LBRSDoomhowl" },
{ "", "LBRSZigris" },
{ "", "LBRSHalycon" },
{ "", "LBRSSlavener" },
{ "", "LBRSBashguud" },
{ "", "LBRSWyrmthalak" },
{ "", "LBRSFelguard" },
{ "", "LBRSTrash" },
{ "", "VWOWSets3" },
},
["UpperBlackrock"] = {
{ "", "UBRSEmberseer" },
{ "", "UBRSSolakar" },
{ "", "UBRSFLAME" },
{ "", "UBRSRunewatcher" },
{ "", "UBRSAnvilcrack" },
{ "", "UBRSRend" },
{ "", "UBRSGyth" },
{ "", "UBRSBeast" },
{ "", "UBRSValthalak" },
{ "", "UBRSDrakkisath" },
{ "", "UBRSTrash" },
{ "", "VWOWSets3" },
},
["BlackwingLair"] = {
{ "", "BWLRazorgore" },
{ "", "BWLVaelastrasz" },
{ "", "BWLLashlayer" },
{ "", "BWLFiremaw" },
{ "", "BWLEbonroc" },
{ "", "BWLFlamegor" },
{ "", "BWLChromaggus" },
{ "", "BWLNefarian" },
{ "", "BWLTrashMobs" },
},
["Karazhan"] = {
{ "", "KaraAttumen" },
{ "", "KaraMoroes" },
{ "", "KaraMaiden" },
{ "", "KaraOperaEvent" },
{ "", "KaraCurator" },
{ "", "KaraIllhoof" },
{ "", "KaraAran" },
{ "", "KaraNetherspite" },
{ "", "KaraNightbane" },
{ "", "KaraChess" },
{ "", "KaraPrince" },
{ "", "KaraNamed" },
{ "", "KaraTrash" },
},
["MagistersTerrace"] = {
{ "", "SMTFireheart" },
{ "", "SMTVexallus" },
{ "", "SMTDelrissa" },
{ "", "SMTKaelthas" },
},
["MoltenCore"] = {
{ "", "MCLucifron" },
{ "", "MCMagmadar" },
{ "", "MCGehennas" },
{ "", "MCGarr" },
{ "", "MCShazzrah" },
{ "", "MCGeddon" },
{ "", "MCGolemagg" },
{ "", "MCSulfuron" },
{ "", "MCMajordomo" },
{ "", "MCRagnaros" },
{ "", "MCTrashMobs" },
{ "", "MCRANDOMBOSSDROPPS" },
},
["Naxxramas60"] = {
{ "", "NAXPatchwerk" },
{ "", "NAXGrobbulus" },
{ "", "NAXGluth" },
{ "", "NAXThaddius" },
{ "", "NAXAnubRekhan" },
{ "", "NAXGrandWidowFearlina" },
{ "", "NAXMaexxna" },
{ "", "NAXInstructorRAuvious" },
{ "", "NAXGothicderHarvester" },
{ "", "NAXTheFourHorsemen" },
{ "", "NAXNothderPlaguebringer" },
{ "", "NAXHeiganderUnclean" },
{ "", "NAXLoatheb" },
{ "", "NAXSapphiron" },
{ "", "NAXKelThuzad" },
{ "", "NAXTrash" },
},
["Scarlet Monastery"] = {
{ BabbleZone["Armory"], "SMHerod" },
{ "", "SMCathedral" },
{ "", "SMGraveyard" },
{ "", "SMLibrary" },
{ "", "SMTrash" },
{ AL["Set: Chain of the Scarlet Crusade"], "VWOWSets1" },
},
["Scholomance"] = {
{ "", "SCHOLOBloodStewardofKirtonos" },
{ "", "SCHOLOKirtonostheHerald" },
{ "", "SCHOLOJandiceBarov" },
{ "", "SCHOLORattlegore" },
{ "", "SCHOLODeathKnight" },
{ "", "SCHOLOMarduk" },
{ "", "SCHOLOVectus" },
{ "", "SCHOLORasFrostwhisper" },
{ "", "SCHOLOKormok" },
{ "", "SCHOLOInstructorMalicia" },
{ "", "SCHOLODoctorTheolenKrastinov" },
{ "", "SCHOLOLorekeeperPolkelt" },
{ "", "SCHOLOTheRavenian" },
{ "", "SCHOLOLordAlexeiBarov" },
{ "", "SCHOLOLadyIlluciaBarov" },
{ "", "SCHOLODarkmasterGandling" },
{ "", "SCHOLOTrash" },
{ AL["Set: Necropile Raiment"], "VWOWScholo" },
{ AL["Set: Cadaverous Garb"], "VWOWScholo" },
{ AL["Set: Bloodmail Regalia"], "VWOWScholo" },
{ AL["Set: Deathbone Guardian"], "VWOWScholo" },
},
["Stratholme"] = {
{ BabbleBoss["Skul"], "STRATSkull" },
{ AtlasLoot_TableNames["STRATStratholmeCourier"][1], "STRATStratholmeCourier" },
{ BabbleBoss["Fras Siabi"], "STRATFrasSiabi" },
{ AtlasLoot_TableNames["STRATAtiesh"][1], "STRATAtiesh" },
{ BabbleBoss["Hearthsinger Forresten"], "STRATHearthsingerForresten" },
{ BabbleBoss["The Unforgiven"], "STRATTheUnforgiven" },
{ BabbleBoss["Timmy the Cruel"], "STRATTimmytheCruel" },
{ AtlasLoot_TableNames["STRATMalorsStrongbox"][1], "STRATMalorsStrongbox" },
{ BabbleBoss["Crimson Hammersmith"], "STRATCrimsonHammersmith" },
{ AtlasLoot_TableNames["STRATBSPlansSerenity"][1], "STRATBSPlansSerenity" },
{ BabbleBoss["Cannon Master Willey"], "STRATCannonMasterWilley" },
{ BabbleBoss["Archivist Galford"], "STRATArchivistGalford" },
{ BabbleBoss["Balnazzar"], "STRATBalnazzar" },
{ AL["Sothos and Jarien"], "STRATSothosJarien" },
{ AtlasLoot_TableNames["STRATStonespine"][1], "STRATStonespine" },
{ BabbleBoss["Baroness Anastari"], "STRATBaronessAnastari" },
{ BabbleBoss["Black Guard Swordsmith"], "STRATBlackGuardSwordsmith" },
{ AtlasLoot_TableNames["STRATBSPlansCorruption"][1], "STRATBSPlansCorruption" },
{ BabbleBoss["Nerub'enkan"], "STRATNerubenkan" },
{ BabbleBoss["Maleki the Pallid"], "STRATMalekithePallid" },
{ BabbleBoss["Magistrate Barthilas"], "STRATMagistrateBarthilas" },
{ BabbleBoss["Ramstein the Gorger"], "STRATRamsteintheGorger" },
{ BabbleBoss["Baron Rivendare"], "STRATBaronRivendare" },
{ AL["Trash Mobs"], "STRATTrash" },
{ AL["Set: The Postmaster"], "VWOWSets2" },
},
["SunkenTemple"] = {
{ AtlasLoot_TableNames["STSpawnOfHakkar"][1], "STSpawnOfHakkar" },
{ AtlasLoot_TableNames["STTrollMinibosses"][1], "STTrollMinibosses" },
{ BabbleBoss["Atal'alarion"], "STAtalalarion" },
{ BabbleBoss["Dreamscythe"], "STDreamscythe" },
{ BabbleBoss["Weaver"], "STWeaver"},
{ BabbleBoss["Avatar of Hakkar"], "STAvatarofHakkar" },
{ BabbleBoss["Jammal'an the Prophet"], "STJammalan" },
{ BabbleBoss["Ogom the Wretched"], "STOgom" },
{ BabbleBoss["Morphaz"], "STMorphaz" },
{ BabbleBoss["Hazzas"], "STHazzas" },
{ BabbleBoss["Shade of Eranikus"], "STEranikus" },
{ AL["Trash Mobs"], "STTrash" },
},
["Uldaman"] = {
{ BabbleBoss["Digmaster Shovelphlange"], "UldShovelphlange" },
{ AtlasLoot_TableNames["UldBaelog"][1], "UldBaelog" },
{ BabbleBoss["Revelosh"], "UldRevelosh" },
{ BabbleBoss["Ironaya"], "UldIronaya" },
{ BabbleBoss["Ancient Stone Keeper"], "UldAncientStoneKeeper" },
{ BabbleBoss["Galgann Firehammer"], "UldGalgannFirehammer" },
{ BabbleBoss["Grimlok"], "UldGrimlok" },
{ BabbleBoss["Archaedas"], "UldArchaedas" },
{ AL["Trash Mobs"], "UldTrash" },
},
["ZulGurub"] = {
{ BabbleBoss["High Priestess Jeklik"], "ZGJeklik" },
{ BabbleBoss["High Priest Venoxis"], "ZGVenoxis" },
{ BabbleBoss["High Priestess Mar'li"], "ZGMarli" },
{ BabbleBoss["Bloodlord Mandokir"], "ZGMandokir" },
{ BabbleZone["Zul'Gurub"], "ZGEdgeofMadness" },
{ BabbleBoss["Gahz'ranka"], "ZGGahzranka" },
{ BabbleBoss["High Priest Thekal"], "ZGThekal" },
{ BabbleBoss["High Priestess Arlokk"], "ZGArlokk" },
{ BabbleBoss["Jin'do the Hexxer"], "ZGJindo" },
{ BabbleBoss["Hakkar"], "ZGHakkar" },
{ AL["Random Boss Loot"], "ZGShared" },
{ AL["Trash Mobs"], "ZGTrash1" },
{ AL["ZG Enchants"], "ZGEnchants" },
},
["CoTOldHillsbrad"] = {
{ "", "CoTHillsbradDrake" },
{ "", "CoTHillsbradSkarloc" },
{ "", "CoTHillsbradHunter" },
{ "", "CoTHillsbradHunterHeroic" },
{ AL["Trash Mobs"], "CoTTrash" },
},
["CoTBlackMorass"] = {
{ "", "CoTMorassDeja" },
{ "", "CoTMorassTemporus" },
{ "", "CoTMorassAeonus" },
{ AL["Trash Mobs"], "CoTTrash" },
},
["CoTHyjal"] = {
{ "", "MountHyjalWinterchill" },
{ "", "MountHyjalAnetheron" },
{ "", "MountHyjalKazrogal" },
{ "", "MountHyjalAzgalor" },
{ "", "MountHyjalArchimonde" },
{ AL["Trash Mobs"], "MountHyjalTrash" },
},
["DireMaulEast"] = {
{ BabbleBoss["Pusillin"], "DMEPusillin" },
{ BabbleBoss["Zevrim Thornhoof"], "DMEZevrimThornhoof" },
{ BabbleBoss["Hydrospawn"], "DMEHydro" },
{ BabbleBoss["Lethtendris"], "DMELethtendris" },
{ BabbleBoss["Pimgib"], "DMEPimgib" },
{ BabbleBoss["Alzzin the Wildshaper"], "DMEAlzzin" },
{ BabbleBoss["Isalien"], "DMEIsalien" },
{ AL["Trash Mobs"], "DMETrash" },
{ AL["Dire Maul Books"], "DMBooks" },
},
["DireMaulWest"] = {
{ BabbleBoss["Tendris Warpwood"], "DMWTendrisWarpwood" },
{ BabbleBoss["Illyanna Ravenoak"], "DMWIllyannaRavenoak" },
{ BabbleBoss["Magister Kalendris"], "DMWMagisterKalendris" },
{ BabbleBoss["Tsu'zee"], "DMWTsuzee" },
{ BabbleBoss["Immol'thar"], "DMWImmolthar" },
{ BabbleBoss["Lord Hel'nurath"], "DMWHelnurath" },
{ BabbleBoss["Prince Tortheldrin"], "DMWPrinceTortheldrin" },
{ AL["Trash Mobs"], "DMWTrash" },
{ AL["Dire Maul Books"], "DMBooks" },
},
["DireMaulNorth"] = {
{ BabbleBoss["Guard Mol'dar"], "DMNGuardMoldar" },
{ BabbleBoss["Stomper Kreeg"], "DMNStomperKreeg" },
{ BabbleBoss["Guard Fengus"], "DMNGuardFengus" },
{ AtlasLoot_TableNames["DMNThimblejack"][1], "DMNThimblejack" },
{ BabbleBoss["Guard Slip'kik"], "DMNGuardSlipkik" },
{ BabbleBoss["Captain Kromcrush"], "DMNCaptainKromcrush" },
{ BabbleBoss["King Gordok"], "DMNKingGordok" },
{ BabbleBoss["Cho'Rush the Observer"], "DMNChoRush" },
{ AL["Tribute Run"], "DMNTRIBUTERUN" },
{ AL["Dire Maul Books"], "DMBooks" },
},
["RuinsofAQ"] = {
{ BabbleBoss["Kurinnaxx"], "AQ20Kurinnaxx" },
{ BabbleBoss["General Rajaxx"], "AQ20Rajaxx" },
{ BabbleBoss["Moam"], "AQ20Moam" },
{ BabbleBoss["Buru the Gorger"], "AQ20Buru" },
{ BabbleBoss["Ayamiss the Hunter"], "AQ20Ayamiss" },
{ BabbleBoss["Ossirian the Unscarred"], "AQ20Ossirian" },
{ AL["Trash Mobs"], "AQ20Trash" },
{ AL["Class Books"], "AQ20ClassBooks" },
{ AL["AQ Enchants"], "AQEnchants" },
{ AL["Ruins of Ahn'Qiraj Sets"], "AQ20Sets1" },
},
["TempleofAQ"] = {
{ BabbleBoss["The Prophet Skeram"], "AQ40Skeram" },
{ BabbleBoss["The Bug Family"], "AQ40Vem" },
{ BabbleBoss["Battleguard Sartura"], "AQ40Sartura" },
{ BabbleBoss["Fankriss the Unyielding"], "AQ40Fankriss" },
{ BabbleBoss["Viscidus"], "AQ40Viscidus" },
{ BabbleBoss["Princess Huhuran"], "AQ40Huhuran" },
{ BabbleBoss["The Twin Emperors"], "AQ40Emperors" },
{ BabbleBoss["Ouro"], "AQ40Ouro" },
{ BabbleBoss["C'Thun"], "AQ40CThun" },
{ AL["Trash Mobs"], "AQ40Trash1" },
{ AL["AQ Enchants"], "AQEnchants" },
{ AL["AQ Opening Quest Chain"], "AQOpening" },
},
["ZulFarrak"] = {
{ BabbleBoss["Antu'sul"], "ZFAntusul" },
{ BabbleBoss["Theka the Martyr"], "ZFThekatheMartyr" },
{ BabbleBoss["Witch Doctor Zum'rah"], "ZFWitchDoctorZumrah" },
{ BabbleBoss["Nekrum Gutchewer"], "ZFNekrumGutchewer" },
{ BabbleBoss["Shadowpriest Sezz'ziz"], "ZFSezzziz" },
{ BabbleBoss["Dustwraith"], "ZFDustwraith" },
{ BabbleBoss["Sergeant Bly"], "ZFSergeantBly" },
{ BabbleBoss["Sandfury Executioner"], "ZFSandfury" },
{ BabbleBoss["Hydromancer Velratha"], "ZFHydromancerVelratha" },
{ BabbleBoss["Gahz'rilla"], "ZFGahzrilla" },
{ BabbleBoss["Chief Ukorz Sandscalp"], "ZFChiefUkorzSandscalp" },
{ BabbleBoss["Zerillis"], "ZFZerillis" },
{ AL["Trash Mobs"], "ZFTrash" },
},
["AuchManaTombs"] = {
{ "", "AuchManaPandemonius" },
{ "", "AuchManaTavarok" },
{ "", "AuchManaNexusPrince" },
{ "", "AuchManaNexusPrinceHeroic" },
{ "", "AuchManaYorHeroic" },
{ AL["Trash Mobs"], "AuchTrash" },
},
["AuchCrypts"] = {
{ "", "AuchCryptsShirrak" },
{ "", "AuchCryptsExarch" },
{ "", "AuchCryptsAvatar" },
{ AL["Trash Mobs"], "AuchTrash" },
},
["AuchSethekk"] = {
{ "", "AuchSethekkDarkweaver" },
{ "", "AuchSethekkTalonKing" },
{ "", "AuchSethekkRavenGod" },
{ AL["Trash Mobs"], "AuchTrash" },
},
["AuchShadowLab"] = {
{ "", "AuchShadowHellmaw" },
{ "", "AuchShadowBlackheart" },
{ "", "AuchShadowGrandmaster" },
{ "", "AuchShadowMurmur" },
{ AL["Trash Mobs"], "AuchTrash" },
},
["BlackTemple"] = {
{ "", "BTNajentus" },
{ "", "BTSupremus" },
{ "", "BTAkama" },
{ "", "BTGorefiend" },
{ "", "BTBloodboil" },
{ "", "BTEssencofSouls" },
{ "", "BTShahraz" },
{ "", "BTCouncil" },
{ "", "BTIllidanStormrage" },
{ AL["BT Patterns/Plans"], "BTPatterns" },
{ AL["Trash Mobs"], "BTTrash" },
},
["CFRSlavePens"] = {
{ "", "CFRSlaveMennu" },
{ "", "CFRSlaveRokmar" },
{ "", "CFRSlaveQuagmirran" },
{ "", "LordAhune" },
},
["CFRUnderbog"] = {
{ "", "CFRUnderHungarfen" },
{ "", "CFRUnderGhazan" },
{ "", "CFRUnderSwamplord" },
{ "", "CFRUnderStalker" },
{ "", "CFRUnderStalkerHeroic" },
},
["CFRSteamvault"] = {
{ "", "CFRSteamThespia" },
{ "", "CFRSteamSteamrigger" },
{ "", "CFRSteamWarlord" },
{ AL["Trash Mobs"], "CFRSteamTrash" },
},
["CFRSerpentshrine"] = {
{ "", "CFRSerpentHydross" },
{ "", "CFRSerpentLurker" },
{ "", "CFRSerpentLeotheras" },
{ "", "CFRSerpentKarathress" },
{ "", "CFRSerpentMorogrim" },
{ "", "CFRSerpentVashj" },
{ AL["Trash Mobs"], "CFRSerpentTrash" },
},
["Gruul"] = {
{ "", "GruulsLairHighKingMaulgar" },
{ "", "GruulGruul" },
},
["HCRamparts"] = {
{ "", "HCRampWatchkeeper" },
{ "", "HCRampOmor" },
{ "", "HCRampVazruden" },
{ "", "HCRampVazrudenHeroic" },
},
["HCFurnace"] = {
{ "", "HCFurnaceMaker" },
{ "", "HCFurnaceBroggok" },
{ "", "HCFurnaceBreaker" },
},
["HCShatteredHalls"] = {
{ "", "HCHallsNethekurse" },
{ "", "HCHallsPorung" },
{ "", "HCHallsOmrogg" },
{ "", "HCHallsKargath" },
{ AL["Trash Mobs"], "HCHallsTrash" },
},
["TKMech"] = {
{ "", "TKMechCacheoftheLegion" },
{ "", "TKMechCapacitus" },
{ "", "TKMechSepethrea" },
{ "", "TKMechCalc" },
{ "", "TKMechCalcHeroic" },
{ AL["Trash Mobs"], "TKTrash" },
},
["TKBot"] = {
{ "", "TKBotSarannis" },
{ "", "TKBotFreywinn" },
{ "", "TKBotThorngrin" },
{ "", "TKBotLaj" },
{ "", "TKBotSplinter" },
{ "", "TKBotSplinterHeroic" },
{ AL["Trash Mobs"], "TKTrash" },
},
["TKArc"] = {
{ "", "TKArcUnbound" },
{ "", "TKArcScryer" },
{ "", "TKArcDalliah" },
{ "", "TKArcHarbinger" },
{ AL["Trash Mobs"], "TKTrash" },
},
["TKEye"] = {
{ "", "TKEyeAlar" },
{ "", "TKEyeVoidReaver" },
{ "", "TKEyeSolarian" },
{ "", "TKEyeKaelthas" },
{ "", "TKEyeLegendaries" },
{ AL["Trash Mobs"], "TKEyeTrash" },
},
["ZulAman"] = {
{ "", "ZANalorakk" },
{ "", "ZAAkilZon" },
{ "", "ZAJanAlai" },
{ "", "ZAHalazzi" },
{ "", "ZAMalacrass" },
{ "", "ZAZuljin" },
{ AL["Timed Reward Chest"], "ZATimedChest" },
{ AL["Trash Mobs"], "ZATrash" },
},
["SunwellPlateau"] = {
{ "", "SPKalecgos" },
{ "", "SPBrutallus" },
{ "", "SPFelmyst" },
{ "", "SPEredarTwins" },
{ "", "SPMuru" },
{ "", "SPKiljaeden" },
{ "", "SPPatterns" },
{ AL["Trash Mobs"], "SPTrash" },
},
["Ahnkahet"] = {
{ "", "AhnkahetNadox" },
{ "", "AhnkahetTaldaram" },
{ "", "AhnkahetAmanitarHEROIC" },
{ "", "AhnkahetJedoga" },
{ "", "AhnkahetVolazj" },
{ "", "AhnkahetTrash" },
},
["AzjolNerub"] = {
{ "", "AzjolNerubKrikthir" },
{ "", "AzjolNerubHadronox" },
{ "", "AzjolNerubAnubarak" },
{ "", "AzjolNerubTrash" },
},
["CoTStratholme"] = {
{ "", "CoTStratholmeMeathook" },
{ "", "CoTStratholmeEpoch" },
{ "", "CoTStratholmeSalramm" },
{ "", "CoTStratholmeInfiniteCorruptorHEROIC" },
{ "", "CoTStratholmeMalGanis" },
{ "", "CoTStratholmeTrash" },
},
["DrakTharonKeep"] = {
{ "", "DrakTharonKeepTrollgore" },
{ "", "DrakTharonKeepNovos" },
{ "", "DrakTharonKeepKingDred" },
{ "", "DrakTharonKeepTharonja" },
{ "", "DrakTharonKeepTrash" },
},
["Gundrak"] = {
{ "", "GundrakSladran" },
{ "", "GundrakColossus" },
{ "", "GundrakMoorabi" },
{ "", "GundrakEckHEROIC" },
{ "", "GundrakGaldarah" },
{ "", "GundrakTrash" },
},
["HallsofLightning"] = {
{ "", "HallsofLightningBjarngrim" },
{ "", "HallsofLightningVolkhan" },
{ "", "HallsofLightningIonar" },
{ "", "HallsofLightningLoken" },
{ "", "HallsofLightningTrash" },
},
["HallsofStone"] = {
{ "", "HallsofStoneMaiden" },
{ "", "HallsofStoneKrystallus" },
{ "", "HallsofStoneTribunal" },
{ "", "HallsofStoneSjonnir" },
{ "", "HallsofStoneTrash" },
},
["Ulduar"] = {
{ "", "UlduarLeviathan" },
{ "", "UlduarIgnis" },
{ "", "UlduarRazorscale" },
{ "", "UlduarDeconstructor" },
{ "", "UlduarIronCouncil" },
{ "", "UlduarKologarn" },
{ "", "UlduarAlgalon" },
{ "", "UlduarAuriaya" },
{ "", "UlduarHodir" },
{ "", "UlduarThorim" },
{ "", "UlduarFreya" },
{ "", "UlduarMimiron" },
{ "", "UlduarVezax" },
{ "", "UlduarYoggSaron" },
{ "", "UlduarTrash" },
{ "", "UlduarPatterns" },
},
["UtgardeKeep"] = {
{ "", "UtgardeKeepKeleseth" },
{ "", "UtgardeKeepSkarvald" },
{ "", "UtgardeKeepIngvar" },
{ "", "UtgardeKeepTrash" },
},
["UtgardePinnacle"] = {
{ "", "UPSkadi" },
{ "", "UPYmiron" },
{ "", "UPSorrowgrave" },
{ "", "UPPalehoof" },
{ "", "UPTrash" },
},
["TheVioletHold"] = {
{ "", "VioletHoldErekem" },
{ "", "VioletHoldZuramat" },
{ "", "VioletHoldXevozz" },
{ "", "VioletHoldIchoron" },
{ "", "VioletHoldMoragg" },
{ "", "VioletHoldLavanthor" },
{ "", "VioletHoldCyanigosa" },
{ "", "VioletHoldTrash" },
},
["TheOculus"] = {
{ "", "OcuDrakos" },
{ "", "OcuUrom" },
{ "", "OcuCloudstrider" },
{ "", "OcuEregos" },
{ "", "OcuTrash" },
},
["TrialoftheChampion"] = {
{ "", "TrialoftheChampionChampions" },
{ "", "TrialoftheChampionConfessorPaletress" },
{ "", "TrialoftheChampionEadricthePure" },
{ "", "TrialoftheChampionBlackKnight" },
},
["TrialoftheCrusader_A"] = {
{ BabbleBoss["The Beasts of Northrend"], "TrialoftheCrusaderNorthrendBeasts_A" },
{ BabbleBoss["Lord Jaraxxus"], "TrialoftheCrusaderLordJaraxxus_A" },
{ AL["Faction Champions"], "TrialoftheCrusaderFactionChampions_A" },
{ BabbleBoss["The Twin Val'kyr"], "TrialoftheCrusaderTwinValkyrs_A" },
{ BabbleBoss["Anub'arak"], "TrialoftheCrusaderAnubarak_A" },
{ AL["Tribute Run"], "TrialoftheCrusaderTributeHEROIC_A" },
{ AL["Trial of the Crusader Patterns/Plans"], "TrialoftheCrusaderPatterns_A" },
},
["VaultofArchavon_A"] = {
{ BabbleBoss["Archavon the Stone Watcher"], "VaultofArchavonArchavon1" },
{ BabbleBoss["Emalon the Storm Watcher"], "VaultofArchavonEmalon1" },
{ BabbleBoss["Koralon the Flame Watcher"], "VaultofArchavonKoralon1_A" },
{ BabbleBoss["Toravon the Ice Watcher"], "VaultofArchavonToravon1" },
},
["Naxxramas80"] = {
{ AtlasLoot_TableNames["Naxx80Patchwerk"][1].." ("..AL["Construct Quarter"]..")", "Naxx80Patchwerk" },
{ AtlasLoot_TableNames["Naxx80Grobbulus"][1].." ("..AL["Construct Quarter"]..")", "Naxx80Grobbulus" },
{ AtlasLoot_TableNames["Naxx80Gluth1"][1].." ("..AL["Construct Quarter"]..")", "Naxx80Gluth1" },
{ AtlasLoot_TableNames["Naxx80Thaddius"][1].." ("..AL["Construct Quarter"]..")", "Naxx80Thaddius" },
{ AtlasLoot_TableNames["Naxx80AnubRekhan"][1].." ("..AL["Arachnid Quarter"]..")", "Naxx80AnubRekhan" },
{ AtlasLoot_TableNames["Naxx80Faerlina"][1].." ("..AL["Arachnid Quarter"]..")", "Naxx80Faerlina" },
{ AtlasLoot_TableNames["Naxx80Maexxna"][1].." ("..AL["Arachnid Quarter"]..")", "Naxx80Maexxna" },
{ AtlasLoot_TableNames["Naxx80Razuvious"][1].." ("..AL["Military Quarter"]..")", "Naxx80Razuvious" },
{ AtlasLoot_TableNames["Naxx80Gothik"][1].." ("..AL["Military Quarter"]..")", "Naxx80Gothik" },
{ AtlasLoot_TableNames["Naxx80FourHorsemen"][1].." ("..AL["Military Quarter"]..")", "Naxx80FourHorsemen" },
{ AtlasLoot_TableNames["Naxx80Noth"][1].." ("..AL["Plague Quarter"]..")", "Naxx80Noth" },
{ AtlasLoot_TableNames["Naxx80Heigan"][1].." ("..AL["Plague Quarter"]..")", "Naxx80Heigan" },
{ AtlasLoot_TableNames["Naxx80Loatheb"][1].." ("..AL["Plague Quarter"]..")", "Naxx80Loatheb" },
{ AtlasLoot_TableNames["Naxx80Sapphiron"][1].." ("..AL["Frostwyrm Lair"]..")", "Naxx80Sapphiron" },
{ AtlasLoot_TableNames["Naxx80KelThuzad"][1].." ("..AL["Frostwyrm Lair"]..")", "Naxx80KelThuzad" },
{ "", "Naxx80Trash" },
},
["TheNexus"] = {
{ "", "TheNexusTelestra" },
{ "", "TheNexusAnomalus"},
{ "", "TheNexusOrmorok" },
{ "", "TheNexusKolurgStoutbeardHEROIC"},
{ "", "TheNexusKeristrasza" },
},
["WorldBosses"] = {
{ "", "WorldBossesCLASSIC" },
{ "", "WorldBossesTBC" },
},
["ForgeofSouls"] = {
{ "", "FoSBronjahm" },
{ "", "FoSDevourer" },
{ "", "FHTrashMobs" },
},
["PitofSaron"] = {
{ "", "PoSGarfrost" },
{ "", "PoSKrickIck" },
{ "", "PoSTyrannus" },
{ "", "FHTrashMobs" },
},
["HallsofReflection"] = {
{ "", "HoRFalric" },
{ "", "HoRMarwyn" },
{ "", "HoRLichKing" },
{ "", "FHTrashMobs" },
},
["IcecrownCitadel"] = {
{ "", "ICCLordMarrowgar" },
{ "", "ICCLadyDeathwhisper" },
{ "", "ICCGunshipBattle" },
{ "", "ICCSaurfang" },
{ "", "ICCFestergut" },
{ "", "ICCRotface" },
{ "", "ICCPutricide" },
{ "", "ICCCouncil" },
{ "", "ICCLanathel" },
{ "", "ICCValithria" },
{ "", "ICCSindragosa" },
{ "", "ICCLichKing" },
{ "", "ICCTrash25Man" },
},
};
+15
View File
@@ -161,6 +161,7 @@ if AL then
AL["Search"] = true;
-- AtlasLoot Browser Menus
AL["Dungeons and Raids"] = true;
AL["Classic Instances"] = true;
AL["BC Instances"] = true;
AL["Sets/Collections"] = true;
@@ -377,6 +378,20 @@ if AL then
AL["Shirts"] = true;
AL["Bags"] = true;
-- JewelCrafting
AL["Red Gems"] = true;
AL["Yellow Gems"] = true;
AL["Blue Gems"] = true;
AL["Orange Gems"] = true;
AL["Purple Gems"] = true;
AL["Green Gems"] = true;
AL["Meta Gems"] = true;
AL["Prismatic Gems"] = true;
AL["Dragons Eye"] = true;
AL["Trinkets"] = true;
AL["Rings"] = true;
AL["Necks"] = true;
-- Labels for loot descriptions
AL["Classes:"] = true;
AL["This Item Begins a Quest"] = true;
+63 -259
View File
@@ -2,267 +2,71 @@ local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
local BabbleInventory = AtlasLoot_GetLocaleLibBabble("LibBabble-Inventory-3.0")
local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
AtlasLoot_Data["CRAFTINGMENU"] = {
{ 2, "ALCHEMYMENU", "INV_Potion_23", "=ds="..GetSpellInfo(2259), ""};
{ 3, "SMITHINGMENU", "Trade_BlackSmithing", "=ds="..GetSpellInfo(2018), ""};
{ 4, "ENCHANTINGMENU", "Trade_Engraving", "=ds="..GetSpellInfo(7411), ""};
{ 5, "ENGINEERINGMENU", "Trade_Engineering", "=ds="..GetSpellInfo(4036), ""};
{ 6, "INSCRIPTIONMENU", "INV_Inscription_Tradeskill01", "=ds="..GetSpellInfo(45357), ""};
{ 7, "JEWELCRAFTINGMENU", "INV_Misc_Gem_01", "=ds="..GetSpellInfo(25229), ""};
{ 8, "LEATHERWORKINGMENU", "INV_Misc_ArmorKit_17", "=ds="..GetSpellInfo(2108), ""};
{ 9, "Mining1", "Trade_Mining", "=ds="..GetSpellInfo(2575), ""};
{ 10, "TAILORINGMENU", "Trade_Tailoring", "=ds="..GetSpellInfo(3908), ""};
{ 12, "Cooking1", "INV_Misc_Food_15", "=ds="..GetSpellInfo(2550), ""};
{ 13, "FirstAid1", "Spell_Holy_SealOfSacrifice", "=ds="..GetSpellInfo(3273), ""};
{ 17, "CRAFTSET1", "INV_Box_01", AL["Crafted Sets"], ""};
{ 18, "CraftedWeapons1", "INV_Sword_1H_Blacksmithing_02", AL["Crafted Epic Weapons"], ""};
{ 20, "COOKINGDAILYMENU", "INV_Misc_Food_15", AL["Cooking Daily"], ""};
{ 21, "FISHINGDAILYMENU", "inv_fishingpole_03", AL["Fishing Daily"], ""};
{ 22, "JEWELCRAFTINGDAILYMENU", "INV_Misc_Gem_01", AL["Jewelcrafting Daily"], ""};
{ 27, "CookingHighRisk"..AtlasLoot_Expac, "INV_Misc_Food_15", "=ds=Cooking High Risk", ""};
Submenu = "Disable";
AtlasLoot_SubMenus["CraftingCLASSIC"] = {
Module = "AtlasLootCrafting";
{ "", "AlchemyCLASSIC"};
{ "", "SmithingCLASSIC"};
{ "", "EnchantingCLASSIC"};
{ "", "EngineeringCLASSIC"};
{ "", "LeatherworkingCLASSIC"};
{ "", "TailoringCLASSIC"};
{ "", "Inscription"};
{ "", "Mining"};
{ "", "CookingCLASSIC"};
{ "", "FirstAid"};
{"High Risk:", "", "Header"};
{ "", "AlchemyHighRiskCLASSIC"};
{ "", "SmithingHighRiskCLASSIC"};
{ "", "EnchantingHighRiskCLASSIC"};
{ "", "EngineeringHighRiskCLASSIC"};
{ "", "LeatherworkingHighRiskCLASSIC"};
{ "", "TailoringHighRiskCLASSIC"};
{ "", "CookingHighRiskCLASSIC"};
};
AtlasLoot_Data["ALCHEMYMENU"] = {
{ 2, "AlchemyBattleElixir"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Battle Elixirs"], "" };
{ 3, "AlchemyPotion"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Potions"], "" };
{ 4, "AlchemyTransmute"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Transmutes"], "" };
{ 6, "AlchemyHighRisk"..AtlasLoot_Expac, "INV_Potion_23", "=ds=High Risk", "" };
{ 17, "AlchemyGuardianElixir"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Guardian Elixirs"], "" };
{ 18, "AlchemyFlask"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Flasks"], "" };
{ 19, "AlchemyMisc"..AtlasLoot_Expac, "INV_Potion_23", "=ds="..AL["Miscellaneous"], "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
AtlasLoot_SubMenus["CraftingTBC"] = {
Module = "AtlasLootCrafting";
{ "", "AlchemyTBC"};
{ "", "SmithingTBC"};
{ "", "EnchantingTBC"};
{ "", "EngineeringTBC"};
{ "", "JewelcraftingTBC"};
{ "", "LeatherworkingTBC"};
{ "", "TailoringTBC"};
{ "", "Inscription"};
{ "", "Mining"};
{ "", "CookingTBC"};
{ "", "FirstAid"};
{"High Risk:", "", "Header"};
{ "", "AlchemyHighRiskTBC"};
{ "", "SmithingHighRiskTBC"};
{ "", "EnchantingHighRiskTBC"};
{ "", "EngineeringHighRiskTBC"};
{ "", "JewelcraftingHighRiskTBC"};
{ "", "LeatherworkingHighRiskTBC"};
{ "", "TailoringHighRiskTBC"};
{ "", "CookingHighRiskTBC"};
};
AtlasLoot_Data["SMITHINGMENU"] = {
{ 2, "SmithingArmor"..AtlasLoot_Expac, "Trade_BlackSmithing", "=ds="..BabbleInventory["Armor"], "" };
{ 4, "SmithingEnhancement1", "Trade_BlackSmithing", "=ds="..AL["Item Enhancements"], "" };
{ 6, "Armorsmith1", "Trade_BlackSmithing", "=ds="..GetSpellInfo(9788), "" };
{ 7, "Axesmith1", "Trade_BlackSmithing", "=ds="..GetSpellInfo(17041), "" };
{ 8, "Swordsmith1", "Trade_BlackSmithing", "=ds="..GetSpellInfo(17039), "" };
{ 10, "SmithingHighRisk"..AtlasLoot_Expac, "Trade_BlackSmithing", "=ds=High Risk", "" };
{ 17, "SmithingWeapon"..AtlasLoot_Expac, "Trade_BlackSmithing", "=ds="..BabbleInventory["Weapon"], "" };
{ 19, "SmithingMisc1", "Trade_BlackSmithing", "=ds="..AL["Miscellaneous"], "" };
{ 21, "Weaponsmith1", "Trade_BlackSmithing", "=ds="..GetSpellInfo(9787), "" };
{ 22, "Hammersmith1", "Trade_BlackSmithing", "=ds="..GetSpellInfo(17040), "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["ENCHANTINGMENU"] = {
{ 2, "EnchantingBoots"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Boots"], "" };
{ 3, "EnchantingChest"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Chest"], "" };
{ 4, "EnchantingGloves"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Gloves"], "" };
{ 5, "EnchantingShield"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Shield"], "" };
{ 6, "EnchantingTwoHWeapon"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant 2H Weapon"], "" };
{ 7, "EnchantingMisc"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Miscellaneous"], "" };
{ 9, "EnchantingHighRisk"..AtlasLoot_Expac, "Trade_Engraving", "=ds=High Risk", "" };
{ 17, "EnchantingBracer"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Bracer"], "" };
{ 18, "EnchantingCloak"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Cloak"], "" };
{ 19, "EnchantingRing1", "Trade_Engraving", "=ds="..AL["Enchant Ring"], "" };
{ 20, "EnchantingStaff1", "Trade_Engraving", "=ds="..BabbleInventory["Staff"], "" };
{ 21, "EnchantingWeapon"..AtlasLoot_Expac, "Trade_Engraving", "=ds="..AL["Enchant Weapon"], "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["ENGINEERINGMENU"] = {
{ 2, "EngineeringAmmo1", "Trade_Engineering", "=ds="..AL["Ammunition"], "" };
{ 3, "EngineeringExplosives1", "Trade_Engineering", "=ds="..AL["Explosives"], "" };
{ 4, "EngineeringMisc1", "Trade_Engineering", "=ds="..AL["Miscellaneous"], "" };
{ 5, "EngineeringWeapon1", "Trade_Engineering", "=ds="..BabbleInventory["Weapon"], "" };
{ 7, "Gnomish1", "Trade_Engineering", "=ds="..GetSpellInfo(20220), "" };
{ 9, "EngineerHighRisk"..AtlasLoot_Expac, "Trade_Engineering", "=ds=High Risk", "" };
{ 17, "EngineeringArmor1", "Trade_Engineering", "=ds="..BabbleInventory["Armor"], "" };
{ 18, "EngineeringItemEnhancements1", "Trade_Engineering", "=ds="..AL["Item Enhancements"], "" };
{ 19, "EngineeringReagents1", "Trade_Engineering", "=ds="..AL["Reagents"], "" };
{ 22, "Goblin1", "Trade_Engineering", "=ds="..GetSpellInfo(20221), "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["INSCRIPTIONMENU"] = {
{ 2, "Inscription_Scrolls1", "INV_Inscription_Tradeskill01", "=ds="..AL["Scrolls"], "" };
{ 3, "Inscription_Misc1", "INV_Inscription_Tradeskill01", "=ds="..AL["Miscellaneous"], "" };
{ 5, "Inscription_DeathKnightMajor1", "Spell_Deathknight_DeathStrike", "=ds="..LOCALIZED_CLASS_NAMES_MALE["DEATHKNIGHT"], "=q5="..AL["Major Glyph"] };
{ 6, "Inscription_DruidMajor1", "Spell_Nature_Regeneration", "=ds=".."Druid", "=q5="..AL["Major Glyph"] };
{ 7, "Inscription_HunterMajor1", "Ability_Hunter_RunningShot", "=ds="..LOCALIZED_CLASS_NAMES_MALE["HUNTER"], "=q5="..AL["Major Glyph"] };
{ 8, "Inscription_MageMajor1", "Spell_Frost_IceStorm", "=ds="..LOCALIZED_CLASS_NAMES_MALE["MAGE"], "=q5="..AL["Major Glyph"] };
{ 9, "Inscription_PaladinMajor1", "Spell_Holy_SealOfMight", "=ds="..LOCALIZED_CLASS_NAMES_MALE["PALADIN"], "=q5="..AL["Major Glyph"] };
{ 10, "Inscription_PriestMajor1", "Spell_Holy_PowerWordShield", "=ds="..LOCALIZED_CLASS_NAMES_MALE["PRIEST"], "=q5="..AL["Major Glyph"] };
{ 11, "Inscription_RogueMajor1", "Ability_BackStab", "=ds="..LOCALIZED_CLASS_NAMES_MALE["ROGUE"], "=q5="..AL["Major Glyph"] };
{ 12, "Inscription_ShamanMajor1", "Spell_FireResistanceTotem_01", "=ds="..LOCALIZED_CLASS_NAMES_MALE["SHAMAN"], "=q5="..AL["Major Glyph"] };
{ 13, "Inscription_WarlockMajor1", "Spell_Shadow_CurseOfTounges", "=ds="..LOCALIZED_CLASS_NAMES_MALE["WARLOCK"], "=q5="..AL["Major Glyph"] };
{ 14, "Inscription_WarriorMajor1", "Ability_Warrior_BattleShout", "=ds="..LOCALIZED_CLASS_NAMES_MALE["WARRIOR"], "=q5="..AL["Major Glyph"] };
{ 17, "Inscription_OffHand1", "INV_Inscription_Tradeskill01", "=ds="..AL["Off-Hand Items"], "" };
{ 18, "Inscription_Reagents1", "INV_Inscription_Tradeskill01", "=ds="..AL["Reagents"], "" };
{ 20, "Inscription_DeathKnightMinor1", "Spell_Deathknight_DeathStrike", "=ds="..LOCALIZED_CLASS_NAMES_MALE["DEATHKNIGHT"], "=q5="..AL["Minor Glyph"] };
{ 21, "Inscription_DruidMinor1", "Spell_Nature_Regeneration", "=ds=".."Druid", "=q5="..AL["Minor Glyph"] };
{ 22, "Inscription_HunterMinor1", "Ability_Hunter_RunningShot", "=ds="..LOCALIZED_CLASS_NAMES_MALE["HUNTER"], "=q5="..AL["Minor Glyph"] };
{ 23, "Inscription_MageMinor1", "Spell_Frost_IceStorm", "=ds="..LOCALIZED_CLASS_NAMES_MALE["MAGE"], "=q5="..AL["Minor Glyph"] };
{ 24, "Inscription_PaladinMinor1", "Spell_Holy_SealOfMight", "=ds="..LOCALIZED_CLASS_NAMES_MALE["PALADIN"], "=q5="..AL["Minor Glyph"] };
{ 25, "Inscription_PriestMinor1", "Spell_Holy_PowerWordShield", "=ds="..LOCALIZED_CLASS_NAMES_MALE["PRIEST"], "=q5="..AL["Minor Glyph"] };
{ 26, "Inscription_RogueMinor1", "Ability_BackStab", "=ds="..LOCALIZED_CLASS_NAMES_MALE["ROGUE"], "=q5="..AL["Minor Glyph"] };
{ 27, "Inscription_ShamanMinor1", "Spell_FireResistanceTotem_01", "=ds="..LOCALIZED_CLASS_NAMES_MALE["SHAMAN"], "=q5="..AL["Minor Glyph"] };
{ 28, "Inscription_WarlockMinor1", "Spell_Shadow_CurseOfTounges", "=ds="..LOCALIZED_CLASS_NAMES_MALE["WARLOCK"], "=q5="..AL["Minor Glyph"] };
{ 29, "Inscription_WarriorMinor1", "Ability_Warrior_BattleShout", "=ds="..LOCALIZED_CLASS_NAMES_MALE["WARRIOR"], "=q5="..AL["Minor Glyph"] };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["JEWELCRAFTINGMENU"] = {
{ 1, "JewelRed"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Red"].." "..BabbleInventory["Gem"], "" };
{ 2, "JewelBlue"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Blue"].." "..BabbleInventory["Gem"], "" };
{ 3, "JewelYellow"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Yellow"].." "..BabbleInventory["Gem"], "" };
{ 4, "JewelGreen"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Green"].." "..BabbleInventory["Gem"], "" };
{ 5, "JewelOrange"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Orange"].." "..BabbleInventory["Gem"], "" };
{ 6, "JewelPurple"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Purple"].." "..BabbleInventory["Gem"], "" };
{ 7, "JewelMeta"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds="..BabbleInventory["Meta"].." "..BabbleInventory["Gem"], "" };
{ 8, "JewelPrismatic1", "INV_Misc_Gem_01", "=ds="..BabbleInventory["Prismatic"].." "..BabbleInventory["Gem"], "" };
{ 9, "JewelDragonsEye1", "INV_Misc_Gem_01", "=ds="..AL["Dragon's Eye"], "" };
{ 11, "JewlHighRisk"..AtlasLoot_Expac, "INV_Misc_Gem_01", "=ds=High Risk", "" };
{ 16, "JewelNeck1", "INV_Misc_Gem_01", "=ds="..BabbleInventory["Neck"], "" };
{ 17, "JewelTrinket1", "INV_Misc_Gem_01", "=ds="..BabbleInventory["Trinket"], "" };
{ 18, "JewelRing1", "INV_Misc_Gem_01", "=ds="..BabbleInventory["Ring"], "" };
{ 19, "JewelMisc1", "INV_Misc_Gem_01", "=ds="..AL["Miscellaneous"], "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["LEATHERWORKINGMENU"] = {
{ 2, "LeatherLeatherArmor"..AtlasLoot_Expac, "INV_Misc_ArmorKit_17", "=ds="..AL["Leather Armor"], "" };
{ 4, "LeatherCloaks1", "INV_Misc_ArmorKit_17", "=ds="..AL["Cloaks"], "" };
{ 5, "LeatherQuiversPouches1", "INV_Misc_ArmorKit_17", "=ds="..AL["Quivers and Ammo Pouches"], "" };
{ 6, "LeatherLeather1", "INV_Misc_ArmorKit_17", "=ds="..BabbleInventory["Leather"], "" };
{ 8, "Dragonscale1", "INV_Misc_ArmorKit_17", "=ds="..GetSpellInfo(10656), "" };
{ 9, "Tribal1", "INV_Misc_ArmorKit_17", "=ds="..GetSpellInfo(10660), "" };
{ 11, "LeatherHighRisk"..AtlasLoot_Expac, "INV_Misc_ArmorKit_17", "=ds=High Risk", "" };
{ 17, "LeatherMailArmor"..AtlasLoot_Expac, "INV_Misc_ArmorKit_17", "=ds="..AL["Mail Armor"],"" };
{ 19, "LeatherItemEnhancement1", "INV_Misc_ArmorKit_17", "=ds="..AL["Item Enhancements"], "" };
{ 20, "LeatherDrumsBagsMisc1", "INV_Misc_ArmorKit_17", "=ds="..AL["Drums, Bags and Misc."], "" };
{ 22, "Elemental1", "INV_Misc_ArmorKit_17", "=ds="..GetSpellInfo(10658), "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["TAILORINGMENU"] = {
{ 2, "TailoringArmor"..AtlasLoot_Expac, "Trade_Tailoring", "=ds="..AL["Cloth Armor"], "" };
{ 4, "Mooncloth1", "Trade_Tailoring", "=ds="..GetSpellInfo(26798), "" };
{ 5, "Shadoweave1", "Trade_Tailoring", "=ds="..GetSpellInfo(26801), "" };
{ 6, "Spellfire1", "Trade_Tailoring", "=ds="..GetSpellInfo(26797), "" };
{ 8, "TailorHighRisk"..AtlasLoot_Expac, "Trade_Tailoring", "=ds=High Risk", "" };
{ 17, "TailoringBags1", "Trade_Tailoring", "=ds="..AL["Bags"], "" };
{ 18, "TailoringMisc1", "Trade_Tailoring", "=ds="..AL["Miscellaneous"], "" };
{ 19, "TailoringShirts1", "Trade_Tailoring", "=ds="..AL["Shirts"], "" };
Back = "CRAFTINGMENU";
Submenu = "Disable";
};
AtlasLoot_Data["CRAFTSET1"] = {
{ 1, "", "INV_Chest_Plate05", "=q6="..GetSpellInfo(2018), "=q5="..BabbleInventory["Plate"] };
{ 2, "BlacksmithingPlateImperialPlate", "INV_Belt_01", "=ds="..AL["Imperial Plate"], "" };
{ 3, "BlacksmithingPlateTheDarksoul", "INV_Shoulder_01", "=ds="..AL["The Darksoul"], "" };
{ 4, "BlacksmithingPlateFelIronPlate", "INV_Chest_Plate07", "=ds="..AL["Fel Iron Plate"], "" };
{ 5, "BlacksmithingPlateAdamantiteB", "INV_Gauntlets_30", "=ds="..AL["Adamantite Battlegear"], "" };
{ 6, "BlacksmithingPlateFlameG", "INV_Helmet_22", "=ds="..AL["Flame Guard"], "=q5="..AL["Fire Resistance Gear"] };
{ 7, "BlacksmithingPlateEnchantedAdaman", "INV_Belt_29", "=ds="..AL["Enchanted Adamantite Armor"], "=q5="..AL["Arcane Resistance Gear"] };
{ 8, "BlacksmithingPlateKhoriumWard", "INV_Boots_Chain_01", "=ds="..AL["Khorium Ward"], "" };
{ 9, "BlacksmithingPlateFaithFelsteel", "INV_Pants_Plate_06", "=ds="..AL["Faith in Felsteel"], "" };
{ 10, "BlacksmithingPlateBurningRage", "INV_Gauntlets_26", "=ds="..AL["Burning Rage"], "" };
{ 11, "BlacksmithingPlateOrnateSaroniteBattlegear", "inv_helmet_130", "=ds="..AL["Ornate Saronite Battlegear"], "" };
{ 12, "BlacksmithingPlateSavageSaroniteBattlegear", "inv_helmet_130", "=ds="..AL["Savage Saronite Battlegear"], "" };
{ 16, "", "INV_Chest_Chain_04", "=q6="..GetSpellInfo(2018), "=q5="..BabbleInventory["Mail"] };
{ 17, "BlacksmithingMailBloodsoulEmbrace", "INV_Shoulder_15", "=ds="..AL["Bloodsoul Embrace"], "" };
{ 18, "BlacksmithingMailFelIronChain", "INV_Helmet_35", "=ds="..AL["Fel Iron Chain"], "" };
Next = "CRAFTSET2";
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["CRAFTSET2"] = {
{ 1, "LeatherworkingLeatherVolcanicArmor", "INV_Pants_06", "=ds="..AL["Volcanic Armor"], "=q5="..AL["Fire Resistance Gear"] };
{ 2, "LeatherworkingLeatherIronfeatherArmor", "INV_Chest_Leather_06", "=ds="..AL["Ironfeather Armor"], "" };
{ 3, "LeatherworkingLeatherStormshroudArmor", "INV_Chest_Leather_08", "=ds="..AL["Stormshroud Armor"], "" };
{ 4, "LeatherworkingLeatherDevilsaurArmor", "INV_Pants_Wolf", "=ds="..AL["Devilsaur Armor"], "" };
{ 5, "LeatherworkingLeatherBloodTigerH", "INV_Shoulder_23", "=ds="..AL["Blood Tiger Harness"], "" };
{ 6, "LeatherworkingLeatherPrimalBatskin", "INV_Chest_Leather_03", "=ds="..AL["Primal Batskin"], "" };
{ 7, "LeatherworkingLeatherWildDraenishA", "INV_Pants_Leather_07", "=ds="..AL["Wild Draenish Armor"], "" };
{ 8, "LeatherworkingLeatherThickDraenicA", "INV_Boots_Chain_01", "=ds="..AL["Thick Draenic Armor"], "" };
{ 9, "LeatherworkingLeatherFelSkin", "INV_Gauntlets_22", "=ds="..AL["Fel Skin"], "" };
{ 10, "LeatherworkingLeatherSClefthoof", "INV_Boots_07", "=ds="..AL["Strength of the Clefthoof"], "" };
{ 11, "LeatherworkingLeatherPrimalIntent", "INV_Chest_Cloth_45", "=ds="..AL["Primal Intent"], "=q5="..GetSpellInfo(10658) };
{ 12, "LeatherworkingLeatherWindhawkArmor", "INV_Chest_Leather_01", "=ds="..AL["Windhawk Armor"], "=q5="..GetSpellInfo(10660) };
{ 16, "LeatherworkingLeatherBoreanEmbrace", "inv_helmet_110", "=ds="..AL["Borean Embrace"], "" };
{ 17, "LeatherworkingLeatherIceborneEmbrace", "inv_chest_fur", "=ds="..AL["Iceborne Embrace"], "" };
{ 18, "LeatherworkingLeatherEvisceratorBattlegear", "inv_helmet_04", "=ds="..AL["Eviscerator's Battlegear"], "" };
{ 19, "LeatherworkingLeatherOvercasterBattlegear", "inv_pants_leather_09", "=ds="..AL["Overcaster Battlegear"], "" };
Prev = "CRAFTSET1";
Next = "CRAFTSET3";
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["CRAFTSET3"] = {
{ 1, "LeatherworkingMailGreenDragonM", "INV_Pants_05", "=ds="..AL["Green Dragon Mail"], "=q5="..AL["Nature Resistance Gear"] };
{ 2, "LeatherworkingMailBlueDragonM", "INV_Chest_Chain_04", "=ds="..AL["Blue Dragon Mail"], "=q5="..AL["Arcane Resistance Gear"] };
{ 3, "LeatherworkingMailBlackDragonM", "INV_Pants_03", "=ds="..AL["Black Dragon Mail"], "=q5="..AL["Fire Resistance Gear"] };
{ 4, "LeatherworkingMailScaledDraenicA", "INV_Pants_Mail_07", "=ds="..AL["Scaled Draenic Armor"], "" };
{ 5, "LeatherworkingMailFelscaleArmor", "INV_Boots_Chain_08", "=ds="..AL["Felscale Armor"], "" };
{ 6, "LeatherworkingMailFelstalkerArmor", "INV_Belt_13", "=ds="..AL["Felstalker Armor"], "" };
{ 7, "LeatherworkingMailNetherFury", "INV_Pants_Plate_12", "=ds="..AL["Fury of the Nether"], "" };
{ 8, "LeatherworkingMailNetherscaleArmor", "INV_Belt_29", "=ds="..AL["Netherscale Armor"], "=q5="..GetSpellInfo(10656) };
{ 9, "LeatherworkingMailNetherstrikeArmor", "INV_Belt_03", "=ds="..AL["Netherstrike Armor"], "=q5="..GetSpellInfo(10656) };
{ 16, "LeatherworkingMailFrostscaleBinding", "inv_chest_chain_13", "=ds="..AL["Frostscale Binding"], "" };
{ 17, "LeatherworkingMailNerubianHive", "inv_helmet_110", "=ds="..AL["Nerubian Hive"], "" };
{ 18, "LeatherworkingMailStormhideBattlegear", "inv_pants_mail_18", "=ds="..AL["Stormhide Battlegear"], "" };
{ 19, "LeatherworkingMailSwiftarrowBattlefear", "inv_belt_19", "=ds="..AL["Swiftarrow Battlefear"], "" };
Prev = "CRAFTSET2";
Next = "CRAFTSET4";
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["CRAFTSET4"] = {
{ 1, "TailoringBloodvineG", "INV_Pants_Cloth_14", "=ds="..AL["Bloodvine Garb"], "" };
{ 2, "TailoringNeatherVest", "INV_Chest_Cloth_29", "=ds="..AL["Netherweave Vestments"], "" };
{ 3, "TailoringImbuedNeather", "INV_Pants_Leather_09", "=ds="..AL["Imbued Netherweave"], "" };
{ 4, "TailoringArcanoVest", "INV_Chest_Cloth_01", "=ds="..AL["Arcanoweave Vestments"], "=q5="..AL["Arcane Resistance Gear"] };
{ 5, "TailoringTheUnyielding", "INV_Belt_03", "=ds="..AL["The Unyielding"], "" };
{ 6, "TailoringWhitemendWis", "INV_Helmet_53", "=ds="..AL["Whitemend Wisdom"], "" };
{ 7, "TailoringSpellstrikeInfu", "INV_Pants_Cloth_14", "=ds="..AL["Spellstrike Infusion"], "" };
{ 8, "TailoringBattlecastG", "INV_Helmet_70", "=ds="..AL["Battlecast Garb"], "" };
{ 9, "TailoringSoulclothEm", "INV_Chest_Cloth_12", "=ds="..AL["Soulcloth Embrace"], "=q5="..AL["Arcane Resistance Gear"] };
{ 10, "TailoringPrimalMoon", "INV_Chest_Cloth_04", "=ds="..AL["Primal Mooncloth"], "=q5="..GetSpellInfo(26798) };
{ 11, "TailoringShadowEmbrace", "INV_Shoulder_25", "=ds="..AL["Shadow's Embrace"], "=q5="..GetSpellInfo(26801) };
{ 12, "TailoringSpellfireWrath", "INV_Gauntlets_19", "=ds="..AL["Wrath of Spellfire"], "=q5="..GetSpellInfo(26797) };
{ 16, "TailoringFrostwovenPower", "inv_belt_29", "=ds="..AL["Frostwoven Power"], "" };
{ 17, "TailoringDuskweaver", "inv_chest_cloth_19", "=ds="..AL["Frostsavage Battlegear"], "" };
{ 18, "TailoringFrostsavageBattlegear", "inv_helmet_125", "=ds="..AL["Battlecast Garb"], "" };
Prev = "CRAFTSET3";
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["COOKINGDAILYMENU"] = {
{ 2, "CookingDaily1", "inv_misc_cauldron_arcane", "=ds="..BabbleZone["Shattrath"], "=q5="..AL["Burning Crusade"] };
{ 17, "CookingDaily2", "achievement_profession_chefhat", "=ds="..BabbleZone["Dalaran"], "=q5="..AL["Wrath of the Lich King"] };
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["FISHINGDAILYMENU"] = {
{ 2, "FishingDaily1", "inv_drink_19", "=ds="..BabbleZone["Terokkar Forest"], "=q5="..AL["Burning Crusade"] };
{ 17, "FishingDaily2", "inv_fishingpole_05", "=ds="..BabbleZone["Dalaran"], "=q5="..AL["Wrath of the Lich King"] };
Back = "CRAFTINGMENU";
};
AtlasLoot_Data["JEWELCRAFTINGDAILYMENU"] = {
{ 2, "JewelcraftingDaily1", "inv_jewelcrafting_gem_32", "=ds="..BabbleInventory["Red"].." / "..BabbleInventory["Yellow"].." "..BabbleInventory["Gem"], "=q5="..AL["Wrath of the Lich King"] };
{ 3, "JewelcraftingDaily3", "inv_jewelcrafting_gem_34", "=ds="..BabbleInventory["Green"].." "..BabbleInventory["Gem"], "=q5="..AL["Wrath of the Lich King"] };
{ 4, "JewelcraftingDaily5", "inv_jewelcrafting_gem_35", "=ds="..BabbleInventory["Blue"].." / "..BabbleInventory["Meta"].." "..BabbleInventory["Gem"], "=q5="..AL["Wrath of the Lich King"] };
{ 17, "JewelcraftingDaily2", "inv_jewelcrafting_gem_33", "=ds="..BabbleInventory["Orange"].." "..BabbleInventory["Gem"], "=q5="..AL["Wrath of the Lich King"] };
{ 18, "JewelcraftingDaily4", "inv_jewelcrafting_gem_31", "=ds="..BabbleInventory["Purple"].." "..BabbleInventory["Gem"], "=q5="..AL["Wrath of the Lich King"] };
{ 19, "JewelcraftingDaily6", "inv_jewelcrafting_dragonseye01", "=ds="..AL["Dragon's Eye"].." / "..BabbleInventory["Neck"].." / "..BabbleInventory["Ring"], "=q5="..AL["Wrath of the Lich King"] };
Back = "CRAFTINGMENU";
};
--Please don't delete EmptyTable, it is needed as it is certain to load
--even if no loot modules have loaded
AtlasLoot_Data["EmptyTable"] = {
AtlasLoot_SubMenus["CraftingWRATH"] = {
Module = "AtlasLootCrafting";
{ "", "AlchemyWRATH"};
{ "", "SmithingWRATH"};
{ "", "EnchantingWRATH"};
{ "", "EngineeringWRATH"};
{ "", "JewelcraftingWRATH"};
{ "", "LeatherworkingWRATH"};
{ "", "TailoringWRATH"};
{ "", "Inscription"};
{ "", "Mining"};
{ "", "CookingWRATH"};
{ "", "FirstAid"};
{"High Risk:", "", "Header"};
--[[ { "", "AlchemyHighRiskWRATH"};
{ "", "SmithingHighRiskWRATH"};
{ "", "EnchantingHighRiskWRATH"};
{ "", "EngineeringHighRiskWRATH"};
{ "", "JewelcraftingHighRiskWRATH"};
{ "", "LeatherworkingHighRiskWRATH"};
{ "", "TailoringHighRiskWRATH"}; ]]
};
+118
View File
@@ -0,0 +1,118 @@
--Invoke all libraries
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
local BabbleBoss = AtlasLoot_GetLocaleLibBabble("LibBabble-Boss-3.0");
local BabbleFaction = AtlasLoot_GetLocaleLibBabble("LibBabble-Faction-3.0");
local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0");
local BabbleInventory = AtlasLoot_GetLocaleLibBabble("LibBabble-Inventory-3.0");
--Dungeon and Raid Menus
AtlasLoot_SubMenus["Dungeons and Raids CLASSIC"] = {
Module = "AtlasLootOriginalWoW";
{"Raids:", "OldKeys", "Header"};
{"", "MoltenCore"};
{"", "ZulGurub"};
{"", "Onyxia60"};
{"", "BlackwingLair"};
{"", "RuinsofAQ"};
{"", "TempleofAQ"};
{"", "Naxxramas60"};
{"Dungeons:", "OldKeys", "Header"};
{"", "BlackfathomDeeps"};
{"", "BlackrockDepths"};
{"", "LowerBlackrock"};
{"", "UpperBlackrock"};
{"", "TheDeadmines"};
{"", "DireMaulNorth"};
{"", "DireMaulEast"};
{"", "DireMaulWest"};
{"", "Gnomeregan"};
{"", "Maraudon"};
{"", "RagefireChasm"};
{"", "RazorfenDowns"};
{"", "RazorfenKraul"};
{"", "Scarlet Monastery"};
{"", "Scholomance"};
{"", "ShadowfangKeep"};
{"", "TheStockade"};
{"", "Stratholme"};
{"", "SunkenTemple"};
{"", "Uldaman"};
{"", "WailingCaverns"};
{"", "ZulFarrak"};
};
AtlasLoot_SubMenus["Dungeons and Raids TBC"] = {
Module = "AtlasLootBurningCrusade";
{"Raids:", "BCKeys", "Header"};
{"", "Karazhan"};
{"", "GruulsLair"};
{"", "HCMagtheridon"};
{"", "ZulAman"};
{"", "CFRSerpentshrine"};
{"", "TKEye"};
{"", "CoTHyjal"};
{"", "BlackTemple"};
{"", "SunwellPlateau"};
---- Dungeons -----
{"Dungeons:", "BCKeys", "Header"};
{"", "HCRamparts"};
{"", "HCShatteredHalls"};
{"", "HCFurnace"};
{"", "TKBot"};
{"", "TKArc"};
{"", "TKMech"};
{"", "AuchCrypts"};
{"", "AuchManaTombs"};
{"", "AuchSethekk"};
{"", "AuchShadowLab"};
{"", "CoTOldHillsbrad"};
{"", "CoTBlackMorass"};
{"", "CFRSlavePens"};
{"", "CFRSteamvault"};
{"", "CFRUnderbog"};
{"", "MagistersTerrace"};
};
AtlasLoot_SubMenus["Dungeons and Raids WRATH"] = {
Module = "AtlasLootWotLK";
{"Raids:", "WrathKeys", "Header"};
{"", "Naxxramas80"};
{"", "Sartharion"};
{"", "Malygos"};
{"", "VaultofArchavon_A"};
{"", "Ulduar"};
{"", "TrialoftheCrusader_A"};
{"", "Onyxia_1"};
{"", "IcecrownCitadel"};
{"", "Halion"};
{"Dungeons:", "WrathKeys", "Header"};
{"", "Ahnkahet"};
{"", "AzjolNerub"};
{"", "CoTStratholme"};
{"", "DrakTharonKeep"};
{"", "ForgeofSouls"};
{"", "Gundrak"};
{"", "HallsofLightning"};
{"", "HallsofReflection"};
{"", "HallsofStone"};
{"", "TheNexus"};
{"", "TheOculus"};
{"", "PitofSaron"};
{"", "TrialoftheChampion"};
{"", "UtgardeKeep"};
{"", "UtgardePinnacle"};
{"", "TheVioletHold"};
};
AtlasLoot_SubMenus["WorldBossesMenuCLASSIC"] = {
Module = "AtlasLootOriginalWoW";
AutoLoad = true;
{ "","WorldBossesCLASSIC"};
};
AtlasLoot_SubMenus["WorldBossesMenuTBC"] = {
Module = "AtlasLootBurningCrusade";
AutoLoad = true;
{ "","WorldBossesTBC"};
};
+36
View File
@@ -0,0 +1,36 @@
--[[
Menu.lua
Defines the table listings for the dropdown lists.
]]
--Invoke all libraries
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
local BabbleBoss = AtlasLoot_GetLocaleLibBabble("LibBabble-Boss-3.0")
local BabbleFaction = AtlasLoot_GetLocaleLibBabble("LibBabble-Faction-3.0")
local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
local BabbleInventory = AtlasLoot_GetLocaleLibBabble("LibBabble-Inventory-3.0")
--This is a multi-layer table defining the main loot listing.
--Entries have the text to display, loot table or sub table to link to and if the link is to a loot table or sub table
AtlasLoot_Modules = {
{AL["Dungeons and Raids"], "Dungeons and Raids "};
{AL["Crafting"], "Crafting"};
{AL["Sets/Collections"], "Collections"};
{AL["PvP Rewards"], "PVP"};
{AL["World Bosses"], "WorldBossesMenu"};
{AL["Reputation Factions"], "Reputations"};
{AL["World Events"], "WorldEvents"};
};
AtlasLoot_SubMenus = {};
AtlasLoot_ExpansionMenu = {
{ AL["Classic"], "CLASSIC" };
{ AL["Burning Crusade"], "TBC" };
{ AL["Wrath of the Lich King"], "WRATH" };
};
AtlasLoot_Data["EmptyTable"] = {
Name = AL["Select a Loot Table..."];
{Name = AL["Select a Loot Table..."]};
};
+2
View File
@@ -1,4 +1,6 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="Mainmenu.lua"/>
<Script file="DungeonRaidMenus.lua"/>
<Script file="CraftingMenus.lua"/>
<Script file="PvPMenus.lua"/>
<Script file="SetMenus.lua"/>
+50 -62
View File
@@ -3,70 +3,58 @@ local BabbleInventory = AtlasLoot_GetLocaleLibBabble("LibBabble-Inventory-3.0")
local BabbleFaction = AtlasLoot_GetLocaleLibBabble("LibBabble-Faction-3.0")
local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
AtlasLoot_Data["REPMENUCLASSIC"] = {
{ 1, "Argent1", "inv_jewelry_talisman_07", "=ds="..BabbleFaction["Argent Dawn"], "=q5="..BabbleZone["Eastern Plaguelands"]};
{ 2, "AQBroodRings", "inv_misc_head_dragon_bronze", "=ds="..BabbleFaction["Brood of Nozdormu"], "=q5="..BabbleZone["Temple of Ahn'Qiraj"].." / "..BabbleZone["Caverns of Time"]};
{ 3, "MiscFactions", "INV_Jewelry_Amulet_07", "=ds="..BabbleFaction["The Defilers"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Arathi Basin"]};
{ 4, "MiscFactions", "INV_Misc_Head_Centaur_01", "=ds="..BabbleFaction["Gelkis Clan Centaur"], "=q5="..BabbleZone["Desolace"]};
{ 5, "MiscFactions", "INV_Jewelry_Amulet_07", "=ds="..BabbleFaction["The League of Arathor"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Arathi Basin"]};
{ 6, "AlteracFactions", "INV_Jewelry_StormPikeTrinket_01", "=ds="..BabbleFaction["Stormpike Guard"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Alterac Valley"]};
{ 7, "Timbermaw", "achievement_reputation_timbermaw", "=ds="..BabbleFaction["Timbermaw Hold"], ""};
{ 8, "Zandalar1", "inv_bijou_green", "=ds="..BabbleFaction["Zandalar Tribe"], "=q5="..BabbleZone["Zul'Gurub"]};
{ 16, "BloodsailHydraxian", "INV_Helmet_66", "=ds="..BabbleFaction["Bloodsail Buccaneers"], "=q5="..BabbleZone["Stranglethorn Vale"]};
{ 17, "Cenarion1", "ability_racial_ultravision", "=ds="..BabbleFaction["Cenarion Circle"], ""};
{ 18, "AlteracFactions", "INV_Jewelry_FrostwolfTrinket_01", "=ds="..BabbleFaction["Frostwolf Clan"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Alterac Valley"]};
{ 19, "BloodsailHydraxian", "Spell_Frost_SummonWaterElemental_2", "=ds="..BabbleFaction["Hydraxian Waterlords"], "=q5="..BabbleZone["Molten Core"]};
{ 20, "MiscFactions", "INV_Misc_Head_Centaur_01", "=ds="..BabbleFaction["Magram Clan Centaur"], "=q5="..BabbleZone["Desolace"]};
{ 21, "Thorium1", "INV_Ingot_Mithril", "=ds="..BabbleFaction["Thorium Brotherhood"], "=q5="..BabbleZone["Searing Gorge"]};
{ 22, "MiscFactions", "Ability_Mount_PinkTiger", "=ds="..BabbleFaction["Wintersaber Trainers"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Winterspring"]};
Prev = "REPMENUWRATH";
Next = "REPMENUTBC";
Back = "REPMENU"..AtlasLoot_Expac;
Submenu = "Expansion";
AtlasLoot_SubMenus["ReputationsCLASSIC"] = {
Module = "AtlasLootOriginalWoW";
{ "", "Argent"};
{ "", "AQBroodRings"};
{ "", "AlteracFactions"};
{ "", "ArathiBasinFactions"};
{ "", "Timbermaw"};
{ "", "Zandalar"};
{ "", "Bloodsail"};
{ "", "Cenarion"};
{ "", "Hydraxian"};
{ "", "DesolaceCentaurClans"};
{ "", "Thorium"};
{ "", "Wintersaber"};
};
AtlasLoot_Data["REPMENUTBC"] = {
{ 1, "Aldor1", "INV_Jewelry_Talisman_08", "=ds="..BabbleFaction["The Aldor"], ""};
{ 2, "CExpedition1", "INV_Misc_Ammo_Arrow_02", "=ds="..BabbleFaction["Cenarion Expedition"], "=q5="..BabbleZone["Zangarmarsh"]};
{ 3, "HonorHold1", "INV_BannerPVP_02", "=ds="..BabbleFaction["Honor Hold"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Hellfire Peninsula"]};
{ 4, "Kurenai1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["Kurenai"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Nagrand"]};
{ 5, "Maghar1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["The Mag'har"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Nagrand"]};
{ 6, "Ogrila1", "inv_misc_apexis_crystal", "=ds="..BabbleFaction["Ogri'la"], "=q5="..BabbleZone["Blade's Edge Mountains"]};
{ 7, "Scryer1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["The Scryers"], ""};
{ 8, "Skyguard1", "INV_Misc_Ribbon_01", "=ds="..BabbleFaction["Sha'tari Skyguard"], "=q5="..BabbleZone["Terokkar Forest"].." / "..BabbleZone["Blade's Edge Mountains"]};
{ 9, "Sporeggar1", "inv_mushroom_11", "=ds="..BabbleFaction["Sporeggar"], "=q5="..BabbleZone["Zangarmarsh"]};
{ 10, "Tranquillien1", "INV_Misc_Bandana_03", "=ds="..BabbleFaction["Tranquillien"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Ghostlands"]};
{ 16, "Ashtongue1", "achievement_reputation_ashtonguedeathsworn", "=ds="..BabbleFaction["Ashtongue Deathsworn"], "=q5="..BabbleZone["Shadowmoon Valley"].." / "..BabbleZone["Black Temple"]};
{ 17, "Consortium1", "INV_Weapon_Shortblade_31", "=ds="..BabbleFaction["The Consortium"], ""};
{ 18, "KeepersofTime1", "Ability_Warrior_VictoryRush", "=ds="..BabbleFaction["Keepers of Time"], "=q5="..BabbleZone["Caverns of Time"]};
{ 19, "LowerCity1", "Spell_Holy_ChampionsBond", "=ds="..BabbleFaction["Lower City"], ""};
{ 20, "Netherwing1", "Ability_Mount_Netherdrakepurple", "=ds="..BabbleFaction["Netherwing"], "=q5="..BabbleZone["Shadowmoon Valley"]};
{ 21, "ScaleSands1", "INV_Misc_MonsterScales_13", "=ds="..BabbleFaction["The Scale of the Sands"], "=q5="..BabbleZone["Hyjal Summit"]};
{ 22, "Shatar1", "Ability_Warrior_ShieldMastery", "=ds="..BabbleFaction["The Sha'tar"], ""};
{ 23, "SunOffensive1", "inv_shield_48", "=ds="..BabbleFaction["Shattered Sun Offensive"], "=q5="..BabbleZone["Isle of Quel'Danas"]};
{ 24, "Thrallmar1", "INV_BannerPVP_01", "=ds="..BabbleFaction["Thrallmar"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Hellfire Peninsula"]};
{ 25, "VioletEye1", "spell_holy_mindsooth", "=ds="..BabbleFaction["The Violet Eye"], "=q5="..BabbleZone["Karazhan"]};
Prev = "REPMENUCLASSIC";
Next = "REPMENUWRATH";
Back = "REPMENU"..AtlasLoot_Expac;
Submenu = "Expansion";
AtlasLoot_SubMenus["ReputationsTBC"] = {
Module = "AtlasLootBurningCrusade";
{ "", "Aldor1", "INV_Jewelry_Talisman_08", "=ds="..BabbleFaction["The Aldor"], ""};
{ "", "CExpedition1", "INV_Misc_Ammo_Arrow_02", "=ds="..BabbleFaction["Cenarion Expedition"], "=q5="..BabbleZone["Zangarmarsh"]};
{ "", "HonorHold1", "INV_BannerPVP_02", "=ds="..BabbleFaction["Honor Hold"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Hellfire Peninsula"]};
{ "", "Kurenai1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["Kurenai"], "=q5="..BabbleFaction["Alliance"].." - "..BabbleZone["Nagrand"]};
{ "", "Maghar1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["The Mag'har"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Nagrand"]};
{ "", "Ogrila1", "inv_misc_apexis_crystal", "=ds="..BabbleFaction["Ogri'la"], "=q5="..BabbleZone["Blade's Edge Mountains"]};
{ "", "Scryer1", "INV_Misc_Foot_Centaur", "=ds="..BabbleFaction["The Scryers"], ""};
{ "", "Skyguard1", "INV_Misc_Ribbon_01", "=ds="..BabbleFaction["Sha'tari Skyguard"], "=q5="..BabbleZone["Terokkar Forest"].." / "..BabbleZone["Blade's Edge Mountains"]};
{ "", "Sporeggar1", "inv_mushroom_11", "=ds="..BabbleFaction["Sporeggar"], "=q5="..BabbleZone["Zangarmarsh"]};
{ "", "Tranquillien1", "INV_Misc_Bandana_03", "=ds="..BabbleFaction["Tranquillien"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Ghostlands"]};
{ "", "Ashtongue1", "achievement_reputation_ashtonguedeathsworn", "=ds="..BabbleFaction["Ashtongue Deathsworn"], "=q5="..BabbleZone["Shadowmoon Valley"].." / "..BabbleZone["Black Temple"]};
{ "", "Consortium1", "INV_Weapon_Shortblade_31", "=ds="..BabbleFaction["The Consortium"], ""};
{ "", "KeepersofTime1", "Ability_Warrior_VictoryRush", "=ds="..BabbleFaction["Keepers of Time"], "=q5="..BabbleZone["Caverns of Time"]};
{ "", "LowerCity1", "Spell_Holy_ChampionsBond", "=ds="..BabbleFaction["Lower City"], ""};
{ "", "Netherwing1", "Ability_Mount_Netherdrakepurple", "=ds="..BabbleFaction["Netherwing"], "=q5="..BabbleZone["Shadowmoon Valley"]};
{ "", "ScaleSands1", "INV_Misc_MonsterScales_13", "=ds="..BabbleFaction["The Scale of the Sands"], "=q5="..BabbleZone["Hyjal Summit"]};
{ "", "Shatar1", "Ability_Warrior_ShieldMastery", "=ds="..BabbleFaction["The Sha'tar"], ""};
{ "", "SunOffensive1", "inv_shield_48", "=ds="..BabbleFaction["Shattered Sun Offensive"], "=q5="..BabbleZone["Isle of Quel'Danas"]};
{ "", "Thrallmar1", "INV_BannerPVP_01", "=ds="..BabbleFaction["Thrallmar"], "=q5="..BabbleFaction["Horde"].." - "..BabbleZone["Hellfire Peninsula"]};
{ "", "VioletEye1", "spell_holy_mindsooth", "=ds="..BabbleFaction["The Violet Eye"], "=q5="..BabbleZone["Karazhan"]};
};
AtlasLoot_Data["REPMENUWRATH"] = {
{ 1, "AllianceVanguard1", "spell_misc_hellifrepvphonorholdfavor", "=ds="..BabbleFaction["Alliance Vanguard"], "=q5="..BabbleFaction["Alliance"]};
{ 2, "WinterfinRetreat", "INV_Misc_Shell_04", "=ds="..BabbleFaction["Winterfin Retreat"], "=q5="..BabbleZone["Borean Tundra"]};
{ 3, "TheWyrmrestAccord", "achievement_reputation_wyrmresttemple", "=ds="..BabbleFaction["The Wyrmrest Accord"], "=q5="..BabbleZone["Dragonblight"]};
{ 4, "KnightsoftheEbonBlade", "achievement_reputation_knightsoftheebonblade", "=ds="..BabbleFaction["Knights of the Ebon Blade"], "=q5="..BabbleZone["Zul'Drak"].." / "..BabbleZone["Icecrown"]};
{ 5, "TheOracles", "inv_misc_head_murloc_01", "=ds="..BabbleFaction["The Oracles"], "=q5="..BabbleZone["Sholazar Basin"]};
{ 6, "TheSonsofHodir1", "Spell_Holy_DivinePurpose", "=ds="..BabbleFaction["The Sons of Hodir"], "=q5="..BabbleZone["The Storm Peaks"]};
{ 7, "HordeExpedition1", "spell_misc_hellifrepvpthrallmarfavor", "=ds="..BabbleFaction["Horde Expedition"], "=q5="..BabbleFaction["Horde"]};
{ 16, "TheKaluak", "INV_Fishingpole_03", "=ds="..BabbleFaction["The Kalu'ak"], "" };
{ 17, "KirinTor", "achievement_reputation_kirintor", "=ds="..BabbleFaction["Kirin Tor"], "=q5="..BabbleZone["Borean Tundra"].." / "..BabbleZone["Dalaran"]};
{ 18, "ArgentCrusade", "INV_Jewelry_Talisman_08", "=ds="..BabbleFaction["Argent Crusade"], "=q5="..BabbleZone["Zul'Drak"].." / "..BabbleZone["Icecrown"]};
{ 19, "FrenzyheartTribe", "ability_mount_whitedirewolf", "=ds="..BabbleFaction["Frenzyheart Tribe"], "=q5="..BabbleZone["Sholazar Basin"]};
{ 20, "AshenVerdict", "INV_Jewelry_Ring_85", "=ds="..BabbleFaction["The Ashen Verdict"], "=q5="..BabbleZone["Icecrown"]};
Prev = "REPMENUTBC";
Next = "REPMENUCLASSIC";
Back = "REPMENU"..AtlasLoot_Expac;
Submenu = "Expansion";
AtlasLoot_SubMenus["ReputationsWRATH"] = {
Module = "AtlasLootWotLK";
{ "", "AllianceVanguard1", "spell_misc_hellifrepvphonorholdfavor", "=ds="..BabbleFaction["Alliance Vanguard"], "=q5="..BabbleFaction["Alliance"]};
{ "", "WinterfinRetreat", "INV_Misc_Shell_04", "=ds="..BabbleFaction["Winterfin Retreat"], "=q5="..BabbleZone["Borean Tundra"]};
{ "", "TheWyrmrestAccord", "achievement_reputation_wyrmresttemple", "=ds="..BabbleFaction["The Wyrmrest Accord"], "=q5="..BabbleZone["Dragonblight"]};
{ "", "KnightsoftheEbonBlade", "achievement_reputation_knightsoftheebonblade", "=ds="..BabbleFaction["Knights of the Ebon Blade"], "=q5="..BabbleZone["Zul'Drak"].." / "..BabbleZone["Icecrown"]};
{ "", "TheOracles", "inv_misc_head_murloc_01", "=ds="..BabbleFaction["The Oracles"], "=q5="..BabbleZone["Sholazar Basin"]};
{ "", "TheSonsofHodir1", "Spell_Holy_DivinePurpose", "=ds="..BabbleFaction["The Sons of Hodir"], "=q5="..BabbleZone["The Storm Peaks"]};
{ "", "HordeExpedition1", "spell_misc_hellifrepvpthrallmarfavor", "=ds="..BabbleFaction["Horde Expedition"], "=q5="..BabbleFaction["Horde"]};
{ "", "TheKaluak", "INV_Fishingpole_03", "=ds="..BabbleFaction["The Kalu'ak"], "" };
{ "", "KirinTor", "achievement_reputation_kirintor", "=ds="..BabbleFaction["Kirin Tor"], "=q5="..BabbleZone["Borean Tundra"].." / "..BabbleZone["Dalaran"]};
{ "", "ArgentCrusade", "INV_Jewelry_Talisman_08", "=ds="..BabbleFaction["Argent Crusade"], "=q5="..BabbleZone["Zul'Drak"].." / "..BabbleZone["Icecrown"]};
{ "", "FrenzyheartTribe", "ability_mount_whitedirewolf", "=ds="..BabbleFaction["Frenzyheart Tribe"], "=q5="..BabbleZone["Sholazar Basin"]};
{ "", "AshenVerdict", "INV_Jewelry_Ring_85", "=ds="..BabbleFaction["The Ashen Verdict"], "=q5="..BabbleZone["Icecrown"]};
};
+1 -13
View File
@@ -618,7 +618,7 @@ end
AtlasLoot_TableNames["BRDImperatorDagranThaurissan"] = { BabbleBoss["Emperor Dagran Thaurissan"], "AtlasLootOriginalWoW" };
AtlasLoot_TableNames["BRDBSPlans"] = { "Blacksmith Plans".." ("..BabbleZone["Blackrock Depths"]..")", "AtlasLootOriginalWoW" };
AtlasLoot_TableNames["BRDTrash"] = { AL["Trash Mobs"].." ("..BabbleZone["Blackrock Depths"]..")", "AtlasLootOriginalWoW" };
-- Lower Blackrock Spire
-- Lower Blackrock Spirequ
AtlasLoot_TableNames["LBRSQuestItems"] = { BabbleZone["Lower Blackrock Spire"].." - "..AL["Quest Item"], "AtlasLootOriginalWoW" };
AtlasLoot_TableNames["LBRSSpirestoneButcher"] = { BabbleBoss["Spirestone Butcher"].." ("..AL["Rare"]..")", "AtlasLootOriginalWoW" };
AtlasLoot_TableNames["LBRSOmokk"] = { BabbleBoss["Highlord Omokk"], "AtlasLootOriginalWoW" };
@@ -1635,24 +1635,12 @@ end
-- Alchemy
--AtlasLoot_TableNames["AlchemyBattleElixir"] = { AL["Battle Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyBattleElixirCLASSIC"] = { AL["Battle Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyBattleElixirTBC"] = { AL["Battle Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyBattleElixirWRATH"] = { AL["Battle Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyGuardianElixirCLASSIC"] = { AL["Guardian Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyGuardianElixirTBC"] = { AL["Guardian Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyGuardianElixirWRATH"] = { AL["Guardian Elixirs"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyPotionCLASSIC"] = { AL["Potions"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyPotion1CLASSIC"] = { AL["Potions"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyPotionTBC"] = { AL["Potions"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyPotionWRATH"] = { AL["Potions"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyTransmuteCLASSIC"] = { AL["Transmutes"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyTransmuteTBC"] = { AL["Transmutes"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyTransmuteWRATH"] = { AL["Transmutes"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyFlaskCLASSIC"] = { AL["Flasks"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyFlaskTBC"] = { AL["Flasks"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyFlaskWRATH"] = { AL["Flasks"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyMiscCLASSIC"] = { AL["Miscellaneous"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyMiscTBC"] = { AL["Miscellaneous"], "AtlasLootCrafting" };
AtlasLoot_TableNames["AlchemyMiscWRATH"] = { AL["Miscellaneous"], "AtlasLootCrafting" };
-- BlackSmithing
AtlasLoot_TableNames["SmithingArmorCLASSIC"] = { BLACKSMITHING..": "..BabbleInventory["Armor"], "AtlasLootCrafting" };
AtlasLoot_TableNames["SmithingArmorCLASSIC2"] = { BLACKSMITHING..": "..BabbleInventory["Armor"], "AtlasLootCrafting" };
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -19,5 +19,7 @@
## X-Curse-Project-ID: atlasloot-enhanced
## X-Curse-Repository-ID: wow/atlasloot-enhanced/mainline
crafting.lua
craftingCLASSIC.lua
craftingTBC.lua
craftingWRATH.lua
localization.lua
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff