protected virtual bool SetLockableButtonLockedStatus(ILockableButton button, DecorationDefinitionType definition, ProgressionUtils.ParsedProgression <DecorationDefinitionType> progressData) { bool result = true; if (progressData != null) { if (progressData.MemberLocked && !Service.Get <CPDataEntityCollection>().IsLocalPlayerMember()) { button.SetMemberLocked(); } else if (progressData.LevelLocked) { button.SetLevelLocked(progressData.Level); } else if (progressData.ProgressionLocked) { button.SetProgressionLocked(progressData.MascotName); } else { button.SetUnlocked(); result = false; } } else if (definition.IsMemberOnly && !Service.Get <CPDataEntityCollection>().IsLocalPlayerMember()) { button.SetMemberLocked(); } else { button.SetUnlocked(); result = false; } return(result); }
protected override bool SetLockableButtonLockedStatus(ILockableButton button, StructureDefinition definition, ProgressionUtils.ParsedProgression <StructureDefinition> progressData) { bool result; if (definition.SizeUnits > Service.Get <ObjectManipulationService>().StructurePlotManager.LargestPlotSize) { result = true; (button as IglooCustomizationButton).SetSizeLocked(); } else { result = base.SetLockableButtonLockedStatus(button, definition, progressData); } return(result); }