|
|
|
@@ -152,7 +152,6 @@ local nextbtn = CreateFrame("Button", "AtlasLootItemsFrame_NEXT", AtlasLootItems
|
|
|
|
|
local prevbtn = CreateFrame("Button", "AtlasLootItemsFrame_PREV", AtlasLootItemsFrame);
|
|
|
|
|
prevbtn:SetPoint("BOTTOMLEFT", "AtlasLootItemsFrame", "BOTTOMLEFT",5,5);
|
|
|
|
|
prevbtn:SetSize(32,32);
|
|
|
|
|
prevbtn:SetFrameStrata("HIGH");
|
|
|
|
|
prevbtn.texture = prevbtn:CreateTexture(nil, "BACKGROUND");
|
|
|
|
|
prevbtn.texture:SetTexture("Interface\\Buttons\\UI-PageButton-Background");
|
|
|
|
|
prevbtn.texture:SetSize(32,32);
|
|
|
|
@@ -167,12 +166,7 @@ local prevbtn = CreateFrame("Button", "AtlasLootItemsFrame_PREV", AtlasLootItems
|
|
|
|
|
-- Back button
|
|
|
|
|
local backbtn = CreateFrame("Button", "AtlasLootItemsFrame_BACK", AtlasLootItemsFrame, "OptionsButtonTemplate");
|
|
|
|
|
backbtn:SetPoint("BOTTOM", "AtlasLootItemsFrame", "BOTTOM",0,4);
|
|
|
|
|
backbtn:SetFrameStrata("HIGH");
|
|
|
|
|
backbtn:SetText(AL["Back"]);
|
|
|
|
|
backbtn.texture = backbtn:CreateTexture("AtlasLootItemsFrame_Back", "BACKGROUND");
|
|
|
|
|
backbtn.texture:SetPoint("TOPLEFT","AtlasLootItemsFrame","TOPLEFT");
|
|
|
|
|
backbtn.texture:SetPoint("BOTTOMRIGHT","AtlasLootItemsFrame","BOTTOMRIGHT");
|
|
|
|
|
backbtn.texture:SetVertexColor(0,0,0,0.7);
|
|
|
|
|
backbtn:SetScript("OnClick", function(self) AtlasLoot:BackButton_OnClick() end)
|
|
|
|
|
backbtn:Hide();
|
|
|
|
|
|
|
|
|
@@ -188,12 +182,11 @@ local filterbtn = CreateFrame("CheckButton","AtlasLootFilterCheck",AtlasLootItem
|
|
|
|
|
local looksbtn = CreateFrame("Button", "AtlasLootQuickLooksButton", AtlasLootItemsFrame);
|
|
|
|
|
looksbtn:SetPoint("BOTTOM", "AtlasLootItemsFrame", "BOTTOM",58,28);
|
|
|
|
|
looksbtn:SetSize(25,25);
|
|
|
|
|
looksbtn:SetFrameStrata("HIGH");
|
|
|
|
|
looksbtn.Label = nextbtn:CreateFontString("AtlasLoot_QuickLooks","OVERLAY","GameFontNormal");
|
|
|
|
|
looksbtn.Label = looksbtn:CreateFontString("AtlasLoot_QuickLooks","OVERLAY","GameFontNormal");
|
|
|
|
|
looksbtn.Label:SetSize(200,25);
|
|
|
|
|
looksbtn.Label:SetText(AL["Add to QuickLooks:"]);
|
|
|
|
|
looksbtn.Label:SetPoint("BOTTOM", "AtlasLootItemsFrame","BOTTOM", -57, 28);
|
|
|
|
|
looksbtn.Label:SetJustifyH("RIGHT");
|
|
|
|
|
looksbtn.Label:SetPoint("LEFT", "AtlasLootQuickLooksButton", -125, 0);
|
|
|
|
|
looksbtn.Label:SetJustifyH("LEFT");
|
|
|
|
|
looksbtn:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up");
|
|
|
|
|
looksbtn:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down");
|
|
|
|
|
looksbtn:SetDisabledTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Disabled");
|
|
|
|
@@ -280,43 +273,6 @@ local expansionmenubtn = CreateFrame("Button", "AtlasLootDefaultFrame_ExpansionM
|
|
|
|
|
end
|
|
|
|
|
end);
|
|
|
|
|
|
|
|
|
|
--------------------------------- Atlas Map and map buttons -----------------------------------------------
|
|
|
|
|
|
|
|
|
|
--Atlas Map
|
|
|
|
|
local map = CreateFrame("Frame", "AtlasLootDefaultFrame_Map", AtlasLootDefaultFrame);
|
|
|
|
|
map:SetSize(540,515);
|
|
|
|
|
map:SetPoint("BOTTOMLEFT", AtlasLootDefaultFrame, "BOTTOMLEFT",40,90);
|
|
|
|
|
map:SetFrameStrata("HIGH");
|
|
|
|
|
map:Hide();
|
|
|
|
|
map:EnableMouse();
|
|
|
|
|
map:SetScript("OnMouseDown", function(self, button)
|
|
|
|
|
if button == "RightButton" then
|
|
|
|
|
AtlasLoot:MapOnShow();
|
|
|
|
|
end
|
|
|
|
|
end);
|
|
|
|
|
|
|
|
|
|
-- Map Button
|
|
|
|
|
local mapbtn = CreateFrame("Button","AtlasLootDefaultFrame_MapButton", AtlasLootDefaultFrame,"OptionsButtonTemplate");
|
|
|
|
|
mapbtn:SetSize(90,24);
|
|
|
|
|
mapbtn:SetPoint("BOTTOMLEFT",Atlasloot_SubTableFrame,0,-27.5);
|
|
|
|
|
mapbtn:SetText("Map");
|
|
|
|
|
mapbtn:SetScript("OnClick", function() AtlasLoot:MapOnShow(); end)
|
|
|
|
|
mapbtn:Hide();
|
|
|
|
|
|
|
|
|
|
-- Map Select Button
|
|
|
|
|
local mapSelbtn = CreateFrame("Button","AtlasLootDefaultFrame_MapSelectButton", AtlasLootDefaultFrame,"OptionsButtonTemplate");
|
|
|
|
|
mapSelbtn:SetSize(180,24);
|
|
|
|
|
mapSelbtn:SetPoint("BOTTOMRIGHT",Atlasloot_SubTableFrame,5,-27.5);
|
|
|
|
|
mapSelbtn:SetScript("OnClick", function(self)
|
|
|
|
|
if AtlasLoot_MapMenu:IsOpen() then
|
|
|
|
|
AtlasLoot_MapMenu:Close();
|
|
|
|
|
else
|
|
|
|
|
AtlasLoot_MapMenu:Open(self);
|
|
|
|
|
end
|
|
|
|
|
end);
|
|
|
|
|
mapSelbtn:SetText("No Map");
|
|
|
|
|
mapSelbtn:Hide();
|
|
|
|
|
|
|
|
|
|
---------------------------------------- Buttons Under the loot and subtable frames -------------------------------------------
|
|
|
|
|
|
|
|
|
|
--Wish List Button
|
|
|
|
@@ -546,9 +502,9 @@ function AtlasLoot:SubTableScrollFrameUpdate(tablename, dataSource, pFrame, tabl
|
|
|
|
|
row.tablenum = value;
|
|
|
|
|
row.pFrame = pFrame;
|
|
|
|
|
if dataSource == AtlasLoot_MapData then
|
|
|
|
|
row:SetText(string.sub(dataSource[tablename][value][1],0,48));
|
|
|
|
|
row.Text:SetText(dataSource[tablename][value][1]);
|
|
|
|
|
else
|
|
|
|
|
row:SetText("|cffFFd200"..dataSource[tablename][value].Name);
|
|
|
|
|
row.Text:SetText("|cffFFd200"..dataSource[tablename][value].Name);
|
|
|
|
|
if tablenum == value and dataSource ~= AtlasLoot_MapData then
|
|
|
|
|
row:SetChecked(true);
|
|
|
|
|
end
|
|
|
|
@@ -575,6 +531,10 @@ local rows2 = setmetatable({}, { __index = function(t, i)
|
|
|
|
|
row:SetSize(230, ROW_HEIGHT)
|
|
|
|
|
row:SetNormalFontObject(GameFontHighlightLeft)
|
|
|
|
|
row:SetCheckedTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
|
|
|
|
|
row.Text = row:CreateFontString("$parentRow"..i.."Text","OVERLAY","GameFontNormal");
|
|
|
|
|
row.Text:SetSize(230, ROW_HEIGHT);
|
|
|
|
|
row.Text:SetPoint("LEFT",row);
|
|
|
|
|
row.Text:SetJustifyH("LEFT");
|
|
|
|
|
row:SetScript("OnClick", function()
|
|
|
|
|
if row.dataSource ~= AtlasLoot_MapData then
|
|
|
|
|
AtlasLoot:ShowItemsFrame(row.tablename, row.dataSource, row.pFrame, row.tablenum);
|
|
|
|
@@ -593,3 +553,40 @@ local rows2 = setmetatable({}, { __index = function(t, i)
|
|
|
|
|
end })
|
|
|
|
|
|
|
|
|
|
subtableFrame.rows = rows2
|
|
|
|
|
|
|
|
|
|
--------------------------------- Atlas Map and map buttons -----------------------------------------------
|
|
|
|
|
|
|
|
|
|
--Atlas Map
|
|
|
|
|
local map = CreateFrame("Frame", "AtlasLootDefaultFrame_Map", AtlasLootDefaultFrame);
|
|
|
|
|
map:SetSize(540,515);
|
|
|
|
|
map:SetPoint("BOTTOMLEFT", AtlasLootDefaultFrame, "BOTTOMLEFT",40,90);
|
|
|
|
|
map:SetFrameStrata("HIGH");
|
|
|
|
|
map:Hide();
|
|
|
|
|
map:EnableMouse();
|
|
|
|
|
map:SetScript("OnMouseDown", function(self, button)
|
|
|
|
|
if button == "RightButton" then
|
|
|
|
|
AtlasLoot:MapOnShow();
|
|
|
|
|
end
|
|
|
|
|
end);
|
|
|
|
|
|
|
|
|
|
-- Map Button
|
|
|
|
|
local mapbtn = CreateFrame("Button","AtlasLootDefaultFrame_MapButton", AtlasLootDefaultFrame,"OptionsButtonTemplate");
|
|
|
|
|
mapbtn:SetSize(90,24);
|
|
|
|
|
mapbtn:SetPoint("BOTTOMLEFT",Atlasloot_SubTableFrame,0,-27.5);
|
|
|
|
|
mapbtn:SetText("Map");
|
|
|
|
|
mapbtn:SetScript("OnClick", function() AtlasLoot:MapOnShow(); end)
|
|
|
|
|
mapbtn:Hide();
|
|
|
|
|
|
|
|
|
|
-- Map Select Button
|
|
|
|
|
local mapSelbtn = CreateFrame("Button","AtlasLootDefaultFrame_MapSelectButton", AtlasLootDefaultFrame,"OptionsButtonTemplate");
|
|
|
|
|
mapSelbtn:SetSize(180,24);
|
|
|
|
|
mapSelbtn:SetPoint("BOTTOMRIGHT",Atlasloot_SubTableFrame,5,-27.5);
|
|
|
|
|
mapSelbtn:SetScript("OnClick", function(self)
|
|
|
|
|
if AtlasLoot_MapMenu:IsOpen() then
|
|
|
|
|
AtlasLoot_MapMenu:Close();
|
|
|
|
|
else
|
|
|
|
|
AtlasLoot_MapMenu:Open(self);
|
|
|
|
|
end
|
|
|
|
|
end);
|
|
|
|
|
mapSelbtn:SetText("No Map");
|
|
|
|
|
mapSelbtn:Hide();
|