More code format tweaks.
pschifferer [03-27-09 - 04:58]
More code format tweaks.
Made the shopping list button for intermediate items normal size instead of ginormous.
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index d9854aa..76aa35f 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -567,9 +567,9 @@ function Cauldron:UpdateButtons()
end
function Cauldron:UpdateQueue()
---@alpha@
+ --@alpha@
self:debug("UpdateQueue enter");
---@end-alpha@
+ --@end-alpha@
if (not CauldronFrame) or (not CauldronFrame:IsShown()) then
return;
@@ -584,9 +584,9 @@ function Cauldron:UpdateQueue()
end
if #itemQueue == 0 then
---@alpha@
+ --@alpha@
self:debug("UpdateQueue: display empty queue");
---@end-alpha@
+ --@end-alpha@
-- queue is empty, display the empty message
CauldronQueueFrameQueueEmpty:Show();
@@ -601,9 +601,9 @@ function Cauldron:UpdateQueue()
return;
end
---@alpha@
+ --@alpha@
self:debug("UpdateQueue: display queue");
---@end-alpha@
+ --@end-alpha@
-- queue has items, show them
CauldronQueueFrameQueueEmpty:Hide();
@@ -615,15 +615,15 @@ function Cauldron:UpdateQueue()
CauldronQueueFrameScrollFrameQueueSectionsMainItemsHeaderText:SetText(L["In order to make:"]);
-- adjust the scroll child size
---@alpha@
+ --@alpha@
self:debug("set main section height for "..#itemQueue.." items: "..(#itemQueue * itemFrameHeight));
---@end-alpha@
+ --@end-alpha@
CauldronQueueFrameScrollFrameQueueSectionsMainItems:SetHeight(#itemQueue * itemFrameHeight);
for i, queueInfo in ipairs(itemQueue) do
---@alpha@
+ --@alpha@
self:debug("queueInfo: name="..queueInfo.name);
---@end-alpha@
+ --@end-alpha@
local queueItemFrame = _G["CauldronQueueItem"..i];
self:debug("queueItemFrame: "..tostring(queueItemFrame));
@@ -672,9 +672,9 @@ function Cauldron:UpdateQueue()
-- set name and difficulty color
frame = _G["CauldronQueueItem"..i.."ItemName"];
---@alpha@
+ --@alpha@
self:debug("frame: "..tostring(frame).." ("..frame:GetName()..")");
---@end-alpha@
+ --@end-alpha@
frame:SetText(queueInfo.name);
if skillInfo then
local color = TradeSkillTypeColor[skillInfo.difficulty];
@@ -692,9 +692,9 @@ function Cauldron:UpdateQueue()
-- set quantity info
frame = _G["CauldronQueueItem"..i.."Info"];
---@alpha@
+ --@alpha@
self:debug("frame: "..tostring(frame).." ("..frame:GetName()..")");
---@end-alpha@
+ --@end-alpha@
local infoText = queueInfo.tradeskill;
-- TODO: alts/bank/etc.
frame:SetText(infoText);
@@ -811,13 +811,14 @@ function Cauldron:UpdateQueue()
queueItemFrame.shoppable = true;
queueItemFrame.inHoverButtons = false;
- -- don't show the remove button
- _G["CauldronQueueIntItem"..i.."RemoveItem"]:Hide();
- _G["CauldronQueueIntItem"..i.."RemoveItem"]:SetScale(0.75);
- _G["CauldronQueueIntItem"..i.."IncreasePriority"]:Hide();
- _G["CauldronQueueIntItem"..i.."DecreasePriority"]:Hide();
- _G["CauldronQueueIntItem"..i.."DecrementCount"]:Hide();
- _G["CauldronQueueIntItem"..i.."AddToShoppingList"]:Hide();
+ -- don't show the "hover" buttons
+ _G["CauldronQueueReagentItem"..i.."RemoveItem"]:Hide();
+ _G["CauldronQueueReagentItem"..i.."RemoveItem"]:SetScale(0.75);
+ _G["CauldronQueueReagentItem"..i.."IncreasePriority"]:Hide();
+ _G["CauldronQueueReagentItem"..i.."DecreasePriority"]:Hide();
+ _G["CauldronQueueReagentItem"..i.."DecrementCount"]:Hide();
+ _G["CauldronQueueReagentItem"..i.."AddToShoppingList"]:Hide();
+ _G["CauldronQueueReagentItem"..i.."AddToShoppingList"]:SetScale(0.5);
local skillInfo = Cauldron:GetSkillInfo(queueInfo.tradeskill, queueInfo.name);
if not skillInfo then
@@ -964,7 +965,7 @@ function Cauldron:UpdateQueue()
queueItemFrame.inHoverButtons = false;
queueItemFrame.needAmount = need;
- -- don't show the remove button
+ -- don't show the "hover" buttons
_G["CauldronQueueReagentItem"..i.."RemoveItem"]:Hide();
_G["CauldronQueueReagentItem"..i.."RemoveItem"]:SetScale(0.75);
_G["CauldronQueueReagentItem"..i.."IncreasePriority"]:Hide();