added lable to select subcat, replaced getglobal with _G

This commit is contained in:
Anch
2022-08-12 20:24:29 +12:00
parent 5012902cd0
commit 3012622755
9 changed files with 112 additions and 108 deletions
+29 -29
View File
@@ -253,13 +253,13 @@ function AtlasLoot:OnEnable()
else else
collectgarbage("collect"); collectgarbage("collect");
end end
panel = getglobal("AtlasLootOptionsFrame"); panel = _G["AtlasLootOptionsFrame"];
panel.name=AL["AtlasLoot"]; panel.name=AL["AtlasLoot"];
InterfaceOptions_AddCategory(panel); InterfaceOptions_AddCategory(panel);
--Filter and wishlist options menus creates as part of the next 2 commands --Filter and wishlist options menus creates as part of the next 2 commands
AtlasLoot_CreateFilterOptions(); AtlasLoot_CreateFilterOptions();
AtlasLoot_CreateWishlistOptions(); AtlasLoot_CreateWishlistOptions();
panel = getglobal("AtlasLootHelpFrame"); panel = _G["AtlasLootHelpFrame"];
panel.name=AL["Help"]; panel.name=AL["Help"];
panel.parent=AL["AtlasLoot"]; panel.parent=AL["AtlasLoot"];
InterfaceOptions_AddCategory(panel); InterfaceOptions_AddCategory(panel);
@@ -500,16 +500,16 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource, tablenum)
--For stopping the subtable from changing if its a token table --For stopping the subtable from changing if its a token table
if dataSource[dataID].NoSubt == nil and dataID ~= "FilterList" then if dataSource[dataID].NoSubt == nil and dataID ~= "FilterList" then
AtlasLootDefaultFrame_SubMenu:SetText(dataSource[dataID].Name); AtlasLootDefaultFrame_SubMenuText:SetText(dataSource[dataID].Name);
AtlasLoot:SubTableScrollFrameUpdate(dataID, dataSource, tablenum); AtlasLoot:SubTableScrollFrameUpdate(dataID, dataSource, tablenum);
end end
--Hide UI objects so that only needed ones are shown --Hide UI objects so that only needed ones are shown
for i = 1, 30, 1 do for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide(); _G["AtlasLootItem_"..i.."_Unsafe"]:Hide();
getglobal("AtlasLootItem_"..i):Hide(); _G["AtlasLootItem_"..i]:Hide();
getglobal("AtlasLootItem_"..i).itemID = 0; _G["AtlasLootItem_"..i].itemID = 0;
getglobal("AtlasLootItem_"..i).spellitemID = 0; _G["AtlasLootItem_"..i].spellitemID = 0;
end end
local function getProperItemConditionals(item) local function getProperItemConditionals(item)
@@ -612,10 +612,10 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource, tablenum)
extra = AtlasLoot_FixText(extra); extra = AtlasLoot_FixText(extra);
--Use shortcuts for easier reference to parts of the item button --Use shortcuts for easier reference to parts of the item button
itemButton = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1]); itemButton = _G["AtlasLootItem_"..dataSource[dataID][tablenum][i][1]];
iconFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Icon"); iconFrame = _G["AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Icon"];
nameFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Name"); nameFrame = _G["AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Name"];
extraFrame = getglobal("AtlasLootItem_"..dataSource[dataID][tablenum][i][1].."_Extra"); extraFrame = _G["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 there is no data on the texture an item should have, show a big red question mark
if dataSource[dataID][tablenum][i][3] == "?" then if dataSource[dataID][tablenum][i][3] == "?" then
@@ -706,13 +706,13 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource, tablenum)
itemButton.i = 1; itemButton.i = 1;
itemButton:Show(); itemButton:Show();
if IDfound == 0 then getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide(); end if IDfound == 0 then _G["AtlasLootItem_"..i.."_Unsafe"]:Hide(); end
end end
end end
AtlasLootItemsFrame.refresh = {dataID, dataSource, tablenum}; AtlasLootItemsFrame.refresh = {dataID, dataSource, tablenum};
if dataID ~= "WishList" and dataID ~= "FilterList" and dataSource[dataID].Back ~= true then if dataID ~= "WishList" and dataID ~= "FilterList" and dataSource[dataID].Back ~= true and dataID ~= "EmptyTable" then
AtlasLootItemsFrame.refreshOri = {dataID, dataSource, tablenum}; AtlasLootItemsFrame.refreshOri = {dataID, dataSource, tablenum};
AtlasLoot.db.profile.LastBoss = {dataID, dataSource, tablenum, ATLASLOOT_LASTMODULE, ATLASLOOT_CURRENTTABLE}; AtlasLoot.db.profile.LastBoss = {dataID, dataSource, tablenum, ATLASLOOT_LASTMODULE, ATLASLOOT_CURRENTTABLE};
AtlasLoot.db.profile[ATLASLOOT_CURRENTTABLE] = {dataID, dataSource, tablenum, ATLASLOOT_LASTMODULE, ATLASLOOT_CURRENTTABLE}; AtlasLoot.db.profile[ATLASLOOT_CURRENTTABLE] = {dataID, dataSource, tablenum, ATLASLOOT_LASTMODULE, ATLASLOOT_CURRENTTABLE};
@@ -739,27 +739,27 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource, tablenum)
end end
--Hide navigation buttons by default, only show what we need --Hide navigation buttons by default, only show what we need
getglobal("AtlasLootItemsFrame_BACK"):Hide(); _G["AtlasLootItemsFrame_BACK"]:Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide(); _G["AtlasLootItemsFrame_NEXT"]:Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide(); _G["AtlasLootItemsFrame_PREV"]:Hide();
local tablebase = {dataID, dataSource}; local tablebase = {dataID, dataSource};
if dataID == "FilterList" then if dataID == "FilterList" then
tablebase = {AtlasLootItemsFrame.refreshOri[1],AtlasLootItemsFrame.refreshOri[2]}; tablebase = {AtlasLootItemsFrame.refreshOri[1],AtlasLootItemsFrame.refreshOri[2]};
tablenum = AtlasLootItemsFrame.refreshOri[3]; tablenum = AtlasLootItemsFrame.refreshOri[3];
end end
if tablenum ~= #tablebase[2][tablebase[1]] then if tablenum ~= #tablebase[2][tablebase[1]] then
getglobal("AtlasLootItemsFrame_NEXT"):Show(); _G["AtlasLootItemsFrame_NEXT"]:Show();
getglobal("AtlasLootItemsFrame_NEXT").tablenum = tablenum + 1; _G["AtlasLootItemsFrame_NEXT"].tablenum = tablenum + 1;
getglobal("AtlasLootItemsFrame_NEXT").tablebase = tablebase; _G["AtlasLootItemsFrame_NEXT"].tablebase = tablebase;
end end
if tablenum ~= 1 then if tablenum ~= 1 then
getglobal("AtlasLootItemsFrame_PREV"):Show(); _G["AtlasLootItemsFrame_PREV"]:Show();
getglobal("AtlasLootItemsFrame_PREV").tablenum = tablenum - 1; _G["AtlasLootItemsFrame_PREV"].tablenum = tablenum - 1;
getglobal("AtlasLootItemsFrame_PREV").tablebase = tablebase; _G["AtlasLootItemsFrame_PREV"].tablebase = tablebase;
end end
if dataSource[dataID].Back then if dataSource[dataID].Back then
getglobal("AtlasLootItemsFrame_BACK"):Show(); _G["AtlasLootItemsFrame_BACK"]:Show();
end end
end end
@@ -949,9 +949,9 @@ function AtlasLoot:RefreshQuickLookButtons()
local i=1; local i=1;
while i<5 do while i<5 do
if ((not AtlasLootCharDB["QuickLooks"][i]) or (not AtlasLootCharDB["QuickLooks"][i][1])) or (AtlasLootCharDB["QuickLooks"][i][1]==nil) then if ((not AtlasLootCharDB["QuickLooks"][i]) or (not AtlasLootCharDB["QuickLooks"][i][1])) or (AtlasLootCharDB["QuickLooks"][i][1]==nil) then
getglobal("AtlasLootDefaultFrame_Preset"..i):Disable(); _G["AtlasLootDefaultFrame_Preset"..i]:Disable();
else else
getglobal("AtlasLootDefaultFrame_Preset"..i):Enable(); _G["AtlasLootDefaultFrame_Preset"..i]:Enable();
end end
i=i+1; i=i+1;
end end
@@ -967,7 +967,7 @@ function AtlasLoot:QueryLootPage()
local function queryNextItem(pos) local function queryNextItem(pos)
if pos > MAX_BUTTONS then return end; if pos > MAX_BUTTONS then return end;
local button = getglobal("AtlasLootItem_"..pos); local button = _G["AtlasLootItem_"..pos];
local queryitem = button.itemID; local queryitem = button.itemID;
if (queryitem) and (queryitem ~= nil) and (queryitem ~= "") and (queryitem ~= 0) and (string.sub(queryitem, 1, 1) ~= "s") then if (queryitem) and (queryitem ~= nil) and (queryitem ~= "") and (queryitem ~= 0) and (string.sub(queryitem, 1, 1) ~= "s") then
@@ -999,14 +999,14 @@ Querys all valid items on the current loot page.
function AtlasLoot:QueryLootPageOLD() function AtlasLoot:QueryLootPageOLD()
local lastitem local lastitem
for t = 1, 30, 1 do for t = 1, 30, 1 do
local xbutton = getglobal("AtlasLootItem_"..t); local xbutton = _G["AtlasLootItem_"..t];
local xqueryitem = xbutton.itemID; local xqueryitem = xbutton.itemID;
if (xqueryitem) and (xqueryitem ~= nil) and (xqueryitem ~= "") and (xqueryitem ~= 0) and (string.sub(xqueryitem, 1, 1) ~= "s") then if (xqueryitem) and (xqueryitem ~= nil) and (xqueryitem ~= "") and (xqueryitem ~= 0) and (string.sub(xqueryitem, 1, 1) ~= "s") then
lastitem = t; lastitem = t;
end end
end end
for i = 1, 30, 1 do for i = 1, 30, 1 do
local button = getglobal("AtlasLootItem_"..i); local button = _G["AtlasLootItem_"..i];
local queryitem = button.itemID; local queryitem = button.itemID;
if (queryitem) and (queryitem ~= nil) and (queryitem ~= "") and (queryitem ~= 0) and (string.sub(queryitem, 1, 1) ~= "s") then if (queryitem) and (queryitem ~= nil) and (queryitem ~= "") and (queryitem ~= 0) and (string.sub(queryitem, 1, 1) ~= "s") then
local item = Item:CreateFromID(queryitem); local item = Item:CreateFromID(queryitem);
@@ -1027,7 +1027,7 @@ Adds explanatory tooltips to UI objects.
]] ]]
function AtlasLoot:AddTooltip(frameb, tooltiptext) function AtlasLoot:AddTooltip(frameb, tooltiptext)
if not tooltiptext or not frameb then return end if not tooltiptext or not frameb then return end
local frame = getglobal(frameb) local frame = _G[frameb]
frame:SetScript("OnEnter", function() frame:SetScript("OnEnter", function()
GameTooltip:SetOwner(frame, "ANCHOR_RIGHT") GameTooltip:SetOwner(frame, "ANCHOR_RIGHT")
GameTooltip:SetText(tooltiptext) GameTooltip:SetText(tooltiptext)
+7 -7
View File
@@ -40,16 +40,16 @@ function AtlasLoot:MapOnShow()
-- Hide the Filter Check-Box -- Hide the Filter Check-Box
AtlasLootFilterCheck:Hide(); AtlasLootFilterCheck:Hide();
--Hide navigation buttons by default, only show what we need --Hide navigation buttons by default, only show what we need
getglobal("AtlasLootItemsFrame_BACK"):Hide(); _G["AtlasLootItemsFrame_BACK"]:Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide(); _G["AtlasLootItemsFrame_NEXT"]:Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide(); _G["AtlasLootItemsFrame_PREV"]:Hide();
AtlasLootDefaultFrame_LootBackground:Hide(); AtlasLootDefaultFrame_LootBackground:Hide();
--Hide UI objects so that only needed ones are shown --Hide UI objects so that only needed ones are shown
for i = 1, 30, 1 do for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide(); _G["AtlasLootItem_"..i.."_Unsafe"]:Hide();
getglobal("AtlasLootItem_"..i):Hide(); _G["AtlasLootItem_"..i]:Hide();
getglobal("AtlasLootItem_"..i).itemID = 0; _G["AtlasLootItem_"..i].itemID = 0;
getglobal("AtlasLootItem_"..i).spellitemID = 0; _G["AtlasLootItem_"..i].spellitemID = 0;
end end
AtlasLootDefaultFrame_Map:Show(); AtlasLootDefaultFrame_Map:Show();
Atlasloot_HeaderLabel:Show(); Atlasloot_HeaderLabel:Show();
+6 -6
View File
@@ -115,21 +115,21 @@ function AtlasLoot:HideNoUsableItems()
AtlasLoot_Data["FilterList"] = { Type = dataSource[dataID].Type; Name = dataSource[dataID].Name;Map = dataSource[dataID].Map; [tablenum] = {Name = dataSource[dataID][tablenum].Name}; }; AtlasLoot_Data["FilterList"] = { Type = dataSource[dataID].Type; Name = dataSource[dataID].Name;Map = dataSource[dataID].Map; [tablenum] = {Name = dataSource[dataID][tablenum].Name}; };
for i=1,30 do for i=1,30 do
local info = getglobal("AtlasLootItem_"..i.."_Extra"):GetText() local info = _G["AtlasLootItem_"..i.."_Extra"]:GetText()
if getglobal("AtlasLootItem_"..i):IsShown() then if _G["AtlasLootItem_"..i]:IsShown() then
local xgo = true local xgo = true
local countOld = count local countOld = count
itemCount = itemCount + 1 itemCount = itemCount + 1
countAll = countAll + count countAll = countAll + count
count = 0 count = 0
local xitemID = getglobal("AtlasLootItem_"..i).itemID local xitemID = _G["AtlasLootItem_"..i].itemID
local xspellitemID = getglobal("AtlasLootItem_"..i).spellitemID local xspellitemID = _G["AtlasLootItem_"..i].spellitemID
local xitemTexture = tablebase[itemCount][3] local xitemTexture = tablebase[itemCount][3]
local xitemExtraText = AtlasLoot_FixText(tablebase[itemCount][5]) local xitemExtraText = AtlasLoot_FixText(tablebase[itemCount][5])
local xitemExtraTextSave = xitemExtraText local xitemExtraTextSave = xitemExtraText
-- remove the "-" -- remove the "-"
xitemExtraText = gsub(xitemExtraText, "-", "") xitemExtraText = gsub(xitemExtraText, "-", "")
local xitemNameText = getglobal("AtlasLootItem_"..i.."_Name"):GetText() local xitemNameText = _G["AtlasLootItem_"..i.."_Name"]:GetText()
if xitemExtraText and xitemExtraText ~= "" then if xitemExtraText and xitemExtraText ~= "" then
for k = 1,#FilterSort do for k = 1,#FilterSort do
@@ -236,7 +236,7 @@ local function CreateCheckButton(parrent, text, num)
Check:SetWidth(25) Check:SetWidth(25)
Check:SetHeight(25) Check:SetHeight(25)
Check:SetScript("OnShow", function() Check:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(BabbleInventory[text]); _G[this:GetName().."Text"]:SetText(BabbleInventory[text]);
if AtlasLootFilterDB[num][text] then if AtlasLootFilterDB[num][text] then
this:SetChecked(1); this:SetChecked(1);
else else
+14 -14
View File
@@ -19,7 +19,7 @@ function AtlasLoot_GetEnchantLink(enchantID)
AtlasLootScanTooltip:ClearLines(); AtlasLootScanTooltip:ClearLines();
AtlasLootScanTooltip:SetHyperlink("enchant:"..enchantID); AtlasLootScanTooltip:SetHyperlink("enchant:"..enchantID);
AtlasLootScanTooltip:Show() AtlasLootScanTooltip:Show()
local tooltipline = getglobal("AtlasLootScanTooltipTextLeft1") local tooltipline = _G["AtlasLootScanTooltipTextLeft1"]
local text = tooltipline:GetText() local text = tooltipline:GetText()
if text and string.find(text, ":") then if text and string.find(text, ":") then
EnchantLink = "|cffffd000|Henchant:"..enchantID.."|h["..text.."]|h|r" EnchantLink = "|cffffd000|Henchant:"..enchantID.."|h["..text.."]|h|r"
@@ -38,8 +38,8 @@ function AtlasLootItem_OnEnter(self)
local isItem; local isItem;
AtlasLootTooltip:ClearLines(); AtlasLootTooltip:ClearLines();
for i=1, 30, 1 do for i=1, 30, 1 do
if (getglobal("AtlasLootTooltipTextRight"..i) ~= nil) then if (_G["AtlasLootTooltipTextRight"..i] ~= nil) then
getglobal("AtlasLootTooltipTextRight"..i):SetText(""); _G["AtlasLootTooltipTextRight"..i]:SetText("");
end end
end end
if self.itemID and (self.itemID ~= 0) then if self.itemID and (self.itemID ~= 0) then
@@ -49,8 +49,8 @@ function AtlasLootItem_OnEnter(self)
isItem = true; isItem = true;
end end
if isItem then if isItem then
local color = strsub(getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), 3, 10); local color = strsub(_G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), 3, 10);
local name = strsub(getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), 11); local name = strsub(_G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), 11);
if(self.itemID ~= 0 and self.itemID ~= "" and self.itemID ~= nil and AtlasLootDKPValues and AtlasLootClassPriority) then if(self.itemID ~= 0 and self.itemID ~= "" and self.itemID ~= nil and AtlasLootDKPValues and AtlasLootClassPriority) then
Identifier = "Item"..self.itemID; Identifier = "Item"..self.itemID;
DKP = AtlasLootDKPValues[Identifier]; DKP = AtlasLootDKPValues[Identifier];
@@ -63,7 +63,7 @@ function AtlasLootItem_OnEnter(self)
if( AtlasLoot.db.profile.LootlinkTT ) then if( AtlasLoot.db.profile.LootlinkTT ) then
--If we have seen the item, use the game tooltip to minimise same name item problems --If we have seen the item, use the game tooltip to minimise same name item problems
if(GetItemInfo(self.itemID) ~= nil) then if(GetItemInfo(self.itemID) ~= nil) then
getglobal(self:GetName().."_Unsafe"):Hide(); _G[self:GetName().."_Unsafe"]:Hide();
AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24); AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24);
AtlasLootTooltip:SetHyperlink("item:"..self.itemID..":0:0:0"); AtlasLootTooltip:SetHyperlink("item:"..self.itemID..":0:0:0");
if ( AtlasLoot.db.profile.ItemIDs ) then if ( AtlasLoot.db.profile.ItemIDs ) then
@@ -86,12 +86,12 @@ function AtlasLootItem_OnEnter(self)
LootLink_AddItem(name, self.itemID..":0:0:0", color); LootLink_AddItem(name, self.itemID..":0:0:0", color);
end end
else else
getglobal(self:GetName().."_Unsafe"):Show(); _G[self:GetName().."_Unsafe"]:Show();
AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24); AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24);
if (LootLink_Database and LootLink_Database[self.itemID]) then if (LootLink_Database and LootLink_Database[self.itemID]) then
LootLink_SetTooltip(AtlasLootTooltip, LootLink_Database[self.itemID][1], 1); LootLink_SetTooltip(AtlasLootTooltip, LootLink_Database[self.itemID][1], 1);
else else
LootLink_SetTooltip(AtlasLootTooltip,strsub(getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), 11), 1); LootLink_SetTooltip(AtlasLootTooltip,strsub(_G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), 11), 1);
end end
if ( AtlasLoot.db.profile.ItemIDs ) then if ( AtlasLoot.db.profile.ItemIDs ) then
AtlasLootTooltip:AddLine(BLUE..AL["ItemID:"].." "..self.itemID, nil, nil, nil, 1); AtlasLootTooltip:AddLine(BLUE..AL["ItemID:"].." "..self.itemID, nil, nil, nil, 1);
@@ -112,7 +112,7 @@ function AtlasLootItem_OnEnter(self)
--Item Sync tooltips --Item Sync tooltips
elseif( AtlasLoot.db.profile.ItemSyncTT ) then elseif( AtlasLoot.db.profile.ItemSyncTT ) then
if(GetItemInfo(self.itemID) ~= nil) then if(GetItemInfo(self.itemID) ~= nil) then
getglobal(self:GetName().."_Unsafe"):Hide(); _G[self:GetName().."_Unsafe"]:Hide();
end end
ItemSync:ButtonEnter(); ItemSync:ButtonEnter();
if ( AtlasLoot.db.profile.ItemIDs ) then if ( AtlasLoot.db.profile.ItemIDs ) then
@@ -135,7 +135,7 @@ function AtlasLootItem_OnEnter(self)
else else
if(self.itemID ~= nil) then if(self.itemID ~= nil) then
if(GetItemInfo(self.itemID) ~= nil) then if(GetItemInfo(self.itemID) ~= nil) then
getglobal(self:GetName().."_Unsafe"):Hide(); _G[self:GetName().."_Unsafe"]:Hide();
AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24); AtlasLootTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 24);
AtlasLootTooltip:SetHyperlink("item:"..self.itemID..":0:0:0"); AtlasLootTooltip:SetHyperlink("item:"..self.itemID..":0:0:0");
if ( AtlasLoot.db.profile.ItemIDs ) then if ( AtlasLoot.db.profile.ItemIDs ) then
@@ -209,9 +209,9 @@ end
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
function AtlasLootItem_OnClick(self ,arg1) function AtlasLootItem_OnClick(self ,arg1)
local isItem; local isItem;
local color = strsub(getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), 1, 10); local color = strsub(_G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), 1, 10);
local id = self:GetID(); local id = self:GetID();
local name = strsub(getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), 11); local name = strsub(_G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), 11);
if string.sub(self.itemID, 1, 1) == "s" then if string.sub(self.itemID, 1, 1) == "s" then
isItem = false; isItem = false;
else else
@@ -245,10 +245,10 @@ function AtlasLootItem_OnClick(self ,arg1)
else else
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
local datID, _, datPage = strsplit("|", self.sourcePage); local datID, _, datPage = strsplit("|", self.sourcePage);
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
AtlasLoot_Data[datID][tonumber(datPage)].Name, self.sourcePage, self); AtlasLoot_Data[datID][tonumber(datPage)].Name, self.sourcePage, self);
else else
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, getglobal("AtlasLootItem_"..self:GetID().."_Name"):GetText(), AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self); AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
end end
end end
+5 -5
View File
@@ -121,10 +121,10 @@ function AtlasLootOptions_ItemIDToggle()
end end
function AtlasLoot_SetupLootBrowserSlider(frame, mymin, mymax, step) function AtlasLoot_SetupLootBrowserSlider(frame, mymin, mymax, step)
getglobal(frame:GetName().."Text"):SetText(AL["Loot Browser Scale: "].." ("..frame:GetValue()..")"); _G[frame:GetName().."Text"]:SetText(AL["Loot Browser Scale: "].." ("..frame:GetValue()..")");
frame:SetMinMaxValues(mymin, mymax); frame:SetMinMaxValues(mymin, mymax);
getglobal(frame:GetName().."Low"):SetText(mymin); _G[frame:GetName().."Low"]:SetText(mymin);
getglobal(frame:GetName().."High"):SetText(mymax); _G[frame:GetName().."High"]:SetText(mymax);
frame:SetValueStep(step); frame:SetValueStep(step);
end end
@@ -135,7 +135,7 @@ local function round(num, idp)
end end
function AtlasLoot_UpdateLootBrowserSlider(frame) function AtlasLoot_UpdateLootBrowserSlider(frame)
getglobal(frame:GetName().."Text"):SetText(AL["Loot Browser Scale: "].." ("..round(frame:GetValue(),2)..")"); _G[frame:GetName().."Text"]:SetText(AL["Loot Browser Scale: "].." ("..round(frame:GetValue(),2)..")");
end end
function AtlasLoot_UpdateLootBrowserScale() function AtlasLoot_UpdateLootBrowserScale()
@@ -143,7 +143,7 @@ function AtlasLoot_UpdateLootBrowserScale()
end end
function AtlasLoot_DisplayHelp() function AtlasLoot_DisplayHelp()
if not getglobal("AtlasLootHelpFrame_HelpText") then if not _G["AtlasLootHelpFrame_HelpText"] then
local framewidht = InterfaceOptionsFramePanelContainer:GetWidth() local framewidht = InterfaceOptionsFramePanelContainer:GetWidth()
local panel3 = CreateFrame("ScrollFrame", "AtlasLootHelpFrame_HelpTextFrameScroll", AtlasLootHelpFrame, "UIPanelScrollFrameTemplate") local panel3 = CreateFrame("ScrollFrame", "AtlasLootHelpFrame_HelpTextFrameScroll", AtlasLootHelpFrame, "UIPanelScrollFrameTemplate")
local scc = CreateFrame("Frame", "AtlasLootHelpFrame_HelpTextFrame", panel3) local scc = CreateFrame("Frame", "AtlasLootHelpFrame_HelpTextFrame", panel3)
+25 -25
View File
@@ -206,9 +206,9 @@ function AtlasLoot_AdvancedSearchShow()
end end
-- Hide all elements that could be in the AtlasTable -- Hide all elements that could be in the AtlasTable
getglobal("AtlasLootItemsFrame_NEXT"):Hide(); _G["AtlasLootItemsFrame_NEXT"]:Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide(); _G["AtlasLootItemsFrame_PREV"]:Hide();
getglobal("AtlasLootItemsFrame_BACK"):Hide(); _G["AtlasLootItemsFrame_BACK"]:Hide();
-- Ditch the Quicklook selector -- Ditch the Quicklook selector
AtlasLootQuickLooksButton:Hide(); AtlasLootQuickLooksButton:Hide();
@@ -217,10 +217,10 @@ function AtlasLoot_AdvancedSearchShow()
AtlasLootFilterCheck:Hide(); AtlasLootFilterCheck:Hide();
for i = 1, 30, 1 do for i = 1, 30, 1 do
getglobal("AtlasLootItem_" .. i .. "_Unsafe"):Hide(); _G["AtlasLootItem_" .. i .. "_Unsafe"]:Hide();
getglobal("AtlasLootItem_" .. i):Hide(); _G["AtlasLootItem_" .. i]:Hide();
getglobal("AtlasLootItem_" .. i).itemID = 0; _G["AtlasLootItem_" .. i].itemID = 0;
getglobal("AtlasLootItem_" .. i).spellitemID = 0; _G["AtlasLootItem_" .. i].spellitemID = 0;
end end
AtlasLoot_BossName:SetText("Advanced Search"); AtlasLoot_BossName:SetText("Advanced Search");
@@ -328,27 +328,27 @@ function AtlasLoot_AdvancedSearchMenuClick(Object, VariableToSet, VariableValue,
if (ChildMenu ~= nil) then if (ChildMenu ~= nil) then
if (ChildMenuRegister == "Disable") then if (ChildMenuRegister == "Disable") then
AtlasLoot_AdvSearchOptions[AtlasLoot_FrameMenuList[ChildMenu][4]] = AtlasLoot_FrameMenuList[ChildMenu][5]; AtlasLoot_AdvSearchOptions[AtlasLoot_FrameMenuList[ChildMenu][4]] = AtlasLoot_FrameMenuList[ChildMenu][5];
getglobal(AtlasLoot_FrameMenuList[ChildMenu][2]):Disable(); _G[AtlasLoot_FrameMenuList[ChildMenu][2]]:Disable();
-- Disable assigned children menus as well -- Disable assigned children menus as well
if (AtlasLoot_FrameMenuList[ChildMenu][6]) then if (AtlasLoot_FrameMenuList[ChildMenu][6]) then
getglobal(AtlasLoot_FrameMenuList[ChildMenu][6]):Disable(); _G[AtlasLoot_FrameMenuList[ChildMenu][6]]:Disable();
end end
if VariableValue == "reset" then if VariableValue == "reset" then
AtlasLoot_AdvSearchOptions[VariableToSet] = ""; AtlasLoot_AdvSearchOptions[VariableToSet] = "";
Object[1]:SetText(AtlasLoot_AdvSearchDefaultText[VariableToSet]); Object[1]:SetText(AtlasLoot_AdvSearchDefaultText[VariableToSet]);
Object[2]:Close(); Object[2]:Close();
getglobal(AtlasLoot_FrameMenuList[ChildMenu][2]):SetText(AtlasLoot_FrameMenuList[ChildMenu][3]) _G[AtlasLoot_FrameMenuList[ChildMenu][2]]:SetText(AtlasLoot_FrameMenuList[ChildMenu][3])
return return
end end
else else
AtlasLoot_AdvancedSearchRegister(AtlasLoot_FrameMenuList[ChildMenu][1], getglobal(AtlasLoot_FrameMenuList[ChildMenu][2]), AtlasLoot_AdvancedSearchMenus[ChildMenuRegister]); AtlasLoot_AdvancedSearchRegister(AtlasLoot_FrameMenuList[ChildMenu][1], _G[AtlasLoot_FrameMenuList[ChildMenu][2]], AtlasLoot_AdvancedSearchMenus[ChildMenuRegister]);
AtlasLoot_AdvSearchOptions[AtlasLoot_FrameMenuList[ChildMenu][4]] = AtlasLoot_FrameMenuList[ChildMenu][5]; AtlasLoot_AdvSearchOptions[AtlasLoot_FrameMenuList[ChildMenu][4]] = AtlasLoot_FrameMenuList[ChildMenu][5];
getglobal(AtlasLoot_FrameMenuList[ChildMenu][2]):Enable(); _G[AtlasLoot_FrameMenuList[ChildMenu][2]]:Enable();
getglobal(AtlasLoot_FrameMenuList[ChildMenu][2]):SetText(AtlasLoot_FrameMenuList[ChildMenu][3]); _G[AtlasLoot_FrameMenuList[ChildMenu][2]]:SetText(AtlasLoot_FrameMenuList[ChildMenu][3]);
-- Disable assigned children menus as well -- Disable assigned children menus as well
if (AtlasLoot_FrameMenuList[ChildMenu][6]) then if (AtlasLoot_FrameMenuList[ChildMenu][6]) then
getglobal(AtlasLoot_FrameMenuList[ChildMenu][6]):Disable(); _G[AtlasLoot_FrameMenuList[ChildMenu][6]]:Disable();
end end
end end
end end
@@ -407,24 +407,24 @@ function AtlasLoot_AdvancedSearchArgumentClick(Object, VariableToSet, VariableVa
if IsOperator and VariableValue == "reset" then if IsOperator and VariableValue == "reset" then
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = ""; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = "";
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):SetText(""); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:SetText("");
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):Hide(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:Hide();
Object[1]:SetText("Select Option"); Object[1]:SetText("Select Option");
Object[2]:Close(); Object[2]:Close();
elseif IsOperator then elseif IsOperator then
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = VariableValue; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = VariableValue;
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):Show(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:Show();
Object[1]:SetText(Object[3]); Object[1]:SetText(Object[3]);
Object[2]:Close(); Object[2]:Close();
elseif VariableValue == "reset" then elseif VariableValue == "reset" then
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"):SetText("Select Option"); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"]:SetText("Select Option");
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"):Disable(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"]:Disable();
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):SetText(""); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:SetText("");
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):Hide(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:Hide();
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet] = ""; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet] = "";
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = ""; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = "";
@@ -432,12 +432,12 @@ function AtlasLoot_AdvancedSearchArgumentClick(Object, VariableToSet, VariableVa
Object[1]:SetText("Select Option"); Object[1]:SetText("Select Option");
Object[2]:Close(); Object[2]:Close();
else else
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"):SetText("Select Option"); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"]:SetText("Select Option");
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"):Enable(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Sub"]:Enable();
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = ""; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet .. "op"] = "";
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):SetText(""); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:SetText("");
getglobal("AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"):Hide(); _G["AtlasLootDefaultFrame_AdvancedSearchPanel_ArgumentContainer" .. VariableToSet .. "Value"]:Hide();
AtlasLoot_AdvSearchOptions["arg" .. VariableToSet] = VariableValue; AtlasLoot_AdvSearchOptions["arg" .. VariableToSet] = VariableValue;
Object[1]:SetText(Object[3]); Object[1]:SetText(Object[3]);
+7 -7
View File
@@ -1338,7 +1338,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListMark:SetWidth(25) WishListMark:SetWidth(25)
WishListMark:SetHeight(25) WishListMark:SetHeight(25)
WishListMark:SetScript("OnShow", function() WishListMark:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Mark items in loot tables"]); _G[this:GetName().."Text"]:SetText(AL["Mark items in loot tables"]);
if AtlasLootWishList["Options"][playerName]["Mark"] then if AtlasLootWishList["Options"][playerName]["Mark"] then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1364,7 +1364,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListMarkOwn:SetWidth(25) WishListMarkOwn:SetWidth(25)
WishListMarkOwn:SetHeight(25) WishListMarkOwn:SetHeight(25)
WishListMarkOwn:SetScript("OnShow", function() WishListMarkOwn:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Mark items from own Wishlist"]); _G[this:GetName().."Text"]:SetText(AL["Mark items from own Wishlist"]);
if AtlasLootWishList["Options"][playerName]["markInTable"] == "own" then if AtlasLootWishList["Options"][playerName]["markInTable"] == "own" then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1386,7 +1386,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListMarkAll:SetWidth(25) WishListMarkAll:SetWidth(25)
WishListMarkAll:SetHeight(25) WishListMarkAll:SetHeight(25)
WishListMarkAll:SetScript("OnShow", function() WishListMarkAll:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Mark items from all Wishlists"]); _G[this:GetName().."Text"]:SetText(AL["Mark items from all Wishlists"]);
if AtlasLootWishList["Options"][playerName]["markInTable"] == "all" then if AtlasLootWishList["Options"][playerName]["markInTable"] == "all" then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1408,7 +1408,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListShare:SetWidth(25) WishListShare:SetWidth(25)
WishListShare:SetHeight(25) WishListShare:SetHeight(25)
WishListShare:SetScript("OnShow", function() WishListShare:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Enable Wishlist Sharing"]); _G[this:GetName().."Text"]:SetText(AL["Enable Wishlist Sharing"]);
if AtlasLootWishList["Options"][playerName]["AllowShareWishlist"] then if AtlasLootWishList["Options"][playerName]["AllowShareWishlist"] then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1430,7 +1430,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListShareInCombat:SetWidth(25) WishListShareInCombat:SetWidth(25)
WishListShareInCombat:SetHeight(25) WishListShareInCombat:SetHeight(25)
WishListShareInCombat:SetScript("OnShow", function() WishListShareInCombat:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Auto reject in combat"]); _G[this:GetName().."Text"]:SetText(AL["Auto reject in combat"]);
if AtlasLootWishList["Options"][playerName]["AllowShareWishlistInCombat"] then if AtlasLootWishList["Options"][playerName]["AllowShareWishlistInCombat"] then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1450,7 +1450,7 @@ function AtlasLoot_CreateWishlistOptions()
WishListAutoAdd:SetWidth(25) WishListAutoAdd:SetWidth(25)
WishListAutoAdd:SetHeight(25) WishListAutoAdd:SetHeight(25)
WishListAutoAdd:SetScript("OnShow", function() WishListAutoAdd:SetScript("OnShow", function()
getglobal(this:GetName().."Text"):SetText(AL["Always use default Wishlist"]); _G[this:GetName().."Text"]:SetText(AL["Always use default Wishlist"]);
if AtlasLootWishList["Options"][playerName]["UseDefaultWishlist"] == true then if AtlasLootWishList["Options"][playerName]["UseDefaultWishlist"] == true then
this:SetChecked(1); this:SetChecked(1);
else else
@@ -1699,7 +1699,7 @@ StaticPopupDialogs["ATLASLOOT_SEND_WISHLIST"] = {
this:SetFrameStrata("TOOLTIP"); this:SetFrameStrata("TOOLTIP");
end, end,
OnAccept = function() OnAccept = function()
local name = getglobal(this:GetParent():GetName().."EditBox"):GetText() local name = _G[this:GetParent():GetName().."EditBox"]:GetText()
if string.lower(name) == string.lower(playerName) then if string.lower(name) == string.lower(playerName) then
DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..RED..AL["You can't send Wishlists to yourself."]); DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..RED..AL["You can't send Wishlists to yourself."]);
curtabname = "" curtabname = ""
@@ -84,7 +84,7 @@ function AtlasLoot:DewDropClick(tablename, text, tablenum)
if lasttable then if lasttable then
AtlasLoot:ShowItemsFrame(lasttable[1], lasttable[2], lasttable[3]); AtlasLoot:ShowItemsFrame(lasttable[1], lasttable[2], lasttable[3]);
else else
AtlasLoot:DewDropSubMenuClick(AtlasLoot_SubMenus[tablename][tablenum][2]) AtlasLoot:ShowItemsFrame(AtlasLoot_SubMenus[tablename][tablenum][2], AtlasLoot_Data, tablenum);
end end
AtlasLoot_Dewdrop:Close(1); AtlasLoot_Dewdrop:Close(1);
end end
@@ -318,15 +318,15 @@ function AtlasLoot:SetNewStyle(style)
AtlasLootDefaultFrame_Options:SetHeight(24) AtlasLootDefaultFrame_Options:SetHeight(24)
local function SetButtons(path) local function SetButtons(path)
getglobal(path):SetNormalTexture("Interface/AchievementFrame/UI-Achievement-Category-Background") _G[path]:SetNormalTexture("Interface/AchievementFrame/UI-Achievement-Category-Background")
getglobal(path):SetHeight(24) _G[path]:SetHeight(24)
getglobal(path):SetPushedTexture("Interface/AchievementFrame/UI-Achievement-Category-Background") _G[path]:SetPushedTexture("Interface/AchievementFrame/UI-Achievement-Category-Background")
getglobal(path):SetHeight(24) _G[path]:SetHeight(24)
local tex = getglobal(path):GetNormalTexture(); local tex = _G[path]:GetNormalTexture();
tex:SetTexCoord(0, 0.6640625, 0, 0.8); tex:SetTexCoord(0, 0.6640625, 0, 0.8);
tex:SetHeight(32) tex:SetHeight(32)
local tex2 = getglobal(path):GetPushedTexture(); local tex2 = _G[path]:GetPushedTexture();
tex2:SetTexCoord(0, 0.6640625, 0, 0.8); tex2:SetTexCoord(0, 0.6640625, 0, 0.8);
tex2:SetHeight(32) tex2:SetHeight(32)
end end
@@ -359,15 +359,15 @@ function AtlasLoot:SetNewStyle(style)
AtlasLootDefaultFrame_Options:SetHeight(20) AtlasLootDefaultFrame_Options:SetHeight(20)
local function SetButtons(path) local function SetButtons(path)
getglobal(path):SetNormalTexture("Interface/Buttons/UI-Panel-Button-Up") _G[path]:SetNormalTexture("Interface/Buttons/UI-Panel-Button-Up")
getglobal(path):SetHeight(20) _G[path]:SetHeight(20)
getglobal(path):SetPushedTexture("Interface/Buttons/UI-Panel-Button-Down") _G[path]:SetPushedTexture("Interface/Buttons/UI-Panel-Button-Down")
getglobal(path):SetHeight(20) _G[path]:SetHeight(20)
local tex = getglobal(path):GetNormalTexture(); local tex = _G[path]:GetNormalTexture();
tex:SetTexCoord(0, 0.625, 0, 0.6875); tex:SetTexCoord(0, 0.625, 0, 0.6875);
tex:SetHeight(20) tex:SetHeight(20)
local tex2 = getglobal(path):GetPushedTexture(); local tex2 = _G[path]:GetPushedTexture();
tex2:SetTexCoord(0, 0.625, 0, 0.6875); tex2:SetTexCoord(0, 0.625, 0, 0.6875);
tex2:SetHeight(20) tex2:SetHeight(20)
end end
@@ -246,10 +246,14 @@ local submenubtn = CreateFrame("Button", "AtlasLootDefaultFrame_SubMenu", AtlasL
submenubtn:SetSize(200,25); submenubtn:SetSize(200,25);
submenubtn:SetPoint("LEFT", "AtlasLootDefaultFrame_Menu", "RIGHT",0,0); submenubtn:SetPoint("LEFT", "AtlasLootDefaultFrame_Menu", "RIGHT",0,0);
submenubtn.Lable = submenubtn:CreateFontString("AtlasLootDefaultFrame_SelectedTable", "OVERLAY","GameFontNormal") submenubtn.Lable = submenubtn:CreateFontString("AtlasLootDefaultFrame_SelectedTable", "OVERLAY","GameFontNormal")
submenubtn.Lable:SetPoint("TOP",submenubtn,"BOTTOM",0,37); submenubtn.Lable:SetPoint("TOP","AtlasLootDefaultFrame_SubMenu","BOTTOM",0,37);
submenubtn.Lable:SetText("Select Subcategory"); submenubtn.Lable:SetText("Select Subcategory");
submenubtn.Lable:Show(); submenubtn.Lable:Show();
submenubtn:SetText(AL["Select Sub-Table"]); submenubtn.Text = submenubtn:CreateFontString("AtlasLootDefaultFrame_SubMenuText", "OVERLAY","GameFontNormal")
submenubtn.Text:SetPoint("LEFT","AtlasLootDefaultFrame_SubMenu","RIGHT",0,0);
submenubtn.Text:SetJustifyH("CENTER");
submenubtn.Text:SetSize(190,25);
submenubtn.Text:Show();
submenubtn:SetScript("OnClick", function(self) submenubtn:SetScript("OnClick", function(self)
if AtlasLoot_DewdropSubMenu:IsOpen() then if AtlasLoot_DewdropSubMenu:IsOpen() then
AtlasLoot_DewdropSubMenu:Close(); AtlasLoot_DewdropSubMenu:Close();