public void Setup(RoomInfo data, bool isSelected = false) { RawData = data; SetIsSelected(isSelected); TextRoomName.text = data.Name; RoomId = data.RoomId; LockImage.SetActive(data.State == 1 || data.CurPlayerCount >= data.MaxPlayerCount); TextPlayerCount.text = string.Format("{0}/{1}", data.CurPlayerCount, data.MaxPlayerCount); TextMapName.text = data.MapId.ToString(); }
public void generateLockImage(Shape targetLocked) { if (lockImageInst == null) { lockImageInst = Instantiate(lockImageClass) as LockImage; lockImageInst.transform.SetParent(this.gameObject.transform, false); lockImageInst.Initialize(mainCamera, layer2PassiveCanvas); } lockImageInst.gameObject.SetActive(true); lockImageInst.setTargetLocked(targetLocked); }
private void InitComposition() { _compositor = this.GetVisual().Compositor; _detailGridVisual = DetailGrid.GetVisual(); _maskBorderGridVisual = MaskBorder.GetVisual(); _infoGridVisual = InfoGrid.GetVisual(); _loadingPath = LoadingPath.GetVisual(); _shareBtnVisual = ShareBtn.GetVisual(); _flipperVisual = FlipperControl.GetVisual(); _taskbarImageVisual = TaskBarImageRoot.GetVisual(); _lockScreenImageVisual = LockImage.GetVisual(); _previewBtnVisual = PreviewBtn.GetVisual(); _setAsSPVisual = SetAsSP.GetVisual(); _exifInfoVisual = ExifInfoGrid.GetVisual(); _operationSPVisual = OperationSP.GetVisual(); _detailContentGridVisual = DetailContentGrid.GetVisual(); ResetVisualInitState(); }
void ReleaseDesignerOutlets() { if (cnsBackgroundImageHeight != null) { cnsBackgroundImageHeight.Dispose(); cnsBackgroundImageHeight = null; } if (cnsBackgroundImageWidth != null) { cnsBackgroundImageWidth.Dispose(); cnsBackgroundImageWidth = null; } if (cnsDescriptionHeight != null) { cnsDescriptionHeight.Dispose(); cnsDescriptionHeight = null; } if (cnsDescriptionWidth != null) { cnsDescriptionWidth.Dispose(); cnsDescriptionWidth = null; } if (CountdownText != null) { CountdownText.Dispose(); CountdownText = null; } if (ivGenericBackground != null) { ivGenericBackground.Dispose(); ivGenericBackground = null; } if (ivRewardImage != null) { ivRewardImage.Dispose(); ivRewardImage = null; } if (lblClaimIt != null) { lblClaimIt.Dispose(); lblClaimIt = null; } if (lblDescriptionFooter != null) { lblDescriptionFooter.Dispose(); lblDescriptionFooter = null; } if (lblPointsButtonText != null) { lblPointsButtonText.Dispose(); lblPointsButtonText = null; } if (lblStatus != null) { lblStatus.Dispose(); lblStatus = null; } if (lblTapsCount != null) { lblTapsCount.Dispose(); lblTapsCount = null; } if (LockImage != null) { LockImage.Dispose(); LockImage = null; } if (LockImageStatus != null) { LockImageStatus.Dispose(); LockImageStatus = null; } if (NameText != null) { NameText.Dispose(); NameText = null; } if (NotifyButton != null) { NotifyButton.Dispose(); NotifyButton = null; } if (peopleIcon != null) { peopleIcon.Dispose(); peopleIcon = null; } if (RewardButton != null) { RewardButton.Dispose(); RewardButton = null; } if (scrlMainContent != null) { scrlMainContent.Dispose(); scrlMainContent = null; } if (statusTitleLabel != null) { statusTitleLabel.Dispose(); statusTitleLabel = null; } if (SubTitleText != null) { SubTitleText.Dispose(); SubTitleText = null; } if (UnitsAvailable != null) { UnitsAvailable.Dispose(); UnitsAvailable = null; } if (UnlockInTitle != null) { UnlockInTitle.Dispose(); UnlockInTitle = null; } if (UsersEligible != null) { UsersEligible.Dispose(); UsersEligible = null; } if (vBackgroundImageShadow != null) { vBackgroundImageShadow.Dispose(); vBackgroundImageShadow = null; } if (vBasis != null) { vBasis.Dispose(); vBasis = null; } if (vContentBasis != null) { vContentBasis.Dispose(); vContentBasis = null; } if (vEligibleRawBasis != null) { vEligibleRawBasis.Dispose(); vEligibleRawBasis = null; } if (vFiltersRawBasis != null) { vFiltersRawBasis.Dispose(); vFiltersRawBasis = null; } if (vMainContent != null) { vMainContent.Dispose(); vMainContent = null; } if (vRewardsButtonCenterBasis != null) { vRewardsButtonCenterBasis.Dispose(); vRewardsButtonCenterBasis = null; } if (vRewardUnlockTimeContainer != null) { vRewardUnlockTimeContainer.Dispose(); vRewardUnlockTimeContainer = null; } if (vRightBottomBasis != null) { vRightBottomBasis.Dispose(); vRightBottomBasis = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }