30 lines
963 B
Lua
30 lines
963 B
Lua
|
---@class WB_TipLineOfDefense_C:UUserWidget
|
||
|
---@field CanvasPanel_Main UCanvasPanel
|
||
|
---@field Overlay_CanNotBreakThrough UOverlay
|
||
|
--Edit Below--
|
||
|
local WB_TipLineOfDefense = { bInitDoOnce = false; };
|
||
|
|
||
|
|
||
|
function WB_TipLineOfDefense:Construct()
|
||
|
UGCEventSystem.AddListener(EventEnum.UpdateCanBreakThrough, self.UpdateCanBreakThrough, self)
|
||
|
UGCLogSystem.Log("[WB_TipLineOfDefense_Construct]")
|
||
|
end
|
||
|
|
||
|
function WB_TipLineOfDefense:UpdateCanBreakThrough(IsCanBreakThrough)
|
||
|
UGCLogSystem.Log("[WB_TipLineOfDefense_UpdateCanBreakThrough] IsCanBreakThrough:%s", tostring(IsCanBreakThrough))
|
||
|
if IsCanBreakThrough then
|
||
|
self.Overlay_CanNotBreakThrough:SetVisibility(ESlateVisibility.Collapsed)
|
||
|
else
|
||
|
self.Overlay_CanNotBreakThrough:SetVisibility(ESlateVisibility.HitTestInvisible)
|
||
|
end
|
||
|
end
|
||
|
-- function WB_TipLineOfDefense:Tick(MyGeometry, InDeltaTime)
|
||
|
|
||
|
-- end
|
||
|
|
||
|
-- function WB_TipLineOfDefense:Destruct()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
|
||
|
return WB_TipLineOfDefense;
|