add icon borders
This commit is contained in:
+12
-12
@@ -23,11 +23,9 @@ end
|
||||
function AtlasLoot_PrepMenu(backPage, title)
|
||||
for i = 1, 30, 1 do
|
||||
_G["AtlasLootItem_" .. i]:Hide();
|
||||
_G["AtlasLootItem_" .. i.."Border"]:Hide()
|
||||
end
|
||||
for i = 1, 30, 1 do
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
_G["AtlasLootMenuItem_" .. i.."Border"]:Hide()
|
||||
button:Hide();
|
||||
button.isheader = false;
|
||||
button.container = nil
|
||||
@@ -140,7 +138,9 @@ function AtlasLootSetMenu()
|
||||
AtlasLootMenuItem_20:Show();
|
||||
for i = 1, 30 do
|
||||
if _G["AtlasLootMenuItem_"..i].container then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
else
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 1, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -278,7 +278,7 @@ function AtlasLootPRE60SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -378,7 +378,7 @@ function AtlasLootZGSetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -457,7 +457,7 @@ function AtlasLootAQ40SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -536,7 +536,7 @@ function AtlasLootAQ20SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -615,7 +615,7 @@ function AtlasLootT0SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -694,7 +694,7 @@ function AtlasLootT1SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -773,7 +773,7 @@ function AtlasLootT2SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -852,7 +852,7 @@ function AtlasLootT3SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
@@ -931,7 +931,7 @@ function AtlasLoot_Kara40SetMenu()
|
||||
local button = _G["AtlasLootMenuItem_" .. i]
|
||||
button.dataSource = AtlasLoot_GetDataSource(button.lootpage)
|
||||
if ( type(button.container) == "table" ) then
|
||||
_G["AtlasLootMenuItem_"..i.."Border"]:Show()
|
||||
_G["AtlasLootMenuItem_"..i.."_IconBorder"]:SetBackdropBorderColor(1, 0.82, 0)
|
||||
for row = 1, getn(button.container) do
|
||||
for item = 1, getn(button.container[row]) do
|
||||
AtlasLoot_CacheItem(button.container[row][item][1])
|
||||
|
||||
Reference in New Issue
Block a user