- 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:
@@ -5,10 +5,10 @@ do
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
--> Globals
|
||||
DETAILS_ATTRIBUTE_DAMAGE = 1
|
||||
DETAILS_ATTRIBUTE_HEAL = 2
|
||||
DETAILS_ATTRIBUTE_ENERGY = 3
|
||||
DETAILS_ATTRIBUTE_MISC = 4
|
||||
--[[global]] DETAILS_ATTRIBUTE_DAMAGE = 1
|
||||
--[[global]] DETAILS_ATTRIBUTE_HEAL = 2
|
||||
--[[global]] DETAILS_ATTRIBUTE_ENERGY = 3
|
||||
--[[global]] DETAILS_ATTRIBUTE_MISC = 4
|
||||
|
||||
_detalhes.atributos_capture = {
|
||||
"damage", --damage done
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
|
||||
--[[global]] DETAILS_HOOK_COOLDOWN = "HOOK_COOLDOWN"
|
||||
--[[global]] DETAILS_HOOK_DEATH = "HOOK_DEATH"
|
||||
--[[global]] DETAILS_HOOK_BUFF = "HOOK_BUFF"
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local _
|
||||
|
||||
_detalhes.hooks ["HOOK_COOLDOWN"] = {}
|
||||
_detalhes.hooks ["HOOK_DEATH"] = {}
|
||||
_detalhes.hooks ["HOOK_BUFF"] = {}
|
||||
|
||||
function _detalhes:InstallHook (hook_type, func)
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ function _detalhes:SaveDataOnLogout()
|
||||
_detalhes_database.window_clamp = _detalhes.window_clamp
|
||||
--> text sizes
|
||||
_detalhes_database.font_sizes = _detalhes.font_sizes
|
||||
--tutorial
|
||||
_detalhes_database.tutorial = _detalhes.tutorial
|
||||
-- max segments
|
||||
_detalhes_database.segments_amount = _detalhes.segments_amount
|
||||
_detalhes_database.segments_amount_to_save = _detalhes.segments_amount_to_save
|
||||
@@ -127,6 +125,9 @@ function _detalhes:SaveDataOnLogout()
|
||||
|
||||
_detalhes_global.SpellOverwriteUser = _detalhes.SpellOverwriteUser
|
||||
|
||||
--tutorial
|
||||
_detalhes_global.tutorial = _detalhes.tutorial
|
||||
|
||||
return true
|
||||
|
||||
end
|
||||
@@ -225,8 +226,6 @@ end --]]
|
||||
_detalhes.clear_graphic = _detalhes_database.clear_graphic
|
||||
--> text sizes
|
||||
_detalhes.font_sizes = _detalhes_database.font_sizes
|
||||
--tutorial
|
||||
_detalhes.tutorial = _detalhes_database.tutorial
|
||||
-- row animation
|
||||
_detalhes.use_row_animations = _detalhes_database.use_row_animations
|
||||
_detalhes.animate_scroll = _detalhes_database.animate_scroll
|
||||
@@ -336,6 +335,9 @@ end --]]
|
||||
_detalhes.trash_auto_remove = _detalhes_global.trash_auto_remove
|
||||
|
||||
_detalhes.SpellOverwriteUser = _detalhes_global.SpellOverwriteUser or _detalhes.SpellOverwriteUser
|
||||
|
||||
--tutorial
|
||||
_detalhes.tutorial = _detalhes_global.tutorial
|
||||
else
|
||||
_detalhes.is_first_run = true
|
||||
end
|
||||
|
||||
@@ -52,4 +52,16 @@ local _
|
||||
icon_anchor_plugins = {-7, -13},
|
||||
icon_plugins_size = {19, 18}
|
||||
})
|
||||
|
||||
_detalhes:InstallSkin ("Simply Gray", {
|
||||
file = [[Interface\AddOns\Details\images\skins\simplygray_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