|
|
|
@ -74,7 +74,7 @@ function Inbox:CreateTab(parent) |
|
|
|
st:SetData({}) |
|
|
|
st:SetData({}) |
|
|
|
frame.st = st |
|
|
|
frame.st = st |
|
|
|
|
|
|
|
|
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18) |
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18, "TSMMailingSalesButton") |
|
|
|
btn:SetPoint("BOTTOMLEFT", 5, 30) |
|
|
|
btn:SetPoint("BOTTOMLEFT", 5, 30) |
|
|
|
btn:SetPoint("BOTTOMRIGHT", -5, 30) |
|
|
|
btn:SetPoint("BOTTOMRIGHT", -5, 30) |
|
|
|
btn:SetHeight(20) |
|
|
|
btn:SetHeight(20) |
|
|
|
@ -91,7 +91,7 @@ function Inbox:CreateTab(parent) |
|
|
|
|
|
|
|
|
|
|
|
local btnWidth = (frame:GetWidth() - label:GetWidth() - 25) / 5 |
|
|
|
local btnWidth = (frame:GetWidth() - label:GetWidth() - 25) / 5 |
|
|
|
|
|
|
|
|
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18) |
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18, "TSMMailingBuysButton") |
|
|
|
btn:SetPoint("BOTTOMLEFT", label, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetPoint("BOTTOMLEFT", label, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetHeight(20) |
|
|
|
btn:SetHeight(20) |
|
|
|
@ -99,7 +99,7 @@ function Inbox:CreateTab(parent) |
|
|
|
btn:SetScript("OnClick", function() private:StartAutoLooting("sales") end) |
|
|
|
btn:SetScript("OnClick", function() private:StartAutoLooting("sales") end) |
|
|
|
frame.salesBtn = btn |
|
|
|
frame.salesBtn = btn |
|
|
|
|
|
|
|
|
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18) |
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18, "TSMMailingCancelsButton") |
|
|
|
btn:SetPoint("BOTTOMLEFT", frame.salesBtn, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetPoint("BOTTOMLEFT", frame.salesBtn, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetHeight(20) |
|
|
|
btn:SetHeight(20) |
|
|
|
@ -107,7 +107,7 @@ function Inbox:CreateTab(parent) |
|
|
|
btn:SetScript("OnClick", function() private:StartAutoLooting("buys") end) |
|
|
|
btn:SetScript("OnClick", function() private:StartAutoLooting("buys") end) |
|
|
|
frame.buysBtn = btn |
|
|
|
frame.buysBtn = btn |
|
|
|
|
|
|
|
|
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18) |
|
|
|
local btn = TSMAPI.GUI:CreateButton(frame, 18, "TSMMailingExpiresButton") |
|
|
|
btn:SetPoint("BOTTOMLEFT", frame.buysBtn, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetPoint("BOTTOMLEFT", frame.buysBtn, "BOTTOMRIGHT", 5, 0) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetWidth(btnWidth) |
|
|
|
btn:SetHeight(20) |
|
|
|
btn:SetHeight(20) |
|
|
|
|