- Fixed the gap between the button and its menu which sometimes traveling the mouse between them was activating tooltips from window's bars.
- Fixed an annoying menu blink when the window was near the right side of the screen. - Fixed the stretch grab which was over other windows even with the 'stretch always on top' option disabled.
This commit is contained in:
+9
-10
@@ -1413,23 +1413,14 @@ function DetailsCreateCoolTip()
|
||||
CoolTip.active = true
|
||||
|
||||
for i = 1, CoolTip.Indexes do
|
||||
|
||||
local menuButton = frame1.Lines [i]
|
||||
if (not menuButton) then
|
||||
menuButton = CoolTip:NewMainButton (i)
|
||||
end
|
||||
|
||||
CoolTip:SetupMainButton (menuButton, i)
|
||||
|
||||
if (CoolTip.SelectedIndexMain and CoolTip.SelectedIndexMain == i) then
|
||||
if (CoolTip.HaveSubMenu and CoolTip.IndexesSub [i] and CoolTip.IndexesSub [i] > 0) then
|
||||
CoolTip:ShowSub (i)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
menuButton.background:Hide()
|
||||
|
||||
--menuButton:SetHeight (CoolTip.OptionsTable.ButtonHeightMod or CoolTip.default_height)
|
||||
end
|
||||
|
||||
--> selected texture
|
||||
@@ -1571,6 +1562,14 @@ function DetailsCreateCoolTip()
|
||||
|
||||
gump:Fade (frame1, 0)
|
||||
|
||||
for i = 1, CoolTip.Indexes do
|
||||
if (CoolTip.SelectedIndexMain and CoolTip.SelectedIndexMain == i) then
|
||||
if (CoolTip.HaveSubMenu and CoolTip.IndexesSub [i] and CoolTip.IndexesSub [i] > 0) then
|
||||
CoolTip:ShowSub (i)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
@@ -2736,11 +2736,12 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
|
||||
switchbutton:SetFrameLevel (backgrounddisplay:GetFrameLevel()+1)
|
||||
|
||||
--> 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, baseframe)
|
||||
local anti_menu_overlap = CreateFrame ("frame", "Details_WindowFrameAntiMenuOverlap" .. ID, UIParent)
|
||||
anti_menu_overlap:SetSize (100, 13)
|
||||
anti_menu_overlap:SetFrameStrata ("DIALOG")
|
||||
anti_menu_overlap:EnableMouse (true)
|
||||
anti_menu_overlap:Hide()
|
||||
--anti_menu_overlap:SetBackdrop (gump_fundo_backdrop)
|
||||
baseframe.anti_menu_overlap = anti_menu_overlap
|
||||
|
||||
-- scroll bar -----------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -2821,7 +2822,7 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
|
||||
baseframe.button_stretch = CreateFrame ("button", "DetailsButtonStretch" .. instancia.meu_id, baseframe)
|
||||
baseframe.button_stretch:SetPoint ("bottom", baseframe, "top", 0, 20)
|
||||
baseframe.button_stretch:SetPoint ("right", baseframe, "right", -27, 0)
|
||||
baseframe.button_stretch:SetFrameLevel (15)
|
||||
baseframe.button_stretch:SetFrameLevel (1)
|
||||
|
||||
local stretch_texture = baseframe.button_stretch:CreateTexture (nil, "overlay")
|
||||
stretch_texture:SetTexture (DEFAULT_SKIN)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
local L = LibStub("AceLocale-3.0"):NewLocale("Details", "frFR")
|
||||
if not L then return end
|
||||
|
||||
@localization(locale="frFR", format="lua_additive_table", escape-non-ascii=true)@
|
||||
Reference in New Issue
Block a user