Mercurial > wow > inventory
diff Frames.lua @ 119:dc6f405c1a5d
Now resizing the mover frame based on text size.
addon.Locations table now uses location names as value, rather than random numbers.
Added proper Merchant restocking support. Please note this currently doesn?t take the bonus queue nor the min crafting queue options into account.
author | Zerotorescue |
---|---|
date | Sat, 15 Jan 2011 17:03:05 +0100 |
parents | 9765bc3b3d6b |
children | 8460855e3d90 |
line wrap: on
line diff
--- a/Frames.lua Sat Jan 15 16:24:39 2011 +0100 +++ b/Frames.lua Sat Jan 15 17:03:05 2011 +0100 @@ -89,7 +89,9 @@ titleBackground:SetPoint("TOP", 0, 12); titleBackground:SetWidth(150); titleBackground:SetHeight(40); - + + frame.titleBackground = titleBackground; + local titleBackgroundLeft = frame:CreateTexture(nil, "OVERLAY"); titleBackgroundLeft:SetTexture("Interface\\DialogFrame\\UI-DialogBox-Header"); titleBackgroundLeft:SetTexCoord(0.21, 0.31, 0, 0.63); @@ -225,6 +227,8 @@ local frame = InventoriumItemMover; frame.lblTitle:SetText(title); + -- Adjust size for the title background + frame.titleBackground:SetWidth((frame.lblTitle:GetWidth() or 0) + 10); -- 10 pixels margin frame.lblDescription:SetText(description);