34 lines
903 B
Lua
Raw Normal View History

2025-01-04 23:00:19 +08:00
---@class WB_FightPanel_C:UAEUserWidget
---@field Button_ShowGuide UButton
---@field NewButton_GM UNewButton
---@field W_TeamScore_RoundMode UW_TeamScore_RoundMode_C
---@field WB_HP UWB_HP_C
--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:OnShowPanel()
end
function WB_FightPanel:OnClosePanel()
self.W_TeamScore_RoundMode:OnClosePanel()
end
return WB_FightPanel;