AtlasLoot_ContainerItem_OnClick(arg1)
AtlasLootDefaultFrame:Hide();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if AtlasLootDefaultFrameSearchBox:GetText() ~= "" then
AtlasLootSearchBox:SetText(AtlasLootDefaultFrameSearchBox:GetText())
AtlasLootSearchBox:ClearFocus();
end
Atlas_Toggle();
CloseDropDownMenus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Atlas"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if IsAddOnLoaded("Atlas") then
this:Enable();
else
this:Disable();
end
AtlasLootOptions_Toggle();
CloseDropDownMenus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Options"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if AtlasLoot_Hewdrop:IsOpen() then
AtlasLoot_Hewdrop:Close();
else
AtlasLoot_Hewdrop:Open(this);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Select Loot Table"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if AtlasLoot_HewdropSubMenu:IsOpen() then
AtlasLoot_HewdropSubMenu:Close();
else
AtlasLoot_HewdropSubMenu:Open(this);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Select Sub-Table"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][1][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(1);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][1][1]) then
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], pFrame);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 1");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][1]) or (not AtlasLootCharDB["QuickLooks"][1][1])) or (AtlasLootCharDB["QuickLooks"][1][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][2][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(2);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][2][1]) then
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], pFrame);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 2");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][2]) or (not AtlasLootCharDB["QuickLooks"][2][1])) or (AtlasLootCharDB["QuickLooks"][2][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][3][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(3);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][3][1]) then
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], pFrame);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 3");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][3]) or (not AtlasLootCharDB["QuickLooks"][3][1])) or (AtlasLootCharDB["QuickLooks"][3][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][4][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(4);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][4][1]) then
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], pFrame);
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 4");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][4]) or (not AtlasLootCharDB["QuickLooks"][4][1])) or (AtlasLootCharDB["QuickLooks"][4][1]==nil) then
this:Disable();
end
this:SetAutoFocus(false);
this:SetTextInsets(0, 8, 0, 0);
AtlasLoot:Search(this:GetText());
this:ClearFocus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Search"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:Search(AtlasLootDefaultFrameSearchBox:GetText());
AtlasLootDefaultFrameSearchBox:ClearFocus();
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:ShowSearchOptions(this);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Clear"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLootDefaultFrameSearchBox:SetText("");
AtlasLootDefaultFrameSearchBox:ClearFocus();
CloseDropDownMenus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Last Result"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:ShowSearchResult();
CloseDropDownMenus();
AtlasLoot_ShowWishList();
CloseDropDownMenus();
AtlasLootDefaultFrame_SubMenu:Disable()
AtlasLootDefaultFrame_SelectedTable:Hide()
AtlasLootQuickLooksButton:Hide()
AtlasLoot_QuickLooks:Hide()
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["WishList"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AL["WishList"].."|r");
GameTooltip:AddLine(AL["ALT+Click on item to add or remove it from WishList"]);
GameTooltip:Show();
end
GameTooltip:Hide();
this:RegisterForDrag("LeftButton");
this:SetMovable(1);
this:SetBackdropColor(0.75, 0, 0.75);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootDefaultFrame_Notice:SetText(AL["NoticeFrame"]);
CloseDropDownMenus();
AtlasLootDefaultFrame_OnShow();
AtlasLootDefaultFrame_OnHide();
this:StartMoving();
this:StopMovingOrSizing();
GameTooltip:Hide();
AtlasLootBoss_OnClick(this:GetName());
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_NavButton_OnClick();
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
AtlasLootItem_OnEnter();
AtlasLootItem_OnLeave();
AtlasLootItem_OnClick(arg1);
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
AtlasLootMenuItem_OnClick();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:SetText(AL["AL Panel"]);
if AtlasLootCharDB.HidePanel then
AtlasLootCharDB.HidePanel = false;
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Show();
end
end
else
AtlasLootCharDB.HidePanel = true;
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Hide();
end
end
end
AtlasLootOptionsFrameHidePanel:SetChecked(AtlasLootCharDB.HidePanel);
AtlasLoot_SetupForAtlas();
if AtlasLootSearchBox:GetText() ~= "" then
AtlasLootDefaultFrameSearchBox:SetText(AtlasLootSearchBox:GetText())
AtlasLootDefaultFrameSearchBox:ClearFocus();
end
AtlasLoot_Toggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["AtlasLoot"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLootItemsFrame_OnCloseButton();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_NavButton_OnClick()
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Query Server"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffff0000"..AL["Query Server"]);
GameTooltip:AddLine(AL["Queries the server for all items"]);
GameTooltip:AddLine(AL["on this page. The items will be"]);
GameTooltip:AddLine(AL["refreshed when you next mouse"]);
GameTooltip:AddLine(AL["over them."]);
GameTooltip:Show();
GameTooltip:Hide();
GameTooltip:Hide();
AtlasLoot_QueryLootPage();
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if (AtlasLootItemsFrame.refresh) and ((AtlasLootItemsFrame.refresh[1] == "SearchResult") or (AtlasLootItemsFrame.refresh[1] == "WishList")) then
this:Disable();
else
this:Enable();
end
AtlasLoot_ShowQuickLooks(this);
AtlasLoot_NavButton_OnClick();
CloseDropDownMenus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_OnLoad();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootItemsFrame_BACK:SetText(AL["Back"]);
AtlasLoot_QuickLooks:SetText(AL["Add to QuickLooks:"]);
AtlasLoot_OnEvent();
if arg1 == 1 and AtlasLootItemsFrame_NEXT:IsVisible() then
AtlasLootItemsFrame_NEXT:Click()
elseif arg1 == -1 and AtlasLootItemsFrame_PREV:IsVisible() then
AtlasLootItemsFrame_PREV:Click()
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Safe Chat Links |cff1eff00(recommended)|r"]);
AtlasLootOptions_SafeLinksToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Enable all Chat Links |cffff0000(use at own risk)|r"]);
AtlasLootOptions_AllLinksToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Default Tooltips"]);
AtlasLootOptions_DefaultTTToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Lootlink Tooltips"]);
AtlasLootOptions_DefaultTTToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["ItemSync Tooltips"]);
AtlasLootOptions_DefaultTTToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Show Source on Tooltips"]);
AtlasLootOptions_ShowSourceToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Use EquipCompare"]);
AtlasLootOptions_EquipCompareToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Show IDs at all times"]);
AtlasLootOptions_ItemIDToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Show Minimap Button"]);
if AtlasLootCharDB.MinimapButton == true then
AtlasLootCharDB.MinimapButton = false;
else
AtlasLootCharDB.MinimapButton = true;
end
AtlasLootMinimapButton_Init();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Hide AtlasLoot Panel"]);
if AtlasLootCharDB.HidePanel == true then
AtlasLootCharDB.HidePanel = false;
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Show();
end
end
else
AtlasLootCharDB.HidePanel = true;
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Hide();
end
end
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Make Loot Table Opaque"]);
AtlasLootOptions_OpaqueToggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal(this:GetName().."Text"):SetText(AL["Suppress text spam when querying items"]);
AtlasLootOptions_ItemSpam();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootOptions_SetupSlider(AL["Button Radius"], 0, 200, 1);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootOptions_UpdateSlider(AL["Button Radius"]);
AtlasLootCharDB.MinimapButtonRadius = this:GetValue();
AtlasLootMinimapButton_UpdatePosition();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootOptions_SetupSlider(AL["Button Position"], 0, 360, 1);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootOptions_UpdateSlider(AL["Button Position"]);
AtlasLootCharDB.MinimapButtonPosition = this:GetValue();
AtlasLootMinimapButton_UpdatePosition();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Done"]);
AtlasLootOptions_Toggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Reset Position"]);
AtlasLootOptions_ResetPosition();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Default Settings"]);
AtlasLootOptions_DefaultSettings();
this:RegisterForDrag("LeftButton");
this:SetMovable(1);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLootOptionsFrame_Title:SetText(AL["Atlasloot Options"]);
this:StartMoving();
this:StopMovingOrSizing();
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLootWorldEventMenu();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["World Events"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLootSetMenu();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Collections"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLootRepMenu();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Factions"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLootPvPMenu();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["PvP Rewards"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLoot_CraftingMenu();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Crafting"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_QuickLooks:Hide();
AtlasLootQuickLooksButton:Hide();
AtlasLoot_ShowWishList();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["WishList"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AL["WishList"].."|r");
GameTooltip:AddLine(AL["ALT+Click on item to add or remove it from WishList"]);
GameTooltip:Show();
end
GameTooltip:Hide();
AtlasLootOptions_Toggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Options"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][1][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(1);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][1][1]) then
if AtlasLootPanel:GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], nil);
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
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]);
end
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 1");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][1]) or (not AtlasLootCharDB["QuickLooks"][1][1])) or (AtlasLootCharDB["QuickLooks"][1][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][2][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(2);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][2][1]) then
if AtlasLootPanel:GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], nil);
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
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]);
end
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 2");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][2]) or (not AtlasLootCharDB["QuickLooks"][2][1])) or (AtlasLootCharDB["QuickLooks"][2][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][3][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(3);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][3][1]) then
if AtlasLootPanel:GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], nil);
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
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]);
end
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 3");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][3]) or (not AtlasLootCharDB["QuickLooks"][3][1])) or (AtlasLootCharDB["QuickLooks"][3][1]==nil) then
this:Disable();
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][4][3].."|r");
GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
if(GameTooltip:IsVisible()) then
GameTooltip:Hide();
end
if IsAltKeyDown() then
AtlasLoot_ClearQuickLookButton(4);
end
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][4][1]) then
if AtlasLootPanel:GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], nil);
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
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]);
end
end
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["QuickLook"].." 4");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if ((not AtlasLootCharDB["QuickLooks"][4]) or (not AtlasLootCharDB["QuickLooks"][4][1])) or (AtlasLootCharDB["QuickLooks"][4][1]==nil) then
this:Disable();
end
this:SetAutoFocus(false);
this:SetTextInsets(0, 8, 0, 0);
AtlasLoot:Search(this:GetText());
this:ClearFocus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Search"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:Search(AtlasLootSearchBox:GetText());
AtlasLootSearchBox:ClearFocus();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:ShowSearchOptions(this);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Clear"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLootSearchBox:SetText("");
AtlasLootSearchBox:ClearFocus();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Last Result"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:ShowSearchResult();
this:RegisterForDrag("RightButton");
this.aldragme = false;
this.aldragme = true;
this.aldragme = false;
if(this.aldragme == true) then
AtlasLootMinimapButton_BeingDragged();
end
AtlasLootMinimapButton_OnClick(arg1);
if ( arg1 == "MiddleButton" ) then
AtlasLootOptions_Toggle();
end
AtlasLootMinimapButton_OnEnter();
GameTooltip:Hide();
this:RegisterEvent("VARIABLES_LOADED");
AtlasLootMinimapButton_Init();