- fixed issue with panic mode where sometimes his effects isn't triggered.

- added new small tutorial bubles for common tasks.
- tutorials now are account wide and not trigger on new characters.
- small improvements on details framework.
- added new hook type: HOOK_BUFF, triggered with buff or debuff parser.
- new skin: simple gray.
- added a minimap button and a button on addons interface panel.
new Api: instance:LockInstance (boolean)
This commit is contained in:
terciob19
2014-01-02 11:21:22 -02:00
parent c4776d562d
commit c29e9875de
28 changed files with 1701 additions and 216 deletions
+42 -4
View File
@@ -89,7 +89,17 @@ local ImageMetaFunctions = {}
end
--> texture
local smember_texture = function (_object, _value)
return _object.image:SetTexture (_value)
if (type (_value) == "table") then
local r, g, b, a = gump:ParseColors (_value)
_object.image:SetTexture (r, g, b, a or 1)
else
if (gump:IsHtmlColor (_value)) then
local r, g, b, a = gump:ParseColors (_value)
_object.image:SetTexture (r, g, b, a or 1)
else
_object.image:SetTexture (_value)
end
end
end
--> width
local smember_width = function (_object, _value)
@@ -105,8 +115,25 @@ local ImageMetaFunctions = {}
end
--> color
local smember_color = function (_object, _value)
local _value1, _value2, _value3 = gump:ParseColors (_value)
return _object.image:SetTexture (_value1, _value2, _value3)
if (type (_value) == "table") then
local r, g, b, a = gump:ParseColors (_value)
_object.image:SetTexture (r,g,b, a or 1)
else
if (gump:IsHtmlColor (_value)) then
local r, g, b, a = gump:ParseColors (_value)
_object.image:SetTexture (r, g, b, a or 1)
else
_object.image:SetTexture (_value)
end
end
end
--> desaturated
local smember_desaturated = function (_object, _value)
if (_value) then
_object:SetDesaturated (true)
else
_object:SetDesaturated (false)
end
end
local set_members_function_index = {
@@ -117,6 +144,7 @@ local ImageMetaFunctions = {}
["height"] = smember_height,
["texture"] = smember_texture,
["color"] = smember_color,
["blackwhite"] = smember_desaturated,
}
ImageMetaFunctions.__newindex = function (_table, _key, _value)
@@ -225,7 +253,17 @@ function gump:NewImage (parent, container, name, member, w, h, texture, layer)
ImageObject.image:SetHeight (h)
end
if (texture) then
ImageObject.image:SetTexture (texture)
if (type (texture) == "table") then
local r, g, b = gump:ParseColors (texture)
ImageObject.image:SetTexture (r,g,b)
else
if (gump:IsHtmlColor (texture)) then
local r, g, b = gump:ParseColors (texture)
ImageObject.image:SetTexture (r, g, b)
else
ImageObject.image:SetTexture (texture)
end
end
end
setmetatable (ImageObject, ImageMetaFunctions)