- 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:
Tercio
2013-12-09 21:51:32 -02:00
parent aee1488df7
commit bb6e7bdb6e
25 changed files with 664 additions and 159 deletions
+7 -29
View File
@@ -2,15 +2,15 @@
--Last Modification: 27/07/2013
-- Change Log:
-- 27/07/2013: Finished alpha version.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> global name declaration
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.userversion = "v1.6.7"
_detalhes.version = "Alpha 010"
_detalhes.realversion = 10
_detalhes.userversion = "v1.7.0"
_detalhes.version = "Alpha 011"
_detalhes.realversion = 11
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> initialization stuff
@@ -60,31 +60,9 @@ do
_detalhes.pets_ignored = {}
_detalhes.pets_no_owner = {}
--> armazena as skins disponíveis para as janelas
_detalhes.skins = {["Default Skin"] = {file = "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.skin_path = "Interface\\AddOns\\Details\\images\\skins\\"
-- temporariamente aqui, precisa migrar para um arquivo separado
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
_detalhes:InstallSkin ("Flat Color", {file = "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}})
_detalhes.skins = {}
--> armazena os hooks das funções do parser
_detalhes.hooks = {}
--> Plugins
--> raid -------------------------------------------------------------------