31 lines
743 B
Lua
31 lines
743 B
Lua
|
---@class WB_RerunPanel_C:UUserWidget
|
||
|
---@field AnimShow UWidgetAnimation
|
||
|
---@field Button_Break UButton
|
||
|
---@field Button_Rerun UButton
|
||
|
--Edit Below--
|
||
|
local WB_RerunPanel = { bInitDoOnce = false; };
|
||
|
|
||
|
|
||
|
function WB_RerunPanel:Construct()
|
||
|
WidgetLibrary.BindButtonClicked(self.Button_Break, self.NotifyToPlaceMode, self)
|
||
|
WidgetLibrary.BindButtonClicked(self.Button_Rerun, self.NotifyToRerun, self)
|
||
|
end
|
||
|
|
||
|
function WB_RerunPanel:NotifyToPlaceMode()
|
||
|
UGCSendRPCSystem.RPCEvent(nil, EventEnum.BackToPlaceMode)
|
||
|
end
|
||
|
|
||
|
function WB_RerunPanel:NotifyToRerun()
|
||
|
UGCSendRPCSystem.RPCEvent(nil, EventEnum.RerunNowRound)
|
||
|
end
|
||
|
|
||
|
|
||
|
-- function WB_RerunPanel:Tick(MyGeometry, InDeltaTime)
|
||
|
|
||
|
-- end
|
||
|
|
||
|
-- function WB_RerunPanel:Destruct()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
return WB_RerunPanel;
|