local EventSystem = require("Event/EventSystem") local UIFreeLineupCustomDetailPanel = require("View/FreeLineUp/UIFreeLineupCustomDetailPanel") local UIStormFreeLineupCustomDetailPanel = UIViewClass(UIFreeLineupCustomDetailPanel) -- OVERRIDE function UIStormFreeLineupCustomDetailPanel:UpdateViewBySubView() self:InitCustomChildPanel(true, true) end -- OVERRIDE function UIStormFreeLineupCustomDetailPanel:OnClickSave() if MDL.Storm.GetTodayMaxScore() <= 0 then self:SaveAndQuit() return end UTL.MessageBox.ShowOKCancelBox( nil, Const_IDS.IDS_Storm_LockedTips2, self.SaveAndQuit, nil ) end function UIStormFreeLineupCustomDetailPanel:SaveAndQuit() MDL.FreeLineUp.FreeLineUpLockOrClearReq(MDL.FreeLineUp.FuncType.Storm, true) EventSystem.Dispatch(EventID.UI_Storm_FreeLineupClose) end return UIStormFreeLineupCustomDetailPanel