- Warlock mana from Life Tap won't show up any more under mana regen, this makes easy to see Soul Shard gain.

- Due to a framework update, typing the value on a slider shouldn't round the value up.
This commit is contained in:
Tercio
2018-01-26 14:07:43 -02:00
parent 984db015fc
commit 6036cfcdb6
5 changed files with 59 additions and 27 deletions
+10 -6
View File
@@ -1623,7 +1623,7 @@ function DF:CreateCoolTip()
end
end
if (CoolTip.OptionsTable.FixedHeight) then
frame1:SetHeight (CoolTip.OptionsTable.FixedHeight)
else
@@ -1683,6 +1683,7 @@ function DF:CreateCoolTip()
frame1:ClearAllPoints()
local anchor = CoolTip.OptionsTable.Anchor or CoolTip.Host
frame1:SetPoint (CoolTip.OptionsTable.MyAnchor, anchor, CoolTip.OptionsTable.RelativeAnchor, 0 + moveX + CoolTip.OptionsTable.WidthAnchorMod, 10 + CoolTip.OptionsTable.HeightAnchorMod + moveY)
if (not x_mod) then
@@ -1850,12 +1851,12 @@ function DF:CreateCoolTip()
function CoolTip:SetHost (frame, myPoint, hisPoint, x, y)
--> check data integrity
if (type (frame) ~= "table" or not frame.GetObjectType) then
print ("host need to be a frame")
print ("host needs to be a frame")
return --> error
end
CoolTip.Host = frame
CoolTip.frame1:SetFrameLevel (frame:GetFrameLevel()+1)
--> defaults
@@ -2964,6 +2965,11 @@ function DF:CreateCoolTip()
CoolTip:SetColor ("main", host.CoolTip.MainColor or "transparent")
CoolTip:SetColor ("sec", host.CoolTip.SubColor or "transparent")
local okay, errortext = pcall (host.CoolTip.BuildFunc, host, host.CoolTip and host.CoolTip.FixedValue) --resetting anchors
if (not okay) then
print ("Cooltip Injected Fucntion Error:", errortext)
end
CoolTip:SetOwner (host, host.CoolTip.MyAnchor, host.CoolTip.HisAnchor, host.CoolTip.X, host.CoolTip.Y)
local options = host.CoolTip.Options
@@ -2976,15 +2982,13 @@ function DF:CreateCoolTip()
end
end
host.CoolTip.BuildFunc()
if (CoolTip.Indexes == 0) then
if (host.CoolTip.Default) then
CoolTip:SetType ("tooltip")
CoolTip:AddLine (host.CoolTip.Default, nil, 1, "white")
end
end
CoolTip:ShowCooltip()
if (fromClick) then