Full Revamp on Auto Hide Settings

This commit is contained in:
Tercio Jose
2020-06-21 18:56:17 -03:00
parent fe702cf97f
commit 2d40243d25
14 changed files with 481 additions and 202 deletions
+4 -4
View File
@@ -609,7 +609,7 @@ end
end
end
if (type (self.hide_in_combat_type) == "number" and self.hide_in_combat_type > 1 and _detalhes.LastShowCommand and _detalhes.LastShowCommand+10 > GetTime()) then
if (_detalhes.LastShowCommand and _detalhes.LastShowCommand+10 > GetTime()) then
self:ToolbarMenuButtons()
self:ToolbarSide()
self:AttributeMenu()
@@ -621,16 +621,16 @@ end
_detalhes.WindowAutoHideTick [self.meu_id] = C_Timer.NewTicker (10, function()
if (self.last_interaction) then
if (self.last_interaction + 10 < _detalhes._tempo) then
self:SetCombatAlpha (nil, nil, true)
self:AdjustAlphaByContext(true)
_detalhes.WindowAutoHideTick [self.meu_id]:Cancel()
end
else
self:SetCombatAlpha (nil, nil, true)
self:AdjustAlphaByContext(true)
_detalhes.WindowAutoHideTick [self.meu_id]:Cancel()
end
end)
else
self:SetCombatAlpha (nil, nil, true)
self:AdjustAlphaByContext(true)
end
self:DesaturateMenu()