This commit is contained in:
tercio
2014-04-01 21:20:43 -03:00
parent fcf9d7a2ed
commit 36e7b26b30
30 changed files with 3039 additions and 1851 deletions
+15
View File
@@ -315,6 +315,13 @@ function DropDownMetaFunctions:Selected (_table)
else
self.icon:SetTexCoord (0, 1, 0, 1)
end
if (_table.iconcolor) then
self.icon:SetVertexColor (unpack (_table.iconcolor))
else
self.icon:SetVertexColor (1, 1, 1, 1)
end
else
self.label:SetPoint ("left", self.label:GetParent(), "left", 4, 0)
end
@@ -464,12 +471,20 @@ function DetailsDropDownOnMouseDown (button)
_this_row.icon:SetTexture (_table.icon)
if (_table.icon) then
_this_row.label:SetPoint ("left", _this_row.icon, "right", 5, 0)
if (_table.texcoord) then
_this_row.icon:SetTexCoord (unpack (_table.texcoord))
else
_this_row.icon:SetTexCoord (0, 1, 0, 1)
end
if (_table.iconcolor) then
_this_row.icon:SetVertexColor (unpack (_table.iconcolor))
else
_this_row.icon:SetVertexColor (1, 1, 1, 1)
end
else
_this_row.label:SetPoint ("left", _this_row.statusbar, "left", 2, 0)
end
+1
View File
@@ -594,6 +594,7 @@ function gump:IconPick (callback)
gump.IconPickFrame = CreateFrame ("frame", "DetailsIconPickFrame", UIParent)
tinsert (UISpecialFrames, "DetailsIconPickFrame")
gump.IconPickFrame:SetFrameStrata ("DIALOG")
gump.IconPickFrame:SetPoint ("center", UIParent, "center")
gump.IconPickFrame:SetWidth (350)
+2
View File
@@ -7,6 +7,7 @@ local _
window:SetResizable (true)
window:SetMovable (true)
tinsert (UISpecialFrames, "DetailsImageEdit")
window:SetFrameStrata ("TOOLTIP")
window.hooks = {}
@@ -155,6 +156,7 @@ local _
buttonsBackground:Hide()
--buttonsBackground:SetMovable (true)
tinsert (UISpecialFrames, "DetailsImageEditButtonsBg")
buttonsBackground:SetFrameStrata ("TOOLTIP")
local alphaFrameShown = false