Libraries Update

This commit is contained in:
Tercio Jose
2022-12-19 12:56:38 -03:00
parent 6ef2b67c58
commit bcc968b306
4 changed files with 126 additions and 106 deletions
+10 -1
View File
@@ -15,7 +15,7 @@ local max = math.max
--api locals
local PixelUtil = PixelUtil or DFPixelUtil
local version = 9
local version = 10
local CONST_MENU_TYPE_MAINMENU = "main"
local CONST_MENU_TYPE_SUBMENU = "sub"
@@ -2169,6 +2169,11 @@ function DF:CreateCoolTip()
end
end
--get the value of the fixed parameter
function gameCooltip:GetFixedParameter()
return gameCooltip.FixedValue
end
--set a fixed value for menu, the fixedValue is sent with the menu callback function
function gameCooltip:SetFixedParameter(value, injected)
if (injected ~= nil) then
@@ -3072,6 +3077,10 @@ function DF:CreateCoolTip()
return gameCooltip:ShowCooltip(frame, menuType, color)
end
function gameCooltip:IsShown()
return frame1:IsShown()
end
function gameCooltip:ShowCooltip(frame, menuType, color)
frame1:SetFrameStrata("TOOLTIP")
frame2:SetFrameStrata("TOOLTIP")