Added source on tooltip option
This commit is contained in:
+56
-44
@@ -477,6 +477,7 @@ function AtlasLootOptions_Init()
|
||||
AtlasLootOptionsFrameDefaultTT:SetChecked(AtlasLootCharDB.DefaultTT);
|
||||
AtlasLootOptionsFrameLootlinkTT:SetChecked(AtlasLootCharDB.LootlinkTT);
|
||||
AtlasLootOptionsFrameItemSyncTT:SetChecked(AtlasLootCharDB.ItemSyncTT);
|
||||
AtlasLootOptionsFrameShowSource:SetChecked(AtlasLootCharDB.ShowSource);
|
||||
AtlasLootOptionsFrameEquipCompare:SetChecked(AtlasLootCharDB.EquipCompare);
|
||||
AtlasLootOptionsFrameOpaque:SetChecked(AtlasLootCharDB.Opaque);
|
||||
AtlasLootOptionsFrameItemID:SetChecked(AtlasLootCharDB.ItemIDs);
|
||||
@@ -504,6 +505,7 @@ function AtlasLootOptions_Fresh()
|
||||
AtlasLootCharDB.DefaultTT = true;
|
||||
AtlasLootCharDB.LootlinkTT = false;
|
||||
AtlasLootCharDB.ItemSyncTT = false;
|
||||
AtlasLootCharDB.ShowSource = true;
|
||||
AtlasLootCharDB.EquipCompare = false;
|
||||
AtlasLootCharDB.Opaque = false;
|
||||
AtlasLootCharDB.ItemIDs = false;
|
||||
@@ -1003,6 +1005,15 @@ function AtlasLootOptions_ItemSyncTTToggle()
|
||||
AtlasLootOptions_Init();
|
||||
end
|
||||
|
||||
function AtlasLootOptions_ShowSourceToggle()
|
||||
if(AtlasLootCharDB.ShowSource) then
|
||||
AtlasLootCharDB.ShowSource = false;
|
||||
else
|
||||
AtlasLootCharDB.ShowSource = true;
|
||||
end
|
||||
AtlasLootOptions_Init();
|
||||
end
|
||||
|
||||
--[[
|
||||
AtlasLootOptions_EquipCompareToggle:
|
||||
Toggles EquipCompare. Adds a tooltip with the equipped item (if it's the case) next to the default one.
|
||||
@@ -2219,6 +2230,7 @@ function AtlasLootOptions_DefaultSettings()
|
||||
AtlasLootCharDB.DefaultTT = true;
|
||||
AtlasLootCharDB.LootlinkTT = false;
|
||||
AtlasLootCharDB.ItemSyncTT = false;
|
||||
AtlasLootCharDB.ShowSource = true;
|
||||
AtlasLootCharDB.EquipCompare = false;
|
||||
AtlasLootCharDB.Opaque = false;
|
||||
AtlasLootCharDB.ItemIDs = false;
|
||||
@@ -2304,50 +2316,50 @@ end
|
||||
AtlasLoot_HewdropDown = {
|
||||
[1] = {
|
||||
[AL["Dungeons & Raids"]] = {
|
||||
[1] = {{ AL["Ragefire Chasm"], "RagefireChasm", "Submenu" },},
|
||||
[2] = {{ AL["Wailing Caverns"], "WailingCaverns", "Submenu" },},
|
||||
[3] = {{ AL["The Deadmines"], "Deadmines", "Submenu" },},
|
||||
[4] = {{ AL["Shadowfang Keep"], "ShadowfangKeep", "Submenu" },},
|
||||
[5] = {{ AL["Blackfathom Deeps"], "BlackfathomDeeps", "Submenu" },},
|
||||
[6] = {{ AL["The Stockade"], "TheStockade", "Submenu" },},
|
||||
[7] = {{ AL["Gnomeregan"], "Gnomeregan", "Submenu" },},
|
||||
[8] = {{ AL["Razorfen Kraul"], "RazorfenKraul", "Submenu" },},
|
||||
[9] = {{ AL["The Crescent Grove"], "TheCrescentGrove", "Submenu" },},
|
||||
[10] = {[AL["Scarlet Monastery"]] = {
|
||||
{ AL["Scarlet Monastery (Graveyard)"], "SMGraveyard", "Submenu" },
|
||||
{ AL["Scarlet Monastery (Library)"], "SMLibrary", "Submenu" },
|
||||
{ AL["Scarlet Monastery (Armory)"], "SMArmory", "Submenu" },
|
||||
{ AL["Scarlet Monastery (Cathedral)"], "SMCathedral", "Submenu" },
|
||||
[1] = {{ AL["[13-18] Ragefire Chasm"], "RagefireChasm", "Submenu" },},
|
||||
[2] = {{ AL["[17-24] Wailing Caverns"], "WailingCaverns", "Submenu" },},
|
||||
[3] = {{ AL["[17-24] The Deadmines"], "Deadmines", "Submenu" },},
|
||||
[4] = {{ AL["[22-30] Shadowfang Keep"], "ShadowfangKeep", "Submenu" },},
|
||||
[5] = {{ AL["[23-32] Blackfathom Deeps"], "BlackfathomDeeps", "Submenu" },},
|
||||
[6] = {{ AL["[22-30] The Stockade"], "TheStockade", "Submenu" },},
|
||||
[7] = {{ AL["[29-38] Gnomeregan"], "Gnomeregan", "Submenu" },},
|
||||
[8] = {{ AL["[29-38] Razorfen Kraul"], "RazorfenKraul", "Submenu" },},
|
||||
[9] = {{ AL["[32-38] The Crescent Grove"], "TheCrescentGrove", "Submenu" },},
|
||||
[10] = {[AL["[27-45] Scarlet Monastery"]] = {
|
||||
{ AL["[27-36] Scarlet Monastery (Graveyard)"], "SMGraveyard", "Submenu" },
|
||||
{ AL["[28-39] Scarlet Monastery (Library)"], "SMLibrary", "Submenu" },
|
||||
{ AL["[32-41] Scarlet Monastery (Armory)"], "SMArmory", "Submenu" },
|
||||
{ AL["[35-45] Scarlet Monastery (Cathedral)"], "SMCathedral", "Submenu" },
|
||||
},},
|
||||
[11] = {{ AL["Razorfen Downs"], "RazorfenDowns", "Submenu" },},
|
||||
[12] = {{ AL["Uldaman"], "Uldaman", "Submenu" },},
|
||||
[13] = {{ AL["Gilneas City"], "GilneasCity", "Submenu" },},
|
||||
[14] = {{ AL["Maraudon"], "Maraudon", "Submenu" },},
|
||||
[15] = {{ AL["Zul'Farrak"], "ZulFarrak", "Submenu" },},
|
||||
[16] = {{ AL["The Sunken Temple"], "SunkenTemple", "Submenu" },},
|
||||
[17] = {{ AL["Hateforge Quarry"], "HateforgeQuarry", "Submenu" },},
|
||||
[18] = {{ AL["Blackrock Depths"], "BlackrockDepths", "Submenu" },},
|
||||
[19] = {[AL["Dire Maul"]] = {
|
||||
{ AL["Dire Maul (East)"], "DireMaulEast", "Submenu" },
|
||||
{ AL["Dire Maul (West)"], "DireMaulWest", "Submenu" },
|
||||
{ AL["Dire Maul (North)"], "DireMaulNorth", "Submenu" },
|
||||
[11] = {{ AL["[36-46] Razorfen Downs"], "RazorfenDowns", "Submenu" },},
|
||||
[12] = {{ AL["[40-51] Uldaman"], "Uldaman", "Submenu" },},
|
||||
[13] = {{ AL["[42-50] Gilneas City"], "GilneasCity", "Submenu" },},
|
||||
[14] = {{ AL["[45-55] Maraudon"], "Maraudon", "Submenu" },},
|
||||
[15] = {{ AL["[44-54] Zul'Farrak"], "ZulFarrak", "Submenu" },},
|
||||
[16] = {{ AL["[50-60] The Sunken Temple"], "SunkenTemple", "Submenu" },},
|
||||
[17] = {{ AL["[50-60] Hateforge Quarry"], "HateforgeQuarry", "Submenu" },},
|
||||
[18] = {{ AL["[52-60] Blackrock Depths"], "BlackrockDepths", "Submenu" },},
|
||||
[19] = {[AL["[55-60] Dire Maul"]] = {
|
||||
{ AL["[55-60] Dire Maul (East)"], "DireMaulEast", "Submenu" },
|
||||
{ AL["[57-60] Dire Maul (West)"], "DireMaulWest", "Submenu" },
|
||||
{ AL["[57-60] Dire Maul (North)"], "DireMaulNorth", "Submenu" },
|
||||
},},
|
||||
[20] = {{ AL["Scholomance"], "Scholomance", "Submenu" },},
|
||||
[21] = {{ AL["Stratholme"], "Stratholme", "Submenu" },},
|
||||
[22] = {{ AL["Lower Blackrock Spire"], "LowerBlackrock", "Submenu" },},
|
||||
[23] = {{ AL["Upper Blackrock Spire"], "UpperBlackrock", "Submenu" },},
|
||||
[24] = {{ AL["Karazhan Crypt"], "KarazhanCrypt", "Submenu" },},
|
||||
[25] = {{ AL["Caverns of Time: Black Morass"], "CavernsOfTimeBlackMorass", "Submenu" },},
|
||||
[26] = {{ AL["Stormwind Vault"], "StormwindVault", "Submenu" },},
|
||||
[27] = {{ AL["Zul'Gurub"], "ZulGurub", "Submenu" },},
|
||||
[28] = {{ AL["Ruins of Ahn'Qiraj"], "RuinsofAQ", "Submenu" },},
|
||||
[29] = {{ AL["Molten Core"], "MoltenCore", "Submenu" },},
|
||||
[30] = {{ AL["Onyxia's Lair"], "Onyxia", "Submenu" },},
|
||||
[31] = {{ AL["Lower Karazhan Halls"], "LowerKara", "Submenu" },},
|
||||
[32] = {{ AL["Blackwing Lair"], "BlackwingLair", "Submenu" },},
|
||||
[33] = {{ AL["Emerald Sanctum"], "EmeraldSanctum", "Submenu" },},
|
||||
[34] = {{ AL["Temple of Ahn'Qiraj"], "TempleofAQ", "Submenu" },},
|
||||
[35] = {{ AL["Naxxramas"], "Naxxramas", "Submenu" },},
|
||||
[20] = {{ AL["[58-60] Scholomance"], "Scholomance", "Submenu" },},
|
||||
[21] = {{ AL["[58-60] Stratholme"], "Stratholme", "Submenu" },},
|
||||
[22] = {{ AL["[55-60] Lower Blackrock Spire"], "LowerBlackrock", "Submenu" },},
|
||||
[23] = {{ AL["[58-60] Upper Blackrock Spire"], "UpperBlackrock", "Submenu" },},
|
||||
[24] = {{ AL["[58-60] Karazhan Crypt"], "KarazhanCrypt", "Submenu" },},
|
||||
[25] = {{ AL["[60] Caverns of Time: Black Morass"], "CavernsOfTimeBlackMorass", "Submenu" },},
|
||||
[26] = {{ AL["[60] Stormwind Vault"], "StormwindVault", "Submenu" },},
|
||||
[27] = {{ AL["[RAID] Zul'Gurub"], "ZulGurub", "Submenu" },},
|
||||
[28] = {{ AL["[RAID] Ruins of Ahn'Qiraj"], "RuinsofAQ", "Submenu" },},
|
||||
[29] = {{ AL["[RAID] Molten Core"], "MoltenCore", "Submenu" },},
|
||||
[30] = {{ AL["[RAID] Onyxia's Lair"], "Onyxia", "Submenu" },},
|
||||
[31] = {{ AL["[RAID] Lower Karazhan Halls"], "LowerKara", "Submenu" },},
|
||||
[32] = {{ AL["[RAID] Blackwing Lair"], "BlackwingLair", "Submenu" },},
|
||||
[33] = {{ AL["[RAID] Emerald Sanctum"], "EmeraldSanctum", "Submenu" },},
|
||||
[34] = {{ AL["[RAID] Temple of Ahn'Qiraj"], "TempleofAQ", "Submenu" },},
|
||||
[35] = {{ AL["[RAID] Naxxramas"], "Naxxramas", "Submenu" },},
|
||||
},
|
||||
},
|
||||
[2] = { [AL["World Bosses"]] = {
|
||||
@@ -2433,7 +2445,7 @@ AtlasLoot_HewdropDown = {
|
||||
[2] = {{ AL["Children's Week"], "ChildrensWeek", "Table" },},
|
||||
[3] = {{ AL["Elemental Invasion"], "ElementalInvasion", "Table" },},
|
||||
[4] = {{ AL["Feast of Winter Veil"], "Winterviel1", "Table" },},
|
||||
[5] = {{ AL["Gurubashi Arena Booty Run"], "GurubashiArena", "Table" },},
|
||||
[5] = {{ AL["Gurubashi Arena"], "GurubashiArena", "Table" },},
|
||||
[6] = {{ AL["Hallow's End"], "Halloween1", "Table" },},
|
||||
[7] = {{ AL["Harvest Festival"], "HarvestFestival", "Table" },},
|
||||
[8] = {{ AL["Love is in the Air"], "Valentineday", "Table" },},
|
||||
@@ -2667,7 +2679,7 @@ AtlasLoot_HewdropDown_SubTables = {
|
||||
{ AL["Trash Mobs"], "SMCTrash" },
|
||||
},
|
||||
["Scholomance"] = {
|
||||
{ AL["Blood Steward of Kirtonos"], "SCHOLOBlood" },
|
||||
--{ AL["Blood Steward of Kirtonos"], "SCHOLOBlood" },
|
||||
{ AL["Kirtonos the Herald"], "SCHOLOKirtonostheHerald" },
|
||||
{ AL["Jandice Barov"], "SCHOLOJandiceBarov" },
|
||||
{ AL["Lord Blackwood"].." ("..AL["Scourge Invasion"]..")", "SCHOLOLordBlackwood" },
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<Script file="Search.lua"/>
|
||||
<Script file="WorldBoss.lua"/>
|
||||
<Script file="Dungeons.lua"/>
|
||||
<Script file="Tooltip.lua"/>
|
||||
|
||||
<Button name="AtlasLootDefaultFrameButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
|
||||
<Size>
|
||||
@@ -1473,6 +1474,24 @@
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</CheckButton>
|
||||
<CheckButton name="$parentShowSource" inherits="OptionsCheckButtonTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="20" y="-220"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
getglobal(this:GetName().."Text"):SetText(AL["Show Source on Tooltips"]);
|
||||
</OnLoad>
|
||||
<OnClick>
|
||||
AtlasLootOptions_ShowSourceToggle();
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</CheckButton>
|
||||
<CheckButton name="$parentEquipCompare" inherits="OptionsCheckButtonTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
|
||||
@@ -1427,8 +1427,8 @@ AtlasLoot_ButtonRegistry = {
|
||||
Title = AL["Kirtonos the Herald"];
|
||||
Next_Page = "SCHOLOJandiceBarov";
|
||||
Next_Title = AL["Jandice Barov"];
|
||||
Prev_Page = "SCHOLOBlood";
|
||||
Prev_Title = AL["Blood Steward of Kirtonos"];
|
||||
--Prev_Page = "SCHOLOBlood";
|
||||
--Prev_Title = AL["Blood Steward of Kirtonos"];
|
||||
Back_Page = "DUNGEONSMENU1";
|
||||
Back_Title = AL["Dungeons & Raids"];
|
||||
};
|
||||
@@ -5036,7 +5036,7 @@ AtlasLoot_ButtonRegistry = {
|
||||
Back_Title = AL["World Events"];
|
||||
};
|
||||
["GurubashiArena"] = {
|
||||
Title = AL["Gurubashi Arena Booty Run"];
|
||||
Title = AL["Gurubashi Arena"];
|
||||
Back_Page = "WORLDEVENTMENU";
|
||||
Back_Title = AL["World Events"];
|
||||
};
|
||||
|
||||
+41
-41
@@ -19,181 +19,181 @@ function AtlasLoot_DungeonsMenu1()
|
||||
getglobal("AtlasLootItemsFrame_PREV"):Hide();
|
||||
getglobal("AtlasLootServerQueryButton"):Hide();
|
||||
--RFC
|
||||
AtlasLootMenuItem_1_Name:SetText(AL["Ragefire Chasm"]);
|
||||
AtlasLootMenuItem_1_Name:SetText(AL["[13-18] Ragefire Chasm"]);
|
||||
AtlasLootMenuItem_1_Extra:SetText(AL["Orgrimmar"]);
|
||||
AtlasLootMenuItem_1_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_1.lootpage="RFCTaragaman";
|
||||
AtlasLootMenuItem_1:Show();
|
||||
--WC
|
||||
AtlasLootMenuItem_2_Name:SetText(AL["Wailing Caverns"]);
|
||||
AtlasLootMenuItem_2_Name:SetText(AL["[17-24] Wailing Caverns"]);
|
||||
AtlasLootMenuItem_2_Extra:SetText(AL["Barrens"]);
|
||||
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_2.lootpage="WCLordCobrahn";
|
||||
AtlasLootMenuItem_2:Show();
|
||||
--DM
|
||||
AtlasLootMenuItem_3_Name:SetText(AL["The Deadmines"]);
|
||||
AtlasLootMenuItem_3_Name:SetText(AL["[17-24] The Deadmines"]);
|
||||
AtlasLootMenuItem_3_Extra:SetText(AL["Westfall"]);
|
||||
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_3.lootpage="DMRhahkZor";
|
||||
AtlasLootMenuItem_3:Show();
|
||||
--SFK
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["Shadowfang Keep"]);
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["[22-30] Shadowfang Keep"]);
|
||||
AtlasLootMenuItem_4_Extra:SetText(AL["Silverpine Forest"]);
|
||||
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_4.lootpage="SFKRethilgore";
|
||||
AtlasLootMenuItem_4:Show();
|
||||
--BFD
|
||||
AtlasLootMenuItem_5_Name:SetText(AL["Blackfathom Deeps"]);
|
||||
AtlasLootMenuItem_5_Name:SetText(AL["[23-32] Blackfathom Deeps"]);
|
||||
AtlasLootMenuItem_5_Extra:SetText(AL["Ashenvale"]);
|
||||
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_5.lootpage="BFDGhamoora";
|
||||
AtlasLootMenuItem_5:Show();
|
||||
--Stockades
|
||||
AtlasLootMenuItem_6_Name:SetText(AL["The Stockade"]);
|
||||
AtlasLootMenuItem_6_Name:SetText(AL["[22-30] The Stockade"]);
|
||||
AtlasLootMenuItem_6_Extra:SetText(AL["Stormwind"]);
|
||||
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_6.lootpage="SWStTargorr";
|
||||
AtlasLootMenuItem_6:Show();
|
||||
--Gnomer
|
||||
AtlasLootMenuItem_7_Name:SetText(AL["Gnomeregan"]);
|
||||
AtlasLootMenuItem_7_Name:SetText(AL["[29-38] Gnomeregan"]);
|
||||
AtlasLootMenuItem_7_Extra:SetText(AL["Dun Morogh"]);
|
||||
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_7.lootpage="GnGrubbis";
|
||||
AtlasLootMenuItem_7:Show();
|
||||
--RFK
|
||||
AtlasLootMenuItem_8_Name:SetText(AL["Razorfen Kraul"]);
|
||||
AtlasLootMenuItem_8_Name:SetText(AL["[29-38] Razorfen Kraul"]);
|
||||
AtlasLootMenuItem_8_Extra:SetText(AL["Barrens"]);
|
||||
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_8.lootpage="RFKAggem";
|
||||
AtlasLootMenuItem_8:Show();
|
||||
--Crescent Grove
|
||||
AtlasLootMenuItem_9_Name:SetText(AL["The Crescent Grove"]);
|
||||
AtlasLootMenuItem_9_Name:SetText(AL["[32-38] The Crescent Grove"]);
|
||||
AtlasLootMenuItem_9_Extra:SetText(AL["Ashenvale"]);
|
||||
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_9.lootpage="TCGGrovetenderEngryss";
|
||||
AtlasLootMenuItem_9:Show();
|
||||
--SM GY
|
||||
AtlasLootMenuItem_10_Name:SetText(AL["Scarlet Monastery (Graveyard)"]);
|
||||
AtlasLootMenuItem_10_Name:SetText(AL["[27-36] Scarlet Monastery (Graveyard)"]);
|
||||
AtlasLootMenuItem_10_Extra:SetText(AL["Tirisfal Glades"]);
|
||||
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_10.lootpage="SMVishas";
|
||||
AtlasLootMenuItem_10:Show();
|
||||
--SM Library
|
||||
AtlasLootMenuItem_11_Name:SetText(AL["Scarlet Monastery (Library)"]);
|
||||
AtlasLootMenuItem_11_Name:SetText(AL["[28-39] Scarlet Monastery (Library)"]);
|
||||
AtlasLootMenuItem_11_Extra:SetText(AL["Tirisfal Glades"]);
|
||||
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_11.lootpage="SMHoundmasterLoksey";
|
||||
AtlasLootMenuItem_11:Show();
|
||||
--SM Armory
|
||||
AtlasLootMenuItem_12_Name:SetText(AL["Scarlet Monastery (Armory)"]);
|
||||
AtlasLootMenuItem_12_Name:SetText(AL["[32-41] Scarlet Monastery (Armory)"]);
|
||||
AtlasLootMenuItem_12_Extra:SetText(AL["Tirisfal Glades"]);
|
||||
AtlasLootMenuItem_12_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_12.lootpage="SMHerod";
|
||||
AtlasLootMenuItem_12:Show();
|
||||
--SM Cathedral
|
||||
AtlasLootMenuItem_13_Name:SetText(AL["Scarlet Monastery (Cathedral)"]);
|
||||
AtlasLootMenuItem_13_Name:SetText(AL["[35-45] Scarlet Monastery (Cathedral)"]);
|
||||
AtlasLootMenuItem_13_Extra:SetText(AL["Tirisfal Glades"]);
|
||||
AtlasLootMenuItem_13_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_13.lootpage="SMFairbanks";
|
||||
AtlasLootMenuItem_13:Show();
|
||||
--RFD
|
||||
AtlasLootMenuItem_14_Name:SetText(AL["Razorfen Downs"]);
|
||||
AtlasLootMenuItem_14_Name:SetText(AL["[36-46] Razorfen Downs"]);
|
||||
AtlasLootMenuItem_14_Extra:SetText(AL["Barrens"]);
|
||||
AtlasLootMenuItem_14_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_14.lootpage="RFDTutenkash";
|
||||
AtlasLootMenuItem_14:Show();
|
||||
--Uldaman
|
||||
AtlasLootMenuItem_15_Name:SetText(AL["Uldaman"]);
|
||||
AtlasLootMenuItem_15_Name:SetText(AL["[40-51] Uldaman"]);
|
||||
AtlasLootMenuItem_15_Extra:SetText(AL["Badlands"]);
|
||||
AtlasLootMenuItem_15_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_15.lootpage="UldBaelog";
|
||||
AtlasLootMenuItem_15:Show();
|
||||
--Gilneas
|
||||
AtlasLootMenuItem_16_Name:SetText(AL["Gilneas City"]);
|
||||
AtlasLootMenuItem_16_Name:SetText(AL["[42-50] Gilneas City"]);
|
||||
AtlasLootMenuItem_16_Extra:SetText(AL["Gilneas"]);
|
||||
AtlasLootMenuItem_16_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_16.lootpage="GCMatthiasHoltz";
|
||||
AtlasLootMenuItem_16:Show();
|
||||
--Mara
|
||||
AtlasLootMenuItem_17_Name:SetText(AL["Maraudon"]);
|
||||
AtlasLootMenuItem_17_Name:SetText(AL["[45-55] Maraudon"]);
|
||||
AtlasLootMenuItem_17_Extra:SetText(AL["Desolace"]);
|
||||
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_17.lootpage="MaraNoxxion";
|
||||
AtlasLootMenuItem_17:Show();
|
||||
--ZF
|
||||
AtlasLootMenuItem_18_Name:SetText(AL["Zul'Farrak"]);
|
||||
AtlasLootMenuItem_18_Name:SetText(AL["[44-54] Zul'Farrak"]);
|
||||
AtlasLootMenuItem_18_Extra:SetText(AL["Tanaris"]);
|
||||
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_18.lootpage="ZFAntusul";
|
||||
AtlasLootMenuItem_18:Show();
|
||||
--ST
|
||||
AtlasLootMenuItem_19_Name:SetText(AL["The Sunken Temple"]);
|
||||
AtlasLootMenuItem_19_Name:SetText(AL["[50-60] The Sunken Temple"]);
|
||||
AtlasLootMenuItem_19_Extra:SetText(AL["Swamp of Sorrows"]);
|
||||
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_19.lootpage="STBalconyMinibosses";
|
||||
AtlasLootMenuItem_19:Show();
|
||||
--HFQ
|
||||
AtlasLootMenuItem_20_Name:SetText(AL["Hateforge Quarry"]);
|
||||
AtlasLootMenuItem_20_Name:SetText(AL["[50-60] Hateforge Quarry"]);
|
||||
AtlasLootMenuItem_20_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_20.lootpage="HQHighForemanBargulBlackhammer";
|
||||
AtlasLootMenuItem_20:Show();
|
||||
--BRD
|
||||
AtlasLootMenuItem_21_Name:SetText(AL["Blackrock Depths"]);
|
||||
AtlasLootMenuItem_21_Name:SetText(AL["[52-60] Blackrock Depths"]);
|
||||
AtlasLootMenuItem_21_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_21.lootpage="BRDLordRoccor";
|
||||
AtlasLootMenuItem_21:Show();
|
||||
--DME
|
||||
AtlasLootMenuItem_22_Name:SetText(AL["Dire Maul (East)"]);
|
||||
AtlasLootMenuItem_22_Name:SetText(AL["[55-60] Dire Maul (East)"]);
|
||||
AtlasLootMenuItem_22_Extra:SetText(AL["Feralas"]);
|
||||
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_22.lootpage="DMEPusillin";
|
||||
AtlasLootMenuItem_22:Show();
|
||||
--DMW
|
||||
AtlasLootMenuItem_23_Name:SetText(AL["Dire Maul (West)"]);
|
||||
AtlasLootMenuItem_23_Name:SetText(AL["[57-60] Dire Maul (West)"]);
|
||||
AtlasLootMenuItem_23_Extra:SetText(AL["Feralas"]);
|
||||
AtlasLootMenuItem_23_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_23.lootpage="DMWTendrisWarpwood";
|
||||
AtlasLootMenuItem_23:Show();
|
||||
--DMN
|
||||
AtlasLootMenuItem_24_Name:SetText(AL["Dire Maul (North)"]);
|
||||
AtlasLootMenuItem_24_Name:SetText(AL["[57-60] Dire Maul (North)"]);
|
||||
AtlasLootMenuItem_24_Extra:SetText(AL["Feralas"]);
|
||||
AtlasLootMenuItem_24_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_24.lootpage="DMNGuardMoldar";
|
||||
AtlasLootMenuItem_24:Show();
|
||||
--Scholo
|
||||
AtlasLootMenuItem_25_Name:SetText(AL["Scholomance"]);
|
||||
AtlasLootMenuItem_25_Name:SetText(AL["[58-60] Scholomance"]);
|
||||
AtlasLootMenuItem_25_Extra:SetText(AL["Western Plaguelands"]);
|
||||
AtlasLootMenuItem_25_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_25.lootpage="SCHOLOBlood";
|
||||
AtlasLootMenuItem_25.lootpage="SCHOLOKirtonostheHerald";
|
||||
AtlasLootMenuItem_25:Show();
|
||||
--Strat
|
||||
AtlasLootMenuItem_26_Name:SetText(AL["Stratholme"]);
|
||||
AtlasLootMenuItem_26_Name:SetText(AL["[58-60] Stratholme"]);
|
||||
AtlasLootMenuItem_26_Extra:SetText(AL["Eastern Plaguelands"]);
|
||||
AtlasLootMenuItem_26_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_26.lootpage="STRATSkull";
|
||||
AtlasLootMenuItem_26:Show();
|
||||
--LBRS
|
||||
AtlasLootMenuItem_27_Name:SetText(AL["Lower Blackrock Spire"]);
|
||||
AtlasLootMenuItem_27_Name:SetText(AL["[55-60] Lower Blackrock Spire"]);
|
||||
AtlasLootMenuItem_27_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_27_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_27.lootpage="LBRSSpirestoneButcher";
|
||||
AtlasLootMenuItem_27:Show();
|
||||
--UBRS
|
||||
AtlasLootMenuItem_28_Name:SetText(AL["Upper Blackrock Spire"]);
|
||||
AtlasLootMenuItem_28_Name:SetText(AL["[58-60] Upper Blackrock Spire"]);
|
||||
AtlasLootMenuItem_28_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_28_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_28.lootpage="UBRSEmberseer";
|
||||
AtlasLootMenuItem_28:Show();
|
||||
--Kara crypt
|
||||
AtlasLootMenuItem_29_Name:SetText(AL["Karazhan Crypt"]);
|
||||
AtlasLootMenuItem_29_Name:SetText(AL["[58-60] Karazhan Crypt"]);
|
||||
AtlasLootMenuItem_29_Extra:SetText(AL["Deadwind Pass"]);
|
||||
AtlasLootMenuItem_29_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_29.lootpage="KCMarrowspike";
|
||||
AtlasLootMenuItem_29:Show()
|
||||
--CoT:BM
|
||||
AtlasLootMenuItem_30_Name:SetText(AL["Caverns of Time: Black Morass"]);
|
||||
AtlasLootMenuItem_30_Name:SetText(AL["[60] Caverns of Time: Black Morass"]);
|
||||
AtlasLootMenuItem_30_Extra:SetText(AL["Tanaris"]);
|
||||
AtlasLootMenuItem_30_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_30.lootpage="COTBMChronar";
|
||||
@@ -221,61 +221,61 @@ function AtlasLoot_DungeonsMenu2()
|
||||
getglobal("AtlasLootItemsFrame_PREV"):Show();
|
||||
getglobal("AtlasLootServerQueryButton"):Hide();
|
||||
--SWV
|
||||
AtlasLootMenuItem_1_Name:SetText(AL["Stormwind Vault"]);
|
||||
AtlasLootMenuItem_1_Name:SetText(AL["[60] Stormwind Vault"]);
|
||||
AtlasLootMenuItem_1_Extra:SetText(AL["Stormwind"]);
|
||||
AtlasLootMenuItem_1_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalIronForge");
|
||||
AtlasLootMenuItem_1.lootpage="SWVAszoshGrimflame";
|
||||
AtlasLootMenuItem_1:Show();
|
||||
--ZG
|
||||
AtlasLootMenuItem_3_Name:SetText(AL["Zul'Gurub"]);
|
||||
AtlasLootMenuItem_3_Name:SetText(AL["[RAID] Zul'Gurub"]);
|
||||
AtlasLootMenuItem_3_Extra:SetText(AL["Stranglethorn Vale"]);
|
||||
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_3.lootpage="ZGJeklik";
|
||||
AtlasLootMenuItem_3:Show();
|
||||
--AQ20
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["Ruins of Ahn'Qiraj"]);
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["[RAID] Ruins of Ahn'Qiraj"]);
|
||||
AtlasLootMenuItem_4_Extra:SetText(AL["Silithus"]);
|
||||
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_4.lootpage="AQ20Kurinnaxx";
|
||||
AtlasLootMenuItem_4:Show();
|
||||
--MC
|
||||
AtlasLootMenuItem_5_Name:SetText(AL["Molten Core"]);
|
||||
AtlasLootMenuItem_5_Name:SetText(AL["[RAID] Molten Core"]);
|
||||
AtlasLootMenuItem_5_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_5.lootpage="MCLucifron";
|
||||
AtlasLootMenuItem_5:Show();
|
||||
--Ony
|
||||
AtlasLootMenuItem_6_Name:SetText(AL["Onyxia's Lair"]);
|
||||
AtlasLootMenuItem_6_Name:SetText(AL["[RAID] Onyxia's Lair"]);
|
||||
AtlasLootMenuItem_6_Extra:SetText(AL["Dustwallow Marsh"]);
|
||||
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_6.lootpage="Onyxia";
|
||||
AtlasLootMenuItem_6:Show();
|
||||
--LKH
|
||||
AtlasLootMenuItem_7_Name:SetText(AL["Lower Karazhan Halls"]);
|
||||
AtlasLootMenuItem_7_Name:SetText(AL["[RAID] Lower Karazhan Halls"]);
|
||||
AtlasLootMenuItem_7_Extra:SetText(AL["Deadwind Pass"]);
|
||||
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_7.lootpage="LKHRolfen";
|
||||
AtlasLootMenuItem_7:Show();
|
||||
--BWL
|
||||
AtlasLootMenuItem_8_Name:SetText(AL["Blackwing Lair"]);
|
||||
AtlasLootMenuItem_8_Name:SetText(AL["[RAID] Blackwing Lair"]);
|
||||
AtlasLootMenuItem_8_Extra:SetText(AL["Burning Steppes"]);
|
||||
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_8.lootpage="BWLRazorgore";
|
||||
AtlasLootMenuItem_8:Show();
|
||||
--ES
|
||||
AtlasLootMenuItem_9_Name:SetText(AL["Emerald Sanctum"]);
|
||||
AtlasLootMenuItem_9_Name:SetText(AL["[RAID] Emerald Sanctum"]);
|
||||
AtlasLootMenuItem_9_Extra:SetText(AL["Hyjal"]);
|
||||
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_9.lootpage="ESErennius";
|
||||
AtlasLootMenuItem_9:Show();
|
||||
--AQ40
|
||||
AtlasLootMenuItem_10_Name:SetText(AL["Temple of Ahn'Qiraj"]);
|
||||
AtlasLootMenuItem_10_Name:SetText(AL["[RAID] Temple of Ahn'Qiraj"]);
|
||||
AtlasLootMenuItem_10_Extra:SetText(AL["Silithus"]);
|
||||
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_10.lootpage="AQ40Skeram";
|
||||
AtlasLootMenuItem_10:Show();
|
||||
--Naxx
|
||||
AtlasLootMenuItem_11_Name:SetText(AL["Naxxramas"]);
|
||||
AtlasLootMenuItem_11_Name:SetText(AL["[RAID] Naxxramas"]);
|
||||
AtlasLootMenuItem_11_Extra:SetText(AL["Eastern Plaguelands"]);
|
||||
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\Spell_Arcane_PortalOrgrimmar");
|
||||
AtlasLootMenuItem_11.lootpage="NAXPatchwerk";
|
||||
|
||||
@@ -0,0 +1,399 @@
|
||||
-- extra info on GameTooltip and ItemRefTooltip
|
||||
local AtlasLootTip = CreateFrame("Frame", "AtlasLootTip", GameTooltip)
|
||||
local strfind = string.find
|
||||
local tonumber = tonumber
|
||||
|
||||
local GREY = "|cff999999"
|
||||
|
||||
local LastSearchName = nil
|
||||
local lastSearchLink = nil
|
||||
local function GetItemLinkByName(name)
|
||||
if name ~= LastSearchName then
|
||||
for itemID = 1, 90000 do
|
||||
local itemName, hyperLink, itemQuality = GetItemInfo(itemID)
|
||||
if (itemName and itemName == name) then
|
||||
local _, _, _, hex = GetItemQualityColor(tonumber(itemQuality))
|
||||
lastSearchLink = hex.. "|H"..hyperLink.."|h["..itemName.."]|h|r"
|
||||
end
|
||||
end
|
||||
LastSearchName = name
|
||||
end
|
||||
return lastSearchLink
|
||||
end
|
||||
|
||||
local HookSetItemRef = SetItemRef
|
||||
SetItemRef = function(link, text, button)
|
||||
local item, _, id = string.find(link, "item:(%d+):.*")
|
||||
ItemRefTooltip.itemID = id
|
||||
HookSetItemRef(link, text, button)
|
||||
if not IsShiftKeyDown() and not IsControlKeyDown() and item then
|
||||
AtlasLootTip.extendTooltip(ItemRefTooltip, "ItemRefTooltip")
|
||||
end
|
||||
end
|
||||
|
||||
local HookSetHyperlink = GameTooltip.SetHyperlink
|
||||
function GameTooltip.SetHyperlink(self, arg1)
|
||||
if arg1 then
|
||||
local _, _, linktype = string.find(arg1, "^(.-):(.+)$")
|
||||
if linktype == "item" then
|
||||
local _, _, id = string.find(arg1,"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
end
|
||||
return HookSetHyperlink(self, arg1)
|
||||
end
|
||||
|
||||
local HookSetBagItem = GameTooltip.SetBagItem
|
||||
function GameTooltip.SetBagItem(self, container, slot)
|
||||
if GetContainerItemLink(container, slot) then
|
||||
local _, _, id = string.find(GetContainerItemLink(container, slot),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetBagItem(self, container, slot)
|
||||
end
|
||||
|
||||
local HookSetLootItem = GameTooltip.SetLootItem
|
||||
function GameTooltip.SetLootItem(self, slot)
|
||||
if GetLootSlotLink(slot) then
|
||||
local _, _, id = string.find(GetLootSlotLink(slot),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
HookSetLootItem(self, slot)
|
||||
end
|
||||
|
||||
local HookSetInboxItem = GameTooltip.SetInboxItem
|
||||
function GameTooltip.SetInboxItem(self, mailID, attachmentIndex)
|
||||
local itemName = GetInboxItem(mailID)
|
||||
if itemName then
|
||||
local _, _, id = string.find(GetItemLinkByName(itemName),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetInboxItem(self, mailID, attachmentIndex)
|
||||
end
|
||||
|
||||
local HookSetInventoryItem = GameTooltip.SetInventoryItem
|
||||
function GameTooltip.SetInventoryItem(self, unit, slot)
|
||||
if GetInventoryItemLink(unit, slot) then
|
||||
local _, _, id = string.find(GetInventoryItemLink(unit, slot),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetInventoryItem(self, unit, slot)
|
||||
end
|
||||
|
||||
local HookSetCraftItem = GameTooltip.SetCraftItem
|
||||
function GameTooltip.SetCraftItem(self, skill, slot)
|
||||
if GetCraftReagentItemLink(skill, slot) then
|
||||
local _, _, id = string.find(GetCraftReagentItemLink(skill, slot),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetCraftItem(self, skill, slot)
|
||||
end
|
||||
|
||||
local HookSetTradeSkillItem = GameTooltip.SetTradeSkillItem
|
||||
function GameTooltip.SetTradeSkillItem(self, skillIndex, reagentIndex)
|
||||
if reagentIndex then
|
||||
if GetTradeSkillReagentItemLink(skillIndex, reagentIndex) then
|
||||
local _, _, id = string.find(GetTradeSkillReagentItemLink(skillIndex, reagentIndex),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
else
|
||||
if GetTradeSkillItemLink(skillIndex) then
|
||||
local _, _, id = string.find(GetTradeSkillItemLink(skillIndex),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
end
|
||||
return HookSetTradeSkillItem(self, skillIndex, reagentIndex)
|
||||
end
|
||||
|
||||
local HookSetAuctionItem = GameTooltip.SetAuctionItem
|
||||
function GameTooltip.SetAuctionItem(self, atype, index)
|
||||
local itemName = GetAuctionItemInfo(atype, index)
|
||||
if itemName then
|
||||
local _, _, id = string.find(GetItemLinkByName(itemName),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetAuctionItem(self, atype, index)
|
||||
end
|
||||
|
||||
local HookSetAuctionSellItem = GameTooltip.SetAuctionSellItem
|
||||
function GameTooltip.SetAuctionSellItem(self)
|
||||
local itemName = GetAuctionSellItemInfo()
|
||||
if itemName then
|
||||
local _, _, id = string.find(GetItemLinkByName(itemName),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetAuctionSellItem(self)
|
||||
end
|
||||
|
||||
local HookSetTradePlayerItem = GameTooltip.SetTradePlayerItem
|
||||
function GameTooltip.SetTradePlayerItem(self, index)
|
||||
if GetTradePlayerItemLink(index) then
|
||||
local _, _, id = string.find(GetTradePlayerItemLink(index),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetTradePlayerItem(self, index)
|
||||
end
|
||||
|
||||
local HookSetTradeTargetItem = GameTooltip.SetTradeTargetItem
|
||||
function GameTooltip.SetTradeTargetItem(self, index)
|
||||
if GetTradeTargetItemLink(index) then
|
||||
local _, _, id = string.find(GetTradeTargetItemLink(index),"item:(%d+):.*")
|
||||
GameTooltip.itemID = id
|
||||
end
|
||||
return HookSetTradeTargetItem(self, index)
|
||||
end
|
||||
|
||||
local lastItemName = nil
|
||||
local lastItemID = nil
|
||||
local lastSourceStr = nil
|
||||
local lastDropRate = nil
|
||||
function AtlasLootTip.extendTooltip(tooltip, tooltipTypeStr)
|
||||
if AtlasLootCharDB.ShowSource ~= true then return end
|
||||
local originalTooltip = {}
|
||||
local itemName = getglobal(tooltipTypeStr .. "TextLeft1"):GetText()
|
||||
local line2 = getglobal(tooltipTypeStr .. "TextLeft2")
|
||||
if not line2:GetText() then return end
|
||||
local craftSpell = nil
|
||||
local source = nil
|
||||
local sourceStr = nil
|
||||
local dropRate = nil
|
||||
local isCraft = false
|
||||
local isPvP = false
|
||||
local isRepReward = false
|
||||
local isSetPiece = false
|
||||
local isWBLoot = false
|
||||
local isWorldEvent = false
|
||||
if itemName and itemName ~= "Fashion Coin" and tooltip.itemID then
|
||||
if itemName ~= lastItemName or tooltip.itemID ~= lastItemID then
|
||||
for row = 1, 30 do
|
||||
local tooltipRowLeft = getglobal(tooltipTypeStr .. 'TextLeft' .. row)
|
||||
if tooltipRowLeft then
|
||||
local rowtext = tooltipRowLeft:GetText()
|
||||
if rowtext then
|
||||
originalTooltip[row] = {}
|
||||
originalTooltip[row].text = rowtext
|
||||
end
|
||||
end
|
||||
end
|
||||
for row=1, table.getn(originalTooltip) do
|
||||
if strfind(originalTooltip[row].text, "—",1,true) then -- skip items that state which rep they require
|
||||
return
|
||||
end
|
||||
end
|
||||
-- first check if its craftable item
|
||||
for k,v in pairs(GetSpellInfoAtlasLootDB["craftspells"]) do
|
||||
if v["craftItem"] == tonumber(tooltip.itemID) then
|
||||
craftSpell = "s"..tostring(k)
|
||||
end
|
||||
end
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootCrafting"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootCrafting"][k1]) do
|
||||
if type(v2[1]) == "string" and v2[1] ~= "" and string.sub(v2[1], 1, 1) ~= "e" then
|
||||
if v2[1] == craftSpell
|
||||
and
|
||||
(strfind(k1, "Apprentice",1,true) or
|
||||
strfind(k1, "Journeyman",1,true) or
|
||||
strfind(k1, "Expert",1,true) or
|
||||
strfind(k1, "Artisan",1,true) or
|
||||
strfind(k1, "Goblin",1,true) or
|
||||
strfind(k1, "Gnomish",1,true) or
|
||||
strfind(k1, "Survival",1,true) or
|
||||
strfind(k1, "Herbalism",1,true) or
|
||||
strfind(k1, "FirstAid",1,true) or
|
||||
strfind(k1, "Poisons",1,true) or
|
||||
strfind(k1, "Mining",1,true) or
|
||||
strfind(k1, "Smelting",1,true) or
|
||||
strfind(k1, "Elemental",1,true) or
|
||||
strfind(k1, "Tribal",1,true) or
|
||||
strfind(k1, "Dragonscale",1,true)or
|
||||
strfind(k1, "Weaponsmith",1,true)or
|
||||
strfind(k1, "Axesmith",1,true)or
|
||||
strfind(k1, "Hammersmith",1,true)or
|
||||
strfind(k1, "Swordsmith",1,true)or
|
||||
strfind(k1, "Armorsmith",1,true))
|
||||
then
|
||||
source = k1
|
||||
isCraft = true
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check if its world boss loot
|
||||
if not isCraft then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootWBItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootWBItems"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
isWBLoot = true
|
||||
if v2[5] then
|
||||
dropRate = v2[5]
|
||||
lastDropRate = dropRate
|
||||
else
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check if its a pvp reward
|
||||
if not isCraft and not isWBLoot then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootGeneralPvPItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootGeneralPvPItems"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
isPvP = true
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check if its a rep reward
|
||||
if not isCraft and not isWBLoot and not isPvP then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootBGItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootBGItems"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
isRepReward = true
|
||||
if v2[5] then
|
||||
dropRate = v2[5]
|
||||
lastDropRate = dropRate
|
||||
else
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootRepItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootRepItems"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
isRepReward = true
|
||||
if v2[5] and source ~= "Darkmoon" and not strfind(source, "Cenarion",1,true) then
|
||||
dropRate = v2[5]
|
||||
lastDropRate = dropRate
|
||||
else
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check if its a set piece
|
||||
if not isCraft and not isWBLoot and not isPvP and not isRepReward then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootSetItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootSetItems"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
if not (source == "SpiritofEskhandar" or
|
||||
source == "HakkariBlades" or
|
||||
source == "PrimalBlessing" or
|
||||
source == "ShardOfGods" or
|
||||
source == "DalRend" or
|
||||
source == "SpiderKiss" or
|
||||
source == "UnobMounts" or
|
||||
source == "Legendaries" or
|
||||
source == "Artifacts" or
|
||||
source == "ZGRings" or
|
||||
source == "Tabards") then
|
||||
isSetPiece = true
|
||||
end
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check world events
|
||||
if not isCraft and not isWBLoot and not isPvP and not isRepReward and not isSetPiece then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootWorldEvents"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootWorldEvents"][k1]) do
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName, 1, true) then
|
||||
source = k1
|
||||
isWorldEvent = true
|
||||
if v2[5] then
|
||||
dropRate = v2[5]
|
||||
lastDropRate = dropRate
|
||||
else
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- check if its a dungeon/raid loot
|
||||
if not isCraft and not isWBLoot and not isPvP and not isRepReward and not isWorldEvent and not isSetPiece then
|
||||
for k1,v1 in pairs(AtlasLoot_Data["AtlasLootItems"]) do
|
||||
for k2,v2 in pairs(AtlasLoot_Data["AtlasLootItems"][k1]) do
|
||||
if v2[1] ~= 0 then
|
||||
if v2[1] == tonumber(tooltip.itemID) and strfind(v2[3], itemName,1,true) then
|
||||
if k1 ~= "VanillaKeys" then
|
||||
source = k1
|
||||
end
|
||||
if v2[5] then
|
||||
dropRate = v2[5]
|
||||
lastDropRate = dropRate
|
||||
else
|
||||
lastDropRate = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
lastItemName = itemName
|
||||
lastItemID = tooltip.itemID
|
||||
if not source then
|
||||
lastSourceStr = nil
|
||||
return
|
||||
end
|
||||
|
||||
for k,v in pairs(AtlasLoot_TableNames) do
|
||||
if k == source then
|
||||
sourceStr = AtlasLoot_TableNames[k][1]
|
||||
lastSourceStr = sourceStr
|
||||
end
|
||||
end
|
||||
|
||||
if not sourceStr then
|
||||
return
|
||||
end
|
||||
|
||||
if line2 and line2:GetText() then
|
||||
if dropRate then
|
||||
line2:SetText(GREY..sourceStr.." ("..dropRate..")|r\n"..line2:GetText())
|
||||
else
|
||||
line2:SetText(GREY..sourceStr.."|r\n"..line2:GetText())
|
||||
end
|
||||
else
|
||||
if dropRate then
|
||||
tooltip:AddLine(GREY..sourceStr.." ("..dropRate..")|r")
|
||||
else
|
||||
tooltip:AddLine(GREY..sourceStr.."|r")
|
||||
end
|
||||
end
|
||||
|
||||
elseif itemName == lastItemName and tooltip.itemID == lastItemID then
|
||||
if lastSourceStr then
|
||||
if line2:GetText() then
|
||||
if lastDropRate then
|
||||
line2:SetText(GREY..lastSourceStr.." ("..lastDropRate..")|r\n"..line2:GetText())
|
||||
else
|
||||
line2:SetText(GREY..lastSourceStr.."|r\n"..line2:GetText())
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
tooltip:Show()
|
||||
end
|
||||
end
|
||||
|
||||
AtlasLootTip:SetScript("OnHide", function()
|
||||
GameTooltip.itemID = nil
|
||||
ItemRefTooltip.itemID = nil
|
||||
end)
|
||||
|
||||
AtlasLootTip:SetScript("OnShow", function()
|
||||
if GameTooltip.itemID then
|
||||
AtlasLootTip.extendTooltip(GameTooltip, "GameTooltip")
|
||||
end
|
||||
end)
|
||||
@@ -76,8 +76,8 @@ function AtlasLootWorldEventMenu()
|
||||
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Egg_03");
|
||||
AtlasLootMenuItem_7.lootpage="Noblegarden";
|
||||
AtlasLootMenuItem_7:Show();
|
||||
--Gurubashi Arena Booty Run
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["Gurubashi Arena Booty Run"]);
|
||||
--Gurubashi Arena
|
||||
AtlasLootMenuItem_4_Name:SetText(AL["Gurubashi Arena"]);
|
||||
AtlasLootMenuItem_4_Extra:SetText(ORANGE..AL["Stranglethorn Vale"]);
|
||||
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_04");
|
||||
AtlasLootMenuItem_4.lootpage="GurubashiArena";
|
||||
|
||||
Reference in New Issue
Block a user