- Fixed some colors issues with enemies bars.
- Fixed some translations between ptBR -> enUS. - More fixes with target damage and debuff uptime on overall segment. - Major rewrite on CC Breaks, now it's working properly. - Non player or pet Enemies will be flagged with .monster member. - New member for combat object: start_time, end_time = combat_object:GetDate() - Added new sub attribute for damage: Voidzones & Auras. - First implementation of Hooks for plugins capture parser events in realtime. - Added API: _detalhes:InstallHook (hooktype, func). func receive parameters: token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname - Added Global: DETAILS_HOOK_COOLDOWN - Added API: _detalhes:StatusBarAlert (text, icon, color, time) - Added API: _detalhes:InstallSkin (skin_name, skin_table) More information on skin table, see the file functions/skins.lua
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
--File Revision: 1
|
||||
--Last Modification: 05/12/07/2013
|
||||
-- Change Log:
|
||||
-- 05/12/07/2013: This file has been introduced.
|
||||
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local _
|
||||
|
||||
--> install skin function:
|
||||
function _detalhes:InstallSkin (skin_name, skin_table)
|
||||
if (not skin_name) then
|
||||
return false -- sem nome
|
||||
elseif (_detalhes.skins [skin_name]) then
|
||||
return false -- ja existe
|
||||
end
|
||||
|
||||
if (not skin_table.file) then
|
||||
return false -- sem arquivo
|
||||
end
|
||||
|
||||
skin_table.author = skin_table.author or ""
|
||||
skin_table.version = skin_table.version or ""
|
||||
skin_table.site = skin_table.site or ""
|
||||
skin_table.desc = skin_table.desc or ""
|
||||
|
||||
_detalhes.skins [skin_name] = skin_table
|
||||
return true
|
||||
end
|
||||
|
||||
--> install default skins:
|
||||
_detalhes:InstallSkin ("Default Skin", {
|
||||
file = [[Interface\AddOns\Details\images\skins\default_skin]],
|
||||
author = "Details!",
|
||||
version = "1.0",
|
||||
site = "unknown",
|
||||
desc = "default skin for Details!",
|
||||
can_change_alpha_head = false,
|
||||
icon_anchor_main = {-1, 1},
|
||||
icon_anchor_plugins = {-9, -7},
|
||||
icon_plugins_size = {19, 19}
|
||||
})
|
||||
|
||||
_detalhes:InstallSkin ("Flat Color", {
|
||||
file = [[Interface\AddOns\Details\images\skins\flat_skin]],
|
||||
author = "Details!",
|
||||
version = "1.0",
|
||||
site = "unknown",
|
||||
desc = "a flat skin",
|
||||
can_change_alpha_head = true,
|
||||
icon_anchor_main = {-1, -5},
|
||||
icon_anchor_plugins = {-7, -13},
|
||||
icon_plugins_size = {19, 18}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user