From 17a0cb96135e7abb123eec194ef57b60e7f35f4a Mon Sep 17 00:00:00 2001 From: Tercio Date: Thu, 27 Oct 2016 15:52:27 -0200 Subject: [PATCH] - show when using /de show when auto hide is on. --- classes/classe_instancia.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index b4eb070c..86ff1e62 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -583,7 +583,30 @@ end end end - self:SetCombatAlpha (nil, nil, true) + if (type (self.hide_in_combat_type) == "number" and self.hide_in_combat_type > 1 and _detalhes.LastShowCommand and _detalhes.LastShowCommand+10 > GetTime()) then + self:ToolbarMenuButtons() + self:ToolbarSide() + self:AttributeMenu() + + _detalhes.WindowAutoHideTick = _detalhes.WindowAutoHideTick or {} + if (_detalhes.WindowAutoHideTick [self.meu_id]) then + _detalhes.WindowAutoHideTick [self.meu_id]:Cancel() + 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) + _detalhes.WindowAutoHideTick [self.meu_id]:Cancel() + end + else + self:SetCombatAlpha (nil, nil, true) + _detalhes.WindowAutoHideTick [self.meu_id]:Cancel() + end + end) + else + self:SetCombatAlpha (nil, nil, true) + end + self:DesaturateMenu() self:CheckFor_EnabledTrashSuppression()