27 lines
602 B
Lua
27 lines
602 B
Lua
---@class W_ShowPoolHealth_C:UUserWidget
|
|
---@field Image_0 UImage
|
|
---@field Image_2 UImage
|
|
---@field TextBlock_HealthValue UTextBlock
|
|
--Edit Below--
|
|
---@type W_ShowPoolHealth_C
|
|
local W_ShowPoolHealth = { bInitDoOnce = false; };
|
|
|
|
--[==[ Construct
|
|
function W_ShowPoolHealth:Construct()
|
|
|
|
end
|
|
-- Construct ]==]
|
|
|
|
-- function W_ShowPoolHealth:Tick(MyGeometry, InDeltaTime)
|
|
|
|
-- end
|
|
|
|
-- function W_ShowPoolHealth:Destruct()
|
|
|
|
-- end
|
|
|
|
function W_ShowPoolHealth:UpdateHealth(Health, MaxHealth)
|
|
self.TextBlock_HealthValue:SetText(string.format("%.0f / %.0f", Health, MaxHealth))
|
|
end
|
|
|
|
return W_ShowPoolHealth; |