- Battle for Dazaralor update.

- Fixed rogue spec icons.
- Some visual improvements.
- Framework update.
This commit is contained in:
Tercioo
2019-01-20 00:22:22 -02:00
parent b198c62489
commit 0c486a24a2
32 changed files with 3069 additions and 248 deletions
+12 -9
View File
@@ -1652,9 +1652,9 @@ function DF:CreateCoolTip()
if (CoolTip.Type == 2) then --> with bars
if (CoolTip.OptionsTable.MinWidth) then
local w = frame1.w + 34
frame1:SetWidth (math.max (w, CoolTip.OptionsTable.MinWidth))
PixelUtil.SetWidth (frame1, math.max (w, CoolTip.OptionsTable.MinWidth))
else
frame1:SetWidth (frame1.w + 34)
PixelUtil.SetWidth (frame1, frame1.w + 34)
end
else
--> width stability check
@@ -1666,22 +1666,24 @@ function DF:CreateCoolTip()
end
if (CoolTip.OptionsTable.MinWidth) then
frame1:SetWidth (math.max (width, CoolTip.OptionsTable.MinWidth))
PixelUtil.SetWidth (frame1, math.max (width, CoolTip.OptionsTable.MinWidth))
else
frame1:SetWidth (width)
PixelUtil.SetWidth (frame1, width)
end
end
end
if (CoolTip.OptionsTable.FixedHeight) then
frame1:SetHeight (CoolTip.OptionsTable.FixedHeight)
PixelUtil.SetHeight (frame1, CoolTip.OptionsTable.FixedHeight)
else
if (CoolTip.OptionsTable.AlignAsBlizzTooltip) then
frame1:SetHeight ( ((temp-10) * -1) + (CoolTip.OptionsTable.AlignAsBlizzTooltipFrameHeightOffset or 0))
PixelUtil.SetHeight (frame1, ((temp-10) * -1) + (CoolTip.OptionsTable.AlignAsBlizzTooltipFrameHeightOffset or 0))
elseif (CoolTip.OptionsTable.IgnoreButtonAutoHeight) then
frame1:SetHeight ( (temp+spacing) * -1)
PixelUtil.SetHeight (frame1, (temp+spacing) * -1)
else
frame1:SetHeight ( _math_max ( (frame1.hHeight * CoolTip.Indexes) + 8 + ((CoolTip.OptionsTable.ButtonsYMod or 0)*-1), 22 ))
PixelUtil.SetHeight (frame1, _math_max ( (frame1.hHeight * CoolTip.Indexes) + 8 + ((CoolTip.OptionsTable.ButtonsYMod or 0)*-1), 22 ))
end
end
@@ -1922,7 +1924,8 @@ function DF:CreateCoolTip()
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)
--frame1:SetPoint (CoolTip.OptionsTable.MyAnchor, anchor, CoolTip.OptionsTable.RelativeAnchor, 0 + moveX + CoolTip.OptionsTable.WidthAnchorMod, 10 + CoolTip.OptionsTable.HeightAnchorMod + moveY)
PixelUtil.SetPoint (frame1, CoolTip.OptionsTable.MyAnchor, anchor, CoolTip.OptionsTable.RelativeAnchor, 0 + moveX + CoolTip.OptionsTable.WidthAnchorMod, 10 + CoolTip.OptionsTable.HeightAnchorMod + moveY)
if (not x_mod) then
--> check if cooltip is out of screen bounds