local GemCompose_Controller = {} local private = {} local EventSystem = require('Event/EventSystem') function GemCompose_Controller.OnStartup() EventSystem.Regist(EventID.UI_RefreshGemRedPoint, GemCompose_Controller.RefreshFormationGemRedPoint) EventSystem.Regist(EventID.AcquireSystemRedAfterUnlock, GemCompose_Controller.RefreshFormationGemRedPoint) end function GemCompose_Controller.RefreshFormationGemRedPoint() local isFormationRed = MDL.GemCompose.HasRedPoint() isFormationRed = isFormationRed or MDL.GemCompose.HasQuickCompose() if isFormationRed then CTL.RedPoint.AddRedPoint(CTL.RedPoint.RedPointKey.Formation_Gem) else CTL.RedPoint.RemoveRedPoint(CTL.RedPoint.RedPointKey.Formation_Gem) end end function GemCompose_Controller.OnShutdown() end return GemCompose_Controller