Fixed AutoHide in Battlegrounds
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
|
||||
_detalhes.build_counter = 7329
|
||||
_detalhes.alpha_build_counter = 7329 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.build_counter = 7330
|
||||
_detalhes.alpha_build_counter = 7330 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.game_version = "v8.3.0"
|
||||
_detalhes.userversion = "v8.3.0." .. _detalhes.build_counter
|
||||
_detalhes.realversion = 140 --core version, this is used to check API version for scripts and plugins (see alias below)
|
||||
|
||||
+1
-3
@@ -1,3 +1 @@
|
||||
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local Details = Details
|
||||
@@ -7466,7 +7466,7 @@ function _detalhes:SetCombatAlpha (modify_type, alpha_amount, interacting)
|
||||
|
||||
elseif (self.hide_in_combat_type == 8) then --"In Battlegrounds"
|
||||
local isInInstance = IsInInstance()
|
||||
if (isInInstance or _detalhes.zone_type == "pvp") then
|
||||
if (isInInstance and _detalhes.zone_type == "pvp") then
|
||||
self:SetWindowAlphaForCombat (true, true) --> hida a janela
|
||||
else
|
||||
self:SetWindowAlphaForCombat (false) --> deshida a janela
|
||||
|
||||
Reference in New Issue
Block a user