More spell reflection implementations

- added reflected spells in the player tooltip.
- added reflected spell in the player details window.
- reflection spells like Warrior's Spell Reflection now has a new spell school called "Reflection".
- soft tooltips and player details window improvements.
- damage spell object now has the member 'extra' which is a table that can store hash data.
- profile.tooltip.tooltip_max_abilities won't be forced to 6 any more, to set your own amount of spells shown on tooltips use:
/run Details.tooltip.tooltip_max_abilities = number;
This commit is contained in:
Tercio Jose
2020-06-01 20:51:48 -03:00
parent b9be3bbf39
commit fedfe341a3
12 changed files with 309 additions and 171 deletions
+1 -1
View File
@@ -1621,7 +1621,7 @@ function DF:CreateCoolTip()
--> height
if (CoolTip.OptionsTable.AlignAsBlizzTooltip) then
local height = _math_max (8, menuButton.leftText:GetStringHeight(), menuButton.rightText:GetStringHeight(), menuButton.leftIcon:GetHeight(), menuButton.rightIcon:GetHeight())
local height = _math_max (2, menuButton.leftText:GetStringHeight(), menuButton.rightText:GetStringHeight(), menuButton.leftIcon:GetHeight(), menuButton.rightIcon:GetHeight(), CoolTip.OptionsTable.AlignAsBlizzTooltipForceHeight or 2)
menuButton:SetHeight (height)
menuButton:SetPoint ("top", frame1, "top", 0, temp)
temp = temp + ( height * -1)