- Plugin Vanguard: got full rewrite and now it is more easy to use.

- Plugin TimeAttack: fixed problem where sometimes required a reload to start a new time.
- Plugin Damage the Game!: fixed a problem where sometimes the time didn't started after level 2.
- Custom display 'Health Potion & Stone' now also track Healing Tonic.
- Custom display 'Damage Taken by Spell' now track more spells and also melee hits.
- Added 'Editing Group' check box on option panel, when enabled, settings changed also modifies on all windows in the group.
- Changing window's skin doesn't change any more settings not related with appearance, for example, Auto-Hide, Switches.\n\n
- Menus now uses 'Friz Quadrata TT' font as default, also added an option to change it on options panel -> miscellaneous.
- 'Switch to Current' feature now switches all windows which have this option enabled.
- The message telling to use '/details reinstall' now only shows if a problem happen during the addon load process.
- Segments Saved option now can be set to 25, up from 5.
- Attempt to fix the bug with the monk spell 'Storm, Earth, and Fire'.
- Fixed 'Icon Pick' panel.
- Fixed bug when reporting friendly fire through player detail window.
- Fixed bug with report window where sometimes it was reporting on a wrong channel.
- Fixed Auto-Hide where it wasn't hiding the wallpaper of the window.
This commit is contained in:
Tercio
2015-01-17 02:24:07 -02:00
parent b6d51315a5
commit 9b160cd591
7 changed files with 1074 additions and 124 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+45
View File
@@ -18,6 +18,51 @@ function _detalhes:ResetInstanceConfig (maintainsnap)
end
end
_detalhes.instance_skin_ignored_values = {
["menu_icons"] = true,
["auto_hide"] = true,
["scale"] = true,
["following"] = true,
["auto_current"] = true,
["bars_grow_direction"] = true,
["bars_sort_direction"] = true,
["auto_hide_menu"] = true,
["menu_alpha"] = true,
["total_bar"] = true,
["hide_in_combat"] = true,
["hide_out_of_combat"] = true,
["hide_in_combat_type"] = true,
["hide_in_combat_alpha"] = true,
["switch_all_roles_in_combat"] = true,
["switch_all_roles_after_wipe"] = true,
["switch_damager"] = true,
["switch_damager_in_combat"] = true,
["switch_healer"] = true,
["switch_healer_in_combat"] = true,
["switch_tank"] = true,
["switch_tank_in_combat"] = true,
["strata"] = true,
["grab_on_top"] = true,
}
function _detalhes:ResetInstanceConfigKeepingValues (maintainsnap)
for key, value in pairs (_detalhes.instance_defaults) do
if (not _detalhes.instance_skin_ignored_values [key]) then
if (type (value) == "table") then
self [key] = table_deepcopy (value)
else
self [key] = value
end
end
end
if (not maintainsnap) then
self.snap = {}
self.horizontalSnap = nil
self.verticalSnap = nil
self:LockInstance (false)
end
end
function _detalhes:LoadInstanceConfig()
for key, value in pairs (_detalhes.instance_defaults) do
if (self [key] == nil) then
+1
View File
@@ -205,6 +205,7 @@
t1 [key] = value
end
end
return t1
end
function _detalhes.table.deploy (t1, t2)
+1
View File
@@ -914,6 +914,7 @@ local default_profile = {
standard_skin = false,
skin = "WoW Interface",
profile_save_pos = true,
options_group_edit = true,
--> tooltip
tooltip = {
+994 -112
View File
File diff suppressed because it is too large Load Diff
+13 -8
View File
@@ -4010,7 +4010,7 @@ function _detalhes:SetWindowAlphaForInteract (alpha)
if (self.is_interacting) then
--> entrou
--self.baseframe:SetAlpha (alpha)
self.baseframe:SetAlpha (alpha)
self:InstanceAlpha (alpha)
self:SetIconAlpha (alpha, nil, true)
@@ -4025,6 +4025,7 @@ function _detalhes:SetWindowAlphaForInteract (alpha)
self:InstanceAlpha (self.combat_changes_alpha)
self:SetIconAlpha (self.combat_changes_alpha, nil, true)
self.rowframe:SetAlpha (self.combat_changes_alpha) --alpha do combate é absoluta
self.baseframe:SetAlpha (self.combat_changes_alpha) --alpha do combate é absoluta
else
self:InstanceAlpha (alpha)
self:SetIconAlpha (alpha, nil, true)
@@ -4034,6 +4035,8 @@ function _detalhes:SetWindowAlphaForInteract (alpha)
else
self.rowframe:SetAlpha (alpha)
end
self.baseframe:SetAlpha (alpha)
end
end
@@ -4094,9 +4097,9 @@ function _detalhes:SetWindowAlphaForCombat (entering_in_combat, true_hide)
self.baseframe:Show()
self.baseframe:SetAlpha (1)
--gump:Fade (self.baseframe, "ALPHAANIM", amount)
self:InstanceAlpha (amount)
gump:Fade (self.rowframe, "ALPHAANIM", rowsamount)
gump:Fade (self.baseframe, "ALPHAANIM", rowsamount)
self:SetIconAlpha (menuamount)
end
@@ -5249,7 +5252,7 @@ function _detalhes:ChangeSkin (skin_name)
end
--> reset all config
self:ResetInstanceConfig (true)
self:ResetInstanceConfigKeepingValues (true)
--> overwrites
local overwrite_cprops = this_skin.instance_cprops
@@ -5258,12 +5261,14 @@ function _detalhes:ChangeSkin (skin_name)
local copy = table_deepcopy (overwrite_cprops)
for cprop, value in _pairs (copy) do
if (type (value) == "table") then
for cprop2, value2 in _pairs (value) do
self [cprop] [cprop2] = value2
if (not _detalhes.instance_skin_ignored_values [cprop]) then
if (type (value) == "table") then
for cprop2, value2 in _pairs (value) do
self [cprop] [cprop2] = value2
end
else
self [cprop] = value
end
else
self [cprop] = value
end
end
+17 -1
View File
@@ -330,10 +330,12 @@ function _G._detalhes:Start()
--> check is this is the first run of this version
if (self.is_version_first_run) then
if (_detalhes_database.last_version and _detalhes.userversion == "v3.8c") then
if (_detalhes_database.last_version and _detalhes.userversion == "v3.8.1") then
--_detalhes:SetTutorialCVar ("UPDATE_WARNING_SPECICONS1", false)
if (not _detalhes:GetTutorialCVar ("UPDATE_WARNING_SPECICONS1")) then
_detalhes:SetTutorialCVar ("UPDATE_WARNING_SPECICONS1", true)
local func = function()
local window1 = _detalhes:GetInstance(1)
if (window1 and window1:IsEnabled()) then
window1:SetBarSpecIconSettings (true, [[Interface\AddOns\Details\images\spec_icons_normal]], true)
@@ -344,6 +346,20 @@ function _G._detalhes:Start()
end
_detalhes:CreateTestBars()
_detalhes:Ask ("Keep Changes? You may change later on Options Panel -> Rows: Settings", function()
end)
_detalhes.yesNo ["no"]:SetClickFunction (function()
if (window1 and window1:IsEnabled()) then
window1:SetBarSpecIconSettings (false)
end
if (window2 and window2:IsEnabled()) then
window2:SetBarSpecIconSettings (false)
end
_detalhes.yesNo:Hide()
end)
end
_detalhes:GetFramework():ShowTutorialAlertFrame ("Spec Icons!", "Now Available, click here!", func)
end