- Added 'ShielTronic Shield' on HealthPotion & Stone display.
- Improvements done on Vanguard Plugin. - Fixed an alignment issue which was happening with few tooltips. - Fixed a problem where sometimes the addon crashes while doing a /reload during raid. - Fixed the creation of auras for weakauras from the Forge (/details forge).
This commit is contained in:
@@ -924,8 +924,12 @@
|
||||
|
||||
if (custom_object:IsScripted()) then
|
||||
if (custom_object.tooltip) then
|
||||
local func = loadstring (custom_object.tooltip)
|
||||
func (actor, instance.showing, instance)
|
||||
local func = _detalhes.custom_function_cache [instance.customName .. "Tooltip"]
|
||||
local okey, errortext = _pcall (func, actor, instance.showing, instance)
|
||||
if (not okey) then
|
||||
_detalhes:Msg ("|cFFFF9900error on custom display tooltip function|r:", errortext)
|
||||
return false
|
||||
end
|
||||
end
|
||||
else
|
||||
--> get the attribute
|
||||
@@ -1345,7 +1349,7 @@
|
||||
local AllSpells = character:GetSpellList()
|
||||
local found = false
|
||||
for spellid, spell in pairs (AllSpells) do
|
||||
if (spellid == 6262 or spellid == 156445 or spellid == 156438 or spellid == 82184) then --healthstone, reju potion, health potion, spinal healing injector
|
||||
if (spellid == 6262 or spellid == 156445 or spellid == 156438 or spellid == 82184 or spellid == 173260) then --healthstone, reju potion, health potion, spinal healing injector, shieldtronic shield
|
||||
instance_container:AddValue (character, spell.total)
|
||||
total = total + spell.total
|
||||
if (top < spell.total) then
|
||||
@@ -1398,12 +1402,19 @@
|
||||
GameCooltip:AddIcon (select (3, GetSpellInfo (82184)), 1, 1, 16, 16)
|
||||
GameCooltip:AddStatusBar (100, 1, R, G, B, A)
|
||||
end
|
||||
|
||||
local shieldtronic = actor:GetSpell (173260)
|
||||
if (shieldtronic) then
|
||||
GameCooltip:AddLine (select (1, GetSpellInfo(173260)), _detalhes:ToK(shieldtronic.total))
|
||||
GameCooltip:AddIcon (select (3, GetSpellInfo (173260)), 1, 1, 16, 16)
|
||||
GameCooltip:AddStatusBar (100, 1, R, G, B, A)
|
||||
end
|
||||
|
||||
--Cooltip code
|
||||
]],
|
||||
percent_script = false,
|
||||
total_script = false,
|
||||
script_version = 10,
|
||||
script_version = 12,
|
||||
}
|
||||
-- /run _detalhes:AddDefaultCustomDisplays()
|
||||
local have = false
|
||||
|
||||
@@ -597,7 +597,6 @@
|
||||
|
||||
local spellname, _, spellicon = select (1, _GetSpellInfo (from_spell))
|
||||
GameCooltip:AddLine (spellname .. " " .. Loc ["STRING_CUSTOM_ATTRIBUTE_DAMAGE"], nil, nil, headerColor, nil, 10)
|
||||
--GameCooltip:AddIcon ([[Interface\ICONS\Spell_Mage_InfernoBlast]], 1, 1, 14, 14, 0.078125, 0.921875, 0.078125, 0.921875)
|
||||
GameCooltip:AddIcon (spellicon, 1, 1, 14, 14, 0.078125, 0.921875, 0.078125, 0.921875)
|
||||
GameCooltip:AddIcon ([[Interface\AddOns\Details\images\key_shift]], 1, 2, _detalhes.tooltip_key_size_width, _detalhes.tooltip_key_size_height, 0, 1, 0, 0.640625, _detalhes.tooltip_key_overlay2)
|
||||
_detalhes:AddTooltipHeaderStatusbar (1, 1, 1, 0.5)
|
||||
@@ -621,7 +620,7 @@
|
||||
GameCooltip:AddLine (" ")
|
||||
_detalhes:AddTooltipReportLineText()
|
||||
|
||||
GameCooltip:SetOption ("YSpacingMod", -1)
|
||||
GameCooltip:SetOption ("YSpacingMod", 0)
|
||||
GameCooltip:SetOwner (esta_barra)
|
||||
GameCooltip:Show()
|
||||
|
||||
@@ -3178,7 +3177,7 @@ function atributo_damage:ToolTip_Enemies (instancia, numero, barra, keydown)
|
||||
-- t[1] = 0
|
||||
--end
|
||||
|
||||
GameCooltip:SetOption ("YSpacingMod", -1)
|
||||
GameCooltip:SetOption ("YSpacingMod", 0)
|
||||
|
||||
return true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user