---@class WB_FightPanel_C:UUserWidget ---@field Button_MechanismDesc UButton ---@field Button_ShowGuide UButton ---@field Button_ShowSetting UButton ---@field Overlay_Target UOverlay ---@field TextBlock_Target UTextBlock ---@field W_TeamScore_2 UW_TeamScore_2_C ---@field WB_KillInfo UWB_KillInfo_C ---@field WB_NextWeapon UWB_NextWeapon_C ---@field WB_ShowMechanismEnergy UWB_ShowMechanismEnergy_C --Edit Below-- ---@type WB_FightPanel_C local WB_FightPanel = { bInitDoOnce = false; }; function WB_FightPanel:Construct() self:LuaInit(); UGCEventSystem.AddListener(EventEnum.UpdateMapSelectionFinalResult, self.UpdateMapSelectionFinalResult, self) self:UpdateMapSelectionFinalResult() end function WB_FightPanel:LuaInit() if self.bInitDoOnce then return; end self.bInitDoOnce = true; WidgetLibrary.ButtonOnClickShowPanel(self.Button_ShowSetting, WidgetConfig.EUIType.ButtonSetting); WidgetLibrary.ButtonOnClickShowPanel(self.Button_ShowGuide, WidgetConfig.EUIType.Guide); WidgetLibrary.ButtonOnClickShowPanel(self.Button_MechanismDesc, WidgetConfig.EUIType.SceneItemGuide); end function WB_FightPanel:UpdateMapSelectionFinalResult() if UGCGameSystem.GameState:GetSpecialModeType() == MapConfig.ESpecialModeType.ArmsRace then self.TextBlock_Target:SetText(string.format("淘汰分达到 %s ", tostring(#WeaponGradientTable.ArmsRaceGradient[1]))) self.Overlay_Target:SetVisibility(ESlateVisibility.HitTestInvisible) end end return WB_FightPanel;