private void setCreateButtonStates()
		{
			for (int i = 0; i < iglooCreateButtonList.Count; i++)
			{
				IglooCreateButton iglooCreateButton = iglooCreateButtonList[i];
				if (!membershipData.IsMember && iglooCreateButton.GetSlotContainer != NonMemberSlotContainer)
				{
					iglooCreateButton.SetState(IglooPropertiesCard.IglooCardState.MemberLocked);
					continue;
				}
				int num = i + iglooPropertiesCards.Count;
				if (num > progressionData.Count)
				{
					Log.LogErrorFormatted(this, "Caluclated index for create igloo buttons was larger than progression count. Index {0}, Count {1}", num, progressionData.Count);
				}
				else if (num == progressionData.Count)
				{
					setupButtonActiveAndClickable(iglooCreateButton);
				}
				else if (membershipData.IsMember && num >= 0 && isProgressionLocked(num))
				{
					iglooCreateButton.SetState(IglooPropertiesCard.IglooCardState.ProgressionLocked);
					iglooCreateButton.SetLockedLevel(progressionData[num].Level);
				}
				else
				{
					setupButtonActiveAndClickable(iglooCreateButton);
				}
			}
		}
		private void replacePropertiesButtonWithCreate(GameObject createButtonPrefab, Transform slotContainer)
		{
			if (!base.gameObject.IsDestroyed())
			{
				IglooCreateButton item = createNewCreateButton(createButtonPrefab, slotContainer);
				iglooCreateButtonList.Add(item);
				setCreateButtonStates();
			}
		}
		private void initializeCreateButtons(GameObject createButtonPrefab)
		{
			if (base.gameObject.IsDestroyed())
			{
				return;
			}
			bool enableButton = true;
			for (int i = 0; i < createButtonCount; i++)
			{
				Transform slotContainer = MemberSlotContainer;
				if (!membershipData.IsMember && !hasNonMemberIgloo && i == 0)
				{
					slotContainer = NonMemberSlotContainer;
					enableButton = false;
				}
				IglooCreateButton item = createNewCreateButton(createButtonPrefab, slotContainer);
				iglooCreateButtonList.Add(item);
			}
			setCreateButtonStates();
			checkTutorial();
			privacyButton.Setup(base.transform.parent, savedIgloosMetaData, enableButton);
			eventDispatcher.DispatchEvent(default(IglooUIEvents.ManageIglooPopupDisplayed));
		}
		private void setupButtonActiveAndClickable(IglooCreateButton iglooCreateButton)
		{
			Button component = iglooCreateButton.GetComponent<Button>();
			component.onClick.AddListener(onCreateNewIglooButtonPressed);
			iglooCreateButton.SetState(IglooPropertiesCard.IglooCardState.Active);
		}