Fixed some issues for 8.2 wow patch

This commit is contained in:
Tercioo
2019-07-14 11:44:56 -03:00
parent b48ea2a64d
commit 627fc71661
3 changed files with 32 additions and 28 deletions
+5 -6
View File
File diff suppressed because one or more lines are too long
+13 -14
View File
@@ -1160,7 +1160,6 @@ local function BFrame_scripts (baseframe, instancia)
end
local function backgrounddisplay_scripts (backgrounddisplay, baseframe, instancia)
backgrounddisplay:SetScript ("OnEnter", function (self)
OnEnterMainWindow (instancia, self)
end)
@@ -3478,8 +3477,8 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
backgrounddisplay:SetFrameLevel (3)
backgroundframe.instance = instancia
backgrounddisplay.instance = instancia
instancia.backgroundDisplay = backgrounddisplay
instancia.windowBackgroundDisplay = backgrounddisplay
--> row frame is the parent of rows, it have setallpoints on baseframe
local rowframe = CreateFrame ("frame", "DetailsRowFrame"..ID, _UIParent)
rowframe:SetAllPoints (baseframe)
@@ -3495,7 +3494,7 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
switchbutton:SetPoint ("bottomright", backgrounddisplay, "bottomright")
switchbutton:SetFrameLevel (backgrounddisplay:GetFrameLevel()+1)
instancia.switchButton = switchbutton
instancia.windowSwitchButton = switchbutton
--> avoid mouse hover over a high window when the menu is open for a lower instance.
local anti_menu_overlap = CreateFrame ("frame", "Details_WindowFrameAntiMenuOverlap" .. ID, UIParent)
@@ -7289,8 +7288,8 @@ function _detalhes:UpdateClickThrough()
self.bgframe:EnableMouse (false)
self.rowframe:EnableMouse (false)
self.floatingframe:EnableMouse (false)
self.switchButton:EnableMouse (false)
self.backgroundDisplay:EnableMouse (false)
self.windowSwitchButton:EnableMouse (false)
self.windowBackgroundDisplay:EnableMouse (false)
self.baseframe.UPFrame:EnableMouse (false)
else
@@ -7298,8 +7297,8 @@ function _detalhes:UpdateClickThrough()
self.bgframe:EnableMouse (true)
self.rowframe:EnableMouse (true)
self.floatingframe:EnableMouse (true)
self.switchButton:EnableMouse (true)
self.backgroundDisplay:EnableMouse (true)
self.windowSwitchButton:EnableMouse (true)
self.windowBackgroundDisplay:EnableMouse (true)
self.baseframe.UPFrame:EnableMouse (true)
end
@@ -7327,8 +7326,8 @@ function _detalhes:UpdateClickThrough()
self.bgframe:EnableMouse (true)
self.rowframe:EnableMouse (true)
self.floatingframe:EnableMouse (true)
self.switchButton:EnableMouse (true)
self.backgroundDisplay:EnableMouse (true)
self.windowSwitchButton:EnableMouse (true)
self.windowBackgroundDisplay:EnableMouse (true)
self.baseframe.UPFrame:EnableMouse (true)
--titlebar icons, forcing true because the player isn't in combat and the inCombat setting is enabled
@@ -7363,8 +7362,8 @@ function _detalhes:UpdateClickThrough()
self.bgframe:EnableMouse (false)
self.rowframe:EnableMouse (false)
self.floatingframe:EnableMouse (false)
self.switchButton:EnableMouse (false)
self.backgroundDisplay:EnableMouse (false)
self.windowSwitchButton:EnableMouse (false)
self.windowBackgroundDisplay:EnableMouse (false)
self.baseframe.UPFrame:EnableMouse (false)
else
@@ -7372,8 +7371,8 @@ function _detalhes:UpdateClickThrough()
self.bgframe:EnableMouse (true)
self.rowframe:EnableMouse (true)
self.floatingframe:EnableMouse (true)
self.switchButton:EnableMouse (true)
self.backgroundDisplay:EnableMouse (true)
self.windowSwitchButton:EnableMouse (true)
self.windowBackgroundDisplay:EnableMouse (true)
self.baseframe.UPFrame:EnableMouse (true)
end
+14 -8
View File
@@ -196,6 +196,7 @@ do
function _detalhes:ShowAllSwitch()
--[=[ --tutorial removed, I don't think is necessary anymore, July 2019
--_detalhes:SetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED", false)
if (not _detalhes:GetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED")) then
_detalhes:SetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED", true)
@@ -225,8 +226,8 @@ do
local t = close:CreateFontString (nil, "overlay", "GameFontNormal")
t:SetPoint ("center", 0, 0)
t:SetText ("CLOSE")
end
--]=]
if (all_switch:IsShown()) then
return all_switch:Hide()
@@ -237,8 +238,8 @@ do
all_switch:ClearAllPoints()
all_switch:SetPoint ("bottom", self.baseframe.UPFrame, "top", 4)
all_switch.ShowAnimation:Play()
--all_switch:Show()
--all_switch.ShowAnimation:Play()
all_switch:Show()
if (_detalhes.switch.frame:IsShown()) then
_detalhes.switch:CloseMe()
@@ -555,6 +556,8 @@ do
---------------------------------------------------------------------------------------------------------------------------
--animation has been disabled (July 2019)
--they aren't called anymore on showing and hiding the bookmark frame
--show animation
local animHub = _detalhes.gump:CreateAnimationHub (frame, function() frame:Show() end)
_detalhes.gump:CreateAnimation (animHub, "scale", 1, 0.04, 0, 1, 1, 1, "LEFT", 0, 0)
@@ -570,9 +573,10 @@ do
---------------------------------------------------------------------------------------------------------------------------
function _detalhes.switch:CloseMe()
--_detalhes.switch.frame:Hide()
_detalhes.switch.frame:Hide()
_detalhes.switch.frame:ClearAllPoints()
_detalhes.switch.frame.HideAnimation:Play()
--_detalhes.switch.frame.HideAnimation:Play()
GameCooltip:Hide()
_detalhes.switch.frame:SetBackdropColor (0, 0, 0, .7)
@@ -865,7 +869,7 @@ function _detalhes.switch:ShowMe (instancia)
_detalhes.switch:ClearSegmentBlocks()
end
end
--> check if there is some custom contidional
if (instancia.atributo == 5) then
local custom_object = instancia:GetCustomObject()
@@ -918,9 +922,10 @@ function _detalhes.switch:ShowMe (instancia)
_detalhes.switch:Update()
_detalhes.switch.frame:SetScale (instancia.window_scale)
--_detalhes.switch.frame:Show()
_detalhes.switch.frame.ShowAnimation:Play()
_detalhes.switch.frame:Show()
--_detalhes.switch.frame.ShowAnimation:Play()
--[=[ --removed bookmark tutorials July 2019
if (not _detalhes.tutorial.bookmark_tutorial) then
if (not SwitchPanelTutorial) then
@@ -963,6 +968,7 @@ function _detalhes.switch:ShowMe (instancia)
SwitchPanelTutorial.info_label:SetWidth (_detalhes.switch.frame:GetWidth()-30)
SwitchPanelTutorial.close_label:SetWidth (_detalhes.switch.frame:GetWidth()-30)
end
--]=]
_detalhes.switch:Resize (precisa_mostrar)
--instancia:StatusBarAlert (right_click_text, right_click_texture) --icon, color, time