- Some improvements on Plugin's icon at the title bar.

This commit is contained in:
Tercio
2015-09-27 15:18:39 -03:00
parent 4ea6002f26
commit 985fabd244
6 changed files with 83 additions and 36 deletions
+5 -2
View File
@@ -8,7 +8,7 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> details api functions
function _detalhes:GetPlugin (PAN) --plugin absolute name
return _detalhes.SoloTables.NameTable [PAN] or _detalhes.RaidTables.NameTable [PAN] or _detalhes.ToolBar.NameTable [PAN] or _detalhes.StatusBar.NameTable [PAN]
return _detalhes.SoloTables.NameTable [PAN] or _detalhes.RaidTables.NameTable [PAN] or _detalhes.ToolBar.NameTable [PAN] or _detalhes.StatusBar.NameTable [PAN] or _detalhes.PluginsLocalizedNames [PAN] or _detalhes.PluginsGlobalNames [PAN]
end
function _detalhes:GetPluginSavedTable (PluginAbsoluteName)
@@ -61,7 +61,7 @@
self.__description = desc
end
function _detalhes:GetPluginDescription()
return self.__description
return self.__description or ""
end
function _detalhes:DisablePlugin (AbsoluteName)
@@ -139,6 +139,9 @@
PluginObject.__icon = PluginIcon or [[Interface\ICONS\Trade_Engineering]]
PluginObject.real_name = PluginAbsoluteName
_detalhes.PluginsGlobalNames [PluginAbsoluteName] = PluginObject
_detalhes.PluginsLocalizedNames [PluginName] = PluginObject
local saved_table
if (PluginType ~= "STATUSBAR") then