AutoQuery change
Found a better way to AutoQuery on frame creation
This commit is contained in:
@@ -784,6 +784,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
itemButton:Show();
|
||||
|
||||
if dataSource[dataID][i][2] == 0 then getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide(); end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -914,6 +915,8 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
if ATLASLOOT_FILTER_ENABLE == true and dataID ~= "FilterList" then
|
||||
AtlasLoot_HideNoUsableItems()
|
||||
end
|
||||
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then AtlasLoot_QueryLootPage(); end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
@@ -582,9 +582,6 @@
|
||||
</OnShow>
|
||||
<OnClick>
|
||||
AtlasLoot_10Man25ManToggle();
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then
|
||||
AtlasLoot_QueryLootPage();
|
||||
end
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
@@ -605,10 +602,7 @@
|
||||
getglobal(this:GetName().."Text"):SetText(AL["Heroic Mode"]);
|
||||
</OnLoad>
|
||||
<OnClick>
|
||||
AtlasLoot_HeroicModeToggle();
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then
|
||||
AtlasLoot_QueryLootPage();
|
||||
end
|
||||
AtlasLoot_HeroicModeToggle();
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</CheckButton>
|
||||
@@ -632,9 +626,6 @@
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
AtlasLoot_NavButton_OnClick()
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then
|
||||
AtlasLoot_QueryLootPage();
|
||||
end
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
@@ -654,9 +645,6 @@
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnShow>
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then
|
||||
AtlasLoot_QueryLootPage();
|
||||
end
|
||||
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
|
||||
this:SetText(AL["Query Server"]);
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
@@ -742,9 +730,6 @@
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
AtlasLoot_NavButton_OnClick()
|
||||
if AtlasLoot.db.profile.ItemAutoQuery then
|
||||
AtlasLoot_QueryLootPage();
|
||||
end
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], pFrame);
|
||||
end
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
<OnShow>
|
||||
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
|
||||
this:SetText(AL["QuickLook"].." 2");
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
|
||||
Reference in New Issue
Block a user