- Added support for skin for Report Panel.

- Report Panel can now be closed with right click.
This commit is contained in:
Tercio
2015-07-07 21:30:53 -03:00
parent 8fb540036b
commit 85f0038398
10 changed files with 509 additions and 119 deletions
+17 -2
View File
@@ -233,13 +233,28 @@ do
return _detalhes.atributos.lista [attribute]
end
function _detalhes:GetSubAttributeName (attribute, subAttribute)
function _detalhes:GetSubAttributeName (attribute, subAttribute, customName)
if (attribute == 5) then
local CustomObject = _detalhes.custom [subAttribute]
if (CustomObject and customName and CustomObject.name == customName) then
return CustomObject.name
elseif (CustomObject and customName and CustomObject.name ~= customName) then
for _, custom in ipairs (_detalhes.custom) do
if (custom.name == customName) then
return custom.name
end
end
return "--x--x--"
elseif (CustomObject and not customName) then
return CustomObject.name
end
if (not CustomObject) then
return "--x--x--"
end
return CustomObject.name
end
return _detalhes.sub_atributos [attribute].lista [subAttribute]
end