2025-01-18 21:26:02 +08:00

35 lines
948 B
Lua

---@class WB_FightPanel_C:UAEUserWidget
---@field Button_ShowGuide UButton
---@field NewButton_GM UNewButton
---@field W_TeamScore_RoundMode_2 UW_TeamScore_RoundMode_2_C
---@field WB_HP UWB_HP_C
---@field WB_ShowBuff UWB_ShowBuff_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_2:OnShowPanel()
end
function WB_FightPanel:OnClosePanel()
self.W_TeamScore_RoundMode_2:OnClosePanel()
end
return WB_FightPanel;