---@class WB_Debug_C:UUserWidget ---@field Button_Close UButton ---@field Button_Debug1 UButton ---@field Button_Debug2 UButton ---@field Button_Debug3 UButton ---@field Button_Debug4 UButton ---@field Button_Debug5 UButton ---@field Button_Debug6 UButton --Edit Below-- local WB_Debug = { bInitDoOnce = false; }; function WB_Debug:Construct() WidgetLibrary.BindButtonClicked(self.Button_Debug1, self.Debug1, self) WidgetLibrary.BindButtonClicked(self.Button_Debug2, self.Debug2, self) WidgetLibrary.BindButtonClicked(self.Button_Debug3, self.Debug3, self) WidgetLibrary.BindButtonClicked(self.Button_Debug4, self.Debug4, self) WidgetLibrary.BindButtonClicked(self.Button_Debug5, self.Debug5, self) WidgetLibrary.BindButtonClicked(self.Button_Debug6, self.Debug6, self) WidgetLibrary.BindButtonClicked(self.Button_Close, self.Close, self) end function WB_Debug:Debug1() UGCSendRPCSystem.ActorRPCNotify(nil, UGCGameSystem.GameState, "PlayerUseSkill", SkillConfig.ESkillType.Detect, UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:Debug2() UGCSendRPCSystem.ActorRPCNotify(nil, UGCGameSystem.GameState, "DebugLogic", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:Debug3() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_AddGoldBrick", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:Debug4() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_ClearArchiveData", UGCSystemLibrary.GetLocalPlayerKey()) end function WB_Debug:Debug5() SoundSystem.PlaySound(SoundSystem.ESound.Click) UGCSendRPCSystem.ActorRPCNotify(UGCSystemLibrary.GetLocalPlayerKey(), UGCGameSystem.GameState, "Debug_ClearArchiveDataFromType", UGCSystemLibrary.GetLocalPlayerKey(), ArchiveDataConfig.EArchiveType.Exp) end function WB_Debug:Debug6() 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;