- 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:
tercio
2014-10-22 14:28:15 -02:00
parent 619b551403
commit 59afaedf05
4 changed files with 24 additions and 17 deletions
+9 -10
View File
@@ -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