AtlasLootDefaultFrame:Hide();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if AtlasLootDefaultFrameSearchBox:GetText() ~= "" then
AtlasLootSearchBox:SetText(AtlasLootDefaultFrameSearchBox:GetText())
AtlasLootSearchBox:ClearFocus();
end
Atlas_Toggle();
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();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Options"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
if AtlasLoot_Dewdrop:IsOpen() then
AtlasLoot_Dewdrop:Close();
else
AtlasLoot_Dewdrop: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_DewdropSubMenu:IsOpen() then
AtlasLoot_DewdropSubMenu:Close();
else
AtlasLoot_DewdropSubMenu: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(AtlasLootCharDB["QuickLooks"][1][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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(AtlasLootCharDB["QuickLooks"][2][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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(AtlasLootCharDB["QuickLooks"][3][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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(AtlasLootCharDB["QuickLooks"][4][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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();
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();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Last Result"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot:ShowSearchResult();
AtlasLoot_ShowWishList();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["WishList"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:RegisterForDrag("LeftButton");
this:SetMovable(1);
this:SetBackdropColor(0.75, 0, 0.75);
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal("AtlasLootDefaultFrame_Notice"):SetText(AL["This is a loot browser only. To view maps as well, install either Atlas or Alphamap."]);
AtlasLootDefaultFrame_OnShow();
AtlasLootDefaultFrame_OnHide();
this:StartMoving();
this.isMoving = true;
this:StopMovingOrSizing();
this.isMoving = false;
GameTooltip:Hide();
AtlasLootBoss_OnClick(this:GetName());
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_NavButton_OnClick();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
AtlasLootItem_OnEnter();
AtlasLootItem_OnLeave();
AtlasLootItem_OnClick(arg1);
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["Toggle AL Panel"]);
getglobal("AtlasLootInfo_Text2"):SetText(AL["ALT+Click to use WishList."]);
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();
AtlasLootItemsFrame_OnCloseButton();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_NavButton_OnClick()
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();
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();
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
AtlasLoot_OnLoad();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
getglobal("AtlasLootItemsFrame_BACK"):SetText(AL["Back"]);
getglobal("AtlasLoot_QuickLooks"):SetText(AL["Add to QuickLooks:"]);
AtlasLoot_OnEvent(event, arg1, arg2);
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["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");
getglobal("AtlasLootOptionsFrame_Title"):SetText(AL["Atlasloot Options"]);
this:StartMoving();
this.isMoving = true;
this:StopMovingOrSizing();
this.isMoving = false;
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 );
AtlasLootOptions_Toggle();
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Options"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
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 );
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(AtlasLootCharDB["QuickLooks"][1][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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 getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], nil);
elseif getglobal("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(AtlasLootCharDB["QuickLooks"][2][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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 getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], nil);
elseif getglobal("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(AtlasLootCharDB["QuickLooks"][3][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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 getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], nil);
elseif getglobal("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(AtlasLootCharDB["QuickLooks"][4][3]);
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
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 getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], nil);
elseif getglobal("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();