32 lines
905 B
Lua
32 lines
905 B
Lua
|
---@class W_WaitPlayJoin_C:UUserWidget
|
||
|
---@field Overlay_WaitTime UOverlay
|
||
|
---@field TextBlock_WaitTime UTextBlock
|
||
|
--Edit Below--
|
||
|
---@type W_WaitPlayJoin_C
|
||
|
local W_WaitPlayJoin = {
|
||
|
bInitDoOnce = false;
|
||
|
bSelected = false;
|
||
|
SelectMapType = -1;
|
||
|
bLoading = false;
|
||
|
};
|
||
|
|
||
|
|
||
|
function W_WaitPlayJoin:Construct()
|
||
|
self.TextBlock_WaitTime:BindingProperty("Text", self.TextBlock_WaitTime_Text, self)
|
||
|
UGCEventSystem.AddListener(EventEnum.GameWillBegin, self.GameWillBegin, self)
|
||
|
end
|
||
|
|
||
|
function W_WaitPlayJoin:OnClosePanel()
|
||
|
self.bLoading = false
|
||
|
WidgetManager:DestroyPanel(WidgetConfig.EUIType.WaitingTime)
|
||
|
end
|
||
|
|
||
|
function W_WaitPlayJoin:TextBlock_WaitTime_Text(ReturnValue)
|
||
|
return tostring(UGCGameSystem.GameState:GetGameTime())
|
||
|
end
|
||
|
|
||
|
function W_WaitPlayJoin:GameWillBegin()
|
||
|
UGCEventSystem.SendEvent(EventEnum.AddTip, TipConfig.TipType.GameWillStart)
|
||
|
end
|
||
|
|
||
|
return W_WaitPlayJoin;
|