- Joined
- May 1, 2018
- Messages
- 335
Hello! I noticed a while ago that the Reforged icons were being cut off, or overlapping, in game. This is a script to correct that behavior.
In the image, you can see how both the (un-upgraded) and (upgradable) icons no longer overlap and cut each other off, versus the original, which removes a pixel line of the icon border, or covers the upgrade value box.
This also aligns the Damage text with Strength, on heroes.
In the image, you can see how both the (un-upgraded) and (upgradable) icons no longer overlap and cut each other off, versus the original, which removes a pixel line of the icon border, or covers the upgrade value box.
This also aligns the Damage text with Strength, on heroes.
JASS:
scope DamageAlignment initializer Init
function UISetup takes nothing returns nothing
local framehandle fh = BlzGetFrameByName("InfoPanelIconBackdrop", 0)
call BlzFrameClearAllPoints(fh)
call BlzFrameSetAbsPoint(fh, FRAMEPOINT_TOPRIGHT, 0.3455, 0.083)
set fh = null
endfunction
private function Init takes nothing returns nothing
call UISetup()
endfunction
endscope
Lua:
do
local timer = CreateTimer()
TimerStart( timer, 0, false, function()
local framehandle
fh = BlzGetFrameByName("InfoPanelIconBackdrop", 0)
BlzFrameClearAllPoints(fh)
BlzFrameSetAbsPoint(fh, FRAMEPOINT_TOPRIGHT, 0.3455, 0.083)
DestroyTimer(timer)
end)
end
Last edited: