cleanup atlas buttons table
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
## Notes: Shows possible loot from dungeon bosses and other sources.
|
||||
## Author: Otari (overhaul/revamp, menu changes, bugfixes/updates), Lexie (Turtle WoW fixes/updates), Pepopo, MarcelineVQ (Kara40 loot), Shagu
|
||||
## LegacyAuthor: Daviesh, Pompa (Turtle WoW World Bosses), Xerron (Turtle WoW World Bosses), Gurky (Turtle WoW 1.16/1.16.1 Dungeons)
|
||||
## Version: 3.4.2
|
||||
## Version: 3.4.3
|
||||
## SavedVariablesPerCharacter: AtlasLootCharDB
|
||||
## OptionalDeps: Alphamap, AtlasLoader, LootLink, ItemSync, HewdropLib, Ace2, EquipCompare, EQCompare
|
||||
|
||||
|
||||
+2
-30
@@ -385,10 +385,7 @@ function AtlasLoot_AtlasScrollBar_Update()
|
||||
local loot = _G["AtlasEntry"..line.."_Loot"]
|
||||
local selected = _G["AtlasEntry"..line.."_Selected"]
|
||||
if loot and lineplusoffset <= ATLAS_CUR_LINES then
|
||||
_G["AtlasEntry"..line.."_Text"]:SetText(ATLAS_SCROLL_LIST[lineplusoffset])
|
||||
local showIcon = (AtlasLootBossButtons[zoneID] and AtlasLootBossButtons[zoneID][lineplusoffset] and AtlasLootBossButtons[zoneID][lineplusoffset] ~= "") or
|
||||
(AtlasLootWBBossButtons[zoneID] and AtlasLootWBBossButtons[zoneID][lineplusoffset] and AtlasLootWBBossButtons[zoneID][lineplusoffset] ~= "") or
|
||||
(AtlasLootBattlegrounds[zoneID] and AtlasLootBattlegrounds[zoneID][lineplusoffset] and AtlasLootBattlegrounds[zoneID][lineplusoffset] ~= "")
|
||||
local showIcon = AtlasLootBossButtons[zoneID] and AtlasLootBossButtons[zoneID][lineplusoffset]
|
||||
if AtlasLootItemsFrame.activeBoss == lineplusoffset then
|
||||
entry:Enable()
|
||||
loot:Hide()
|
||||
@@ -508,38 +505,13 @@ function AtlasLootBoss_OnClick()
|
||||
AtlasLootItemsFrame.activeBoss = nil
|
||||
else
|
||||
-- If an loot table is associated with the button, show it. Note multiple tables need to be checked due to the database structure
|
||||
if AtlasLootBossButtons[zoneID] and AtlasLootBossButtons[zoneID][id] and AtlasLootBossButtons[zoneID][id] ~= "" then
|
||||
if AtlasLootBossButtons[zoneID] and AtlasLootBossButtons[zoneID][id] then
|
||||
_G[name.."_Selected"]:Show()
|
||||
_G[name.."_Loot"]:Hide()
|
||||
local _, _, boss = string.find(_G[name.."_Text"]:GetText(), "|c%x%x%x%x%x%x%x%x%s*[%dX']*[%) ]*(.*[^%,])[%,]?$")
|
||||
AtlasLoot_ShowBossLoot(AtlasLootBossButtons[zoneID][id], boss)
|
||||
AtlasLootItemsFrame.activeBoss = id
|
||||
AtlasLoot_AtlasScrollBar_Update()
|
||||
-- dont show navigation buttons if its not rep or set
|
||||
local match = string.find(boss, AL["Reputation"]) or string.find(boss, AL["Set"])
|
||||
if not match then
|
||||
AtlasLootItemsFrame_BACK:Hide()
|
||||
AtlasLootItemsFrame_NEXT:Hide()
|
||||
AtlasLootItemsFrame_PREV:Hide()
|
||||
end
|
||||
elseif AtlasLootWBBossButtons[zoneID] and AtlasLootWBBossButtons[zoneID][id] and AtlasLootWBBossButtons[zoneID][id] ~= "" then
|
||||
_G[name.."_Selected"]:Show()
|
||||
_G[name.."_Loot"]:Hide()
|
||||
local _, _, boss = string.find(_G[name.."_Text"]:GetText(), "|c%x%x%x%x%x%x%x%x%s*[%dX]*[%) ]*(.*[^%,])[%,]?$")
|
||||
AtlasLoot_ShowBossLoot(AtlasLootWBBossButtons[zoneID][id], boss)
|
||||
AtlasLootItemsFrame.activeBoss = id
|
||||
AtlasLoot_AtlasScrollBar_Update()
|
||||
-- dont show navigation buttons
|
||||
AtlasLootItemsFrame_BACK:Hide()
|
||||
AtlasLootItemsFrame_NEXT:Hide()
|
||||
AtlasLootItemsFrame_PREV:Hide()
|
||||
elseif AtlasLootBattlegrounds[zoneID] and AtlasLootBattlegrounds[zoneID][id] and AtlasLootBattlegrounds[zoneID][id] ~= "" then
|
||||
_G[name.."_Selected"]:Show()
|
||||
_G[name.."_Loot"]:Hide()
|
||||
local _, _, boss = string.find(_G[name.."_Text"]:GetText(), "|c%x%x%x%x%x%x%x%x%s*[%wX]*[%) ]*(.*[^%,])[%,]?$")
|
||||
AtlasLoot_ShowBossLoot(AtlasLootBattlegrounds[zoneID][id], boss)
|
||||
AtlasLootItemsFrame.activeBoss = id
|
||||
AtlasLoot_AtlasScrollBar_Update()
|
||||
end
|
||||
end
|
||||
-- This has been invoked from Atlas, so we remove any claim external mods have on the loot table
|
||||
|
||||
+719
-1065
File diff suppressed because it is too large
Load Diff
+35
-219
@@ -6,225 +6,41 @@ file due to slight translation differences between Atlas languages.
|
||||
|
||||
The English file also contains the loot tables for the battleground loot tables.
|
||||
]]
|
||||
------------
|
||||
-- Layout --
|
||||
------------
|
||||
AtlasLootBattlegrounds = {
|
||||
BloodRing = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"BRRepFriendly1",
|
||||
"BRRepHonored1",
|
||||
"BRRepRevered1",
|
||||
"BRRepExalted1",
|
||||
"BRRepTokens1",
|
||||
},
|
||||
AlteracValleyNorth = {
|
||||
"Stormpike1",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"AVRepFriendly",
|
||||
"AVRepHonored",
|
||||
"AVRepRevered",
|
||||
"AVRepExalted",
|
||||
},
|
||||
AlteracValleySouth = {
|
||||
"Frostwolf1",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"AVRepFriendly",
|
||||
"AVRepHonored",
|
||||
"AVRepRevered",
|
||||
"AVRepExalted",
|
||||
},
|
||||
ArathiBasin = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"ABRepFriendly",
|
||||
"ABRepHonored5059",
|
||||
"ABRepRevered5059",
|
||||
"ABRepExalted",
|
||||
},
|
||||
WarsongGulch = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"WSGRepFriendly",
|
||||
"WSGRepHonored5059",
|
||||
"WSGRepRevered5059",
|
||||
"WSGRepExalted60",
|
||||
},
|
||||
|
||||
AtlasLootBossButtons = AtlasLootBossButtons or {}
|
||||
|
||||
AtlasLootBossButtons.BloodRing = {
|
||||
[62] = "BRRepFriendly1",
|
||||
[63] = "BRRepHonored1",
|
||||
[64] = "BRRepRevered1",
|
||||
[65] = "BRRepExalted1",
|
||||
[66] = "BRRepTokens1",
|
||||
}
|
||||
AtlasLootBossButtons.AlteracValleyNorth = {
|
||||
[1] = "Stormpike1",
|
||||
[64] = "AVRepFriendly",
|
||||
[65] = "AVRepHonored",
|
||||
[66] = "AVRepRevered",
|
||||
[67] = "AVRepExalted",
|
||||
}
|
||||
AtlasLootBossButtons.AlteracValleySouth = {
|
||||
[1] = "Frostwolf1",
|
||||
[46] = "AVRepFriendly",
|
||||
[47] = "AVRepHonored",
|
||||
[48] = "AVRepRevered",
|
||||
[49] = "AVRepExalted",
|
||||
}
|
||||
AtlasLootBossButtons.ArathiBasin = {
|
||||
[11] = "ABRepFriendly",
|
||||
[12] = "ABRepHonored5059",
|
||||
[13] = "ABRepRevered5059",
|
||||
[14] = "ABRepExalted",
|
||||
}
|
||||
AtlasLootBossButtons.WarsongGulch = {
|
||||
[6] = "WSGRepFriendly",
|
||||
[7] = "WSGRepHonored5059",
|
||||
[8] = "WSGRepRevered5059",
|
||||
[9] = "WSGRepExalted60",
|
||||
}
|
||||
|
||||
----------------------
|
||||
|
||||
+33
-89
@@ -1,92 +1,36 @@
|
||||
AtlasLootWBBossButtons = {
|
||||
FourDragons = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"DLethon",
|
||||
"DEmeriss",
|
||||
"DTaerar",
|
||||
"DYsondre",
|
||||
"",
|
||||
"DTrash",
|
||||
},
|
||||
Azuregos = {
|
||||
"AAzuregos",
|
||||
"ASpiritA",
|
||||
},
|
||||
LordKazzak = {
|
||||
"KKazzak",
|
||||
},
|
||||
Nerubian = {
|
||||
"Nerubian",
|
||||
},
|
||||
Reaver = {
|
||||
"Reaver",
|
||||
},
|
||||
Ostarius = {
|
||||
"Ostarius",
|
||||
},
|
||||
Concavius = {
|
||||
"Concavius",
|
||||
},
|
||||
CowKing = {
|
||||
"CowKing",
|
||||
},
|
||||
Clackora = {
|
||||
"Clackora",
|
||||
},
|
||||
RareSpawns = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"Tarangos",
|
||||
"Kargron",
|
||||
"Xalvic",
|
||||
"Mallon",
|
||||
"Grugthok",
|
||||
"WanderingKnight",
|
||||
"CrusaderLarsarius",
|
||||
"Zareth",
|
||||
"Jalakar",
|
||||
"Ashbeard",
|
||||
"AdmiralBareanWestwind",
|
||||
"ShadeMage",
|
||||
"GraypawAlpha",
|
||||
"EarthcallerRezengal",
|
||||
"Blazespark",
|
||||
"WitchDoctorTanzo",
|
||||
"Dawnhowl",
|
||||
"MaltimorsPrototype",
|
||||
"Bonecruncher",
|
||||
"Duskskitter",
|
||||
"BaronPerenolde",
|
||||
"FirstbornofArugal",
|
||||
"WidowoftheWoods",
|
||||
"Ripjaw",
|
||||
"Rukthok",
|
||||
"MargontheMighty",
|
||||
"Embereye",
|
||||
"Aquitus",
|
||||
"Letashaz",
|
||||
"Stoneshell",
|
||||
"HighvaleSilverback",
|
||||
"Azurebeak",
|
||||
"BarkskinFisher",
|
||||
"ShadeflayerGoliath",
|
||||
"M0L1Y",
|
||||
"KinTozo",
|
||||
"ProfessorLysander",
|
||||
},
|
||||
AtlasLootBossButtons = AtlasLootBossButtons or {}
|
||||
|
||||
AtlasLootBossButtons.FourDragons = {
|
||||
[6] = "DLethon",
|
||||
[7] = "DEmeriss",
|
||||
[8] = "DTaerar",
|
||||
[9] = "DYsondre",
|
||||
[11] = "DTrash",
|
||||
}
|
||||
AtlasLootBossButtons.Azuregos = {
|
||||
[1] = "AAzuregos",
|
||||
[2] = "ASpiritA",
|
||||
}
|
||||
AtlasLootBossButtons.LordKazzak = {
|
||||
[1] = "KKazzak",
|
||||
}
|
||||
AtlasLootBossButtons.Nerubian = {
|
||||
[1] = "Nerubian",
|
||||
}
|
||||
AtlasLootBossButtons.Reaver = {
|
||||
[1] = "Reaver",
|
||||
}
|
||||
AtlasLootBossButtons.Ostarius = {
|
||||
[1] = "Ostarius",
|
||||
}
|
||||
AtlasLootBossButtons.Concavius = {
|
||||
[1] = "Concavius",
|
||||
}
|
||||
AtlasLootBossButtons.CowKing = {
|
||||
[1] = "CowKing",
|
||||
}
|
||||
AtlasLootBossButtons.Clackora = {
|
||||
[1] = "Clackora",
|
||||
}
|
||||
|
||||
AtlasLoot_Data["AtlasLootWBItems"] = {
|
||||
|
||||
Reference in New Issue
Block a user