2025-02-02 16:26:56 +08:00

36 lines
1000 B
Lua

---@class WB_FightPanel_C:UAEUserWidget
---@field Button_ShowGuide UButton
---@field NewButton_GM UNewButton
---@field W_TeamScore_RoundMode_3 UW_TeamScore_RoundMode_3_C
---@field WB_HP UWB_HP_C
---@field WidgetSwitcher_0 UWidgetSwitcher
--Edit Below--
---@type WB_FightPanel_C
local WB_FightPanel = { bInitDoOnce = false; };
function WB_FightPanel:Construct()
self:LuaInit();
if GlobalConfigs.IsDebug then
self.NewButton_GM:SetVisibility(ESlateVisibility.Visible)
WidgetLibrary.ButtonOnClickShowPanel(self.NewButton_GM, WidgetConfig.EUIType.Debug)
end
end
function WB_FightPanel:LuaInit()
if self.bInitDoOnce then return end
self.bInitDoOnce = true
WidgetLibrary.ButtonOnClickShowPanel(self.Button_ShowGuide, WidgetConfig.EUIType.Guide);
end
function WB_FightPanel:OnShowPanel()
self.W_TeamScore_RoundMode_3:OnShowPanel()
end
function WB_FightPanel:OnClosePanel()
self.W_TeamScore_RoundMode_3:OnClosePanel()
-- self.W_TeamScore_RoundMode:OnClosePanel()
end
return WB_FightPanel;