Fixed an issue affecting the Auto Hide for some users
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
_ = nil
|
_ = nil
|
||||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||||
|
|
||||||
_detalhes.build_counter = 7347
|
_detalhes.build_counter = 7348
|
||||||
_detalhes.alpha_build_counter = 7347 --if this is higher than the regular counter, use it instead
|
_detalhes.alpha_build_counter = 7348 --if this is higher than the regular counter, use it instead
|
||||||
_detalhes.game_version = "v8.3.0"
|
_detalhes.game_version = "v8.3.0"
|
||||||
_detalhes.userversion = "v8.3.0." .. _detalhes.build_counter
|
_detalhes.userversion = "v8.3.0." .. _detalhes.build_counter
|
||||||
_detalhes.realversion = 141 --core version, this is used to check API version for scripts and plugins (see alias below)
|
_detalhes.realversion = 141 --core version, this is used to check API version for scripts and plugins (see alias below)
|
||||||
|
|||||||
@@ -5011,6 +5011,8 @@ end
|
|||||||
-- ~autohide �utohide
|
-- ~autohide �utohide
|
||||||
function _detalhes:SetWindowAlphaForCombat (entering_in_combat, true_hide, alphaAmount)
|
function _detalhes:SetWindowAlphaForCombat (entering_in_combat, true_hide, alphaAmount)
|
||||||
|
|
||||||
|
--print(entering_in_combat, "|", true_hide, "|", alphaAmount)
|
||||||
|
|
||||||
local amount, rowsamount, menuamount
|
local amount, rowsamount, menuamount
|
||||||
|
|
||||||
--get the values
|
--get the values
|
||||||
@@ -5055,10 +5057,12 @@ function _detalhes:SetWindowAlphaForCombat (entering_in_combat, true_hide, alpha
|
|||||||
|
|
||||||
--apply
|
--apply
|
||||||
if (true_hide and amount == 0) then
|
if (true_hide and amount == 0) then
|
||||||
--
|
self.baseframe:Hide()
|
||||||
gump:Fade (self.baseframe, _unpack (_detalhes.windows_fade_in))
|
self.rowframe:Hide()
|
||||||
gump:Fade (self.rowframe, _unpack (_detalhes.windows_fade_in))
|
self.windowSwitchButton:Hide()
|
||||||
gump:Fade (self.windowSwitchButton, _unpack (_detalhes.windows_fade_in))
|
--gump:Fade (self.baseframe, _unpack (_detalhes.windows_fade_in))
|
||||||
|
--gump:Fade (self.rowframe, _unpack (_detalhes.windows_fade_in))
|
||||||
|
--gump:Fade (self.windowSwitchButton, _unpack (_detalhes.windows_fade_in))
|
||||||
self:SetIconAlpha (nil, true)
|
self:SetIconAlpha (nil, true)
|
||||||
|
|
||||||
if (_detalhes.debug) then
|
if (_detalhes.debug) then
|
||||||
|
|||||||
Reference in New Issue
Block a user