---@class WB_RoundRead_C:UUserWidget ---@field TextBlock_ReadyTime UTextBlock --Edit Below-- ---@type WB_RoundRead_C local WB_RoundReady = { bInitDoOnce = false; }; function WB_RoundReady:Construct() WidgetLibrary.TextBlockBindingPropertyText(self.TextBlock_ReadyTime, self.UpdateReadyTime, self) UGCEventSystem.AddListener(EventEnum.RoundBegining, self.ShowSelf, self) UGCEventSystem.AddListener(EventEnum.RoundReadyFinish, self.HideSelf, self) end function WB_RoundReady:ShowSelf() WidgetManager:ShowPanel(WidgetConfig.EUIType.RoundReady, false) end function WB_RoundReady:HideSelf() WidgetManager:ClosePanel(WidgetConfig.EUIType.RoundReady) SoundSystem.PlaySound(SoundSystem.ESound.OkLetsGo) UGCGameSystem.GameState:ShowControlPanel() end function WB_RoundReady:UpdateReadyTime() local ReadyTime = UGCGameSystem.GameState:GetReadyTime() if ReadyTime > 0 then return string.format("%.0f", ReadyTime) end end function WB_RoundReady:OnClosePanel() end -- function WB_RoundReady:Tick(MyGeometry, InDeltaTime) -- end -- function WB_RoundReady:Destruct() -- end return WB_RoundReady;