Statistics: Posted by Tanksy — 22 Jan 2017, 22:44
Statistics: Posted by KeyBlue — 22 Jan 2017, 22:34
local originalUpdateWindow = UpdateWindow
local originalUpdateWindow = UpdateWindow(info)
Statistics: Posted by speed2 — 22 Jan 2017, 19:31
local originalUpdateWindow = UpdateWindow
Statistics: Posted by KeyBlue — 22 Jan 2017, 19:29
local originalUpdateWindow = UpdateWindow(info)
Statistics: Posted by Myxir — 22 Jan 2017, 18:35
Statistics: Posted by Myxir — 22 Jan 2017, 17:21
do
local originalCreateUI = CreateUI
function createUI()
originalCreateUI()
controls.shield = UIUtil.CreateText(controls.shieldBar, '', 14, UIUtil.bodyFont)
end
local originalUpdateWindow = UpdateWindow(info)
function UpdateWindow(info)
originalUpdateWindow(info)
if info.blueprintId == 'unknown' then
return
else
if info.shieldRatio > 0 then
controls.shieldBar:Show()
controls.shieldBar:SetValue(info.shieldRatio)
controls.shield:SetText(string.format("%d / %d", info.shield, info.maxShield))
else
controls.shieldBar:Hide()
end
end
end
end
Statistics: Posted by Tanksy — 22 Jan 2017, 17:02