this:SetAutoFocus(false)
this:SetTextInsets(0, 8, 0, 0)
AtlasLoot:Search(this:GetText())
this:ClearFocus()
this:RegisterForDrag("LeftButton")
this:SetBackdropColor(0.75, 0, 0.75)
local AL = AtlasLoot.L
AtlasLootDefaultFrame_Notice:SetText(AL["NoticeFrame"])
CloseDropDownMenus()
AtlasLootDefaultFrame_OnShow()
AtlasLootDefaultFrame_OnHide()
this:StartMoving()
this:StopMovingOrSizing()
this:SetOwner(WorldFrame, "ANCHOR_NONE")
AtlasLoot_OnLoad()
local AL = AtlasLoot.L
AtlasLootItemsFrame_BACK:SetText(AL["Back"])
AtlasLoot_QuickLooks:SetText(AL["Add to QuickLooks:"])
AtlasLoot_OnEvent()
AtlasLootItemsFrame_OnUpdate()
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 = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Default Tooltips"])
AtlasLootOptions_DefaultTTToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Lootlink Tooltips"])
AtlasLootOptions_DefaultTTToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["ItemSync Tooltips"])
AtlasLootOptions_DefaultTTToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Show Source on Tooltips"])
AtlasLootOptions_ShowSourceToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText("Group wishlist by dungeon")
AtlasLootOptions_WishlistGroupedByDungeonToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Use EquipCompare"])
AtlasLootOptions_EquipCompareToggle()
local AL = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Show IDs at all times"])
AtlasLootOptions_ItemIDToggle()
local AL = AtlasLoot.L
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 = AtlasLoot.L
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 = AtlasLoot.L
getglobal(this:GetName().."Text"):SetText(AL["Make Loot Table Opaque"])
AtlasLootOptions_OpaqueToggle()
local AL = AtlasLoot.L
AtlasLootOptions_SetupSlider(AL["Button Radius"], 0, 200, 1)
local AL = AtlasLoot.L
AtlasLootOptions_UpdateSlider(AL["Button Radius"])
AtlasLootCharDB.MinimapButtonRadius = this:GetValue()
AtlasLootMinimapButton_UpdatePosition()
local AL = AtlasLoot.L
AtlasLootOptions_SetupSlider(AL["Button Position"], 0, 360, 1)
local AL = AtlasLoot.L
AtlasLootOptions_UpdateSlider(AL["Button Position"])
AtlasLootCharDB.MinimapButtonPosition = this:GetValue()
AtlasLootMinimapButton_UpdatePosition()
this:RegisterForDrag("LeftButton")
this:SetMovable(1)
local AL = AtlasLoot.L
AtlasLootOptionsFrame_Title:SetText(AL["Atlasloot Options"])
this:StartMoving()
this:StopMovingOrSizing()
AtlasLoot:Search(this:GetText())
this:ClearFocus()
this:RegisterEvent("VARIABLES_LOADED")
AtlasLootMinimapButton_Init()