---@class WB_Debug_C:UUserWidget ---@field Button_AddExp UButton ---@field Button_AddGold UButton ---@field Button_AddGoldBrick UButton ---@field Button_ClearArchiveData UButton ---@field Button_ClearExp UButton ---@field Button_ClearTask UButton ---@field Button_Close UButton --Edit Below-- local WB_Debug = { bInitDoOnce = false; }; function WB_Debug:Construct() WidgetLibrary.BindButtonClicked(self.Button_AddGold, self.AddGold, self) WidgetLibrary.BindButtonClicked(self.Button_AddExp, self.AddExp, self) WidgetLibrary.BindButtonClicked(self.Button_AddGoldBrick, self.AddGoldBrick, self) WidgetLibrary.BindButtonClicked(self.Button_ClearArchiveData, self.ClearArchiveData, self) WidgetLibrary.BindButtonClicked(self.Button_ClearExp, self.ClearExp, self) WidgetLibrary.BindButtonClicked(self.Button_ClearTask, self.ClearTask, self) WidgetLibrary.BindButtonClicked(self.Button_Close, self.Close, self) end function WB_Debug:AddGold() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_AddGold", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:AddExp() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_AddExp", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:AddGoldBrick() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_AddGoldBrick", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:ClearArchiveData() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_ClearArchiveData", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:ClearExp() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_ClearArchiveDataFromType", UGCSystemLibrary.GetLocalPlayerKey(), ArchiveDataConfig.EArchiveType.Exp) end function WB_Debug:ClearTask() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_ClearArchiveDataFromType", UGCSystemLibrary.GetLocalPlayerKey(), ArchiveDataConfig.EArchiveType.DailyTasks) end function WB_Debug:Close() WidgetManager:ClosePanel(WidgetConfig.EUIType.Debug) end -- function WB_Debug:Tick(MyGeometry, InDeltaTime) -- end -- function WB_Debug:Destruct() -- end return WB_Debug;