void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (ConfirmButton != null) { ConfirmButton.Dispose(); ConfirmButton = null; } if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } }
void ReleaseDesignerOutlets() { if (BranchNameLabel != null) { BranchNameLabel.Dispose(); BranchNameLabel = null; } if (BranchNumberLabel != null) { BranchNumberLabel.Dispose(); BranchNumberLabel = null; } if (ChangeLocation != null) { ChangeLocation.Dispose(); ChangeLocation = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (FaxLabel != null) { FaxLabel.Dispose(); FaxLabel = null; } if (Map != null) { Map.Dispose(); Map = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } if (StreetLabel != null) { StreetLabel.Dispose(); StreetLabel = null; } }
void ReleaseDesignerOutlets() { if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (DescriptionTextView != null) { DescriptionTextView.Dispose(); DescriptionTextView = null; } if (GradeLabel != null) { GradeLabel.Dispose(); GradeLabel = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (OwnerLabel != null) { OwnerLabel.Dispose(); OwnerLabel = null; } if (PictureImageView != null) { PictureImageView.Dispose(); PictureImageView = null; } if (PriceLabel != null) { PriceLabel.Dispose(); PriceLabel = null; } }
public static void CreateCityLabel(EntityQuery query, GameObject cityPanelPrefab, Transform transform, Canvas gridCanvas) { NativeArray <Entity> labels = query.ToEntityArray(Allocator.TempJob); foreach (Entity createCityLabel in labels) { GameObject label = GameObject.Instantiate(cityPanelPrefab, transform.position, Quaternion.identity); CityLabel cityLabel = new CityLabel(createCityLabel, label, gridCanvas); cityLabel.SetLabel(); entityManager.RemoveComponent <UICreate>(createCityLabel); } labels.Dispose(); }
void ReleaseDesignerOutlets() { if (ProvinceLabel != null) { ProvinceLabel.Dispose(); ProvinceLabel = null; } if (ProvinceTextField != null) { ProvinceTextField.Dispose(); ProvinceTextField = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (CityTextField != null) { CityTextField.Dispose(); CityTextField = null; } if (RegionLabel != null) { RegionLabel.Dispose(); RegionLabel = null; } if (RegionTextField != null) { RegionTextField.Dispose(); RegionTextField = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } }
void ReleaseDesignerOutlets() { if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (GradeLabel != null) { GradeLabel.Dispose(); GradeLabel = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (OwnerLabel != null) { OwnerLabel.Dispose(); OwnerLabel = null; } if (PriceLabel != null) { PriceLabel.Dispose(); PriceLabel = null; } if (ThumbnailImageView != null) { ThumbnailImageView.Dispose(); ThumbnailImageView = null; } }
// Create a 2D text at the position of the city marker // The text is placed under a special Canvas that acts as the parent for all text labels protected void CreateLabel(GameObject canvas, string name, float labelRank) { mLabel = LoadPrefab("CityLabel"); mLabel.name = name; mLabel.transform.SetParent(canvas.transform); Text text = mLabel.GetComponent <Text>(); text.text = name; // set the label size according to the labelRank of the city (max. labelRank is 8) text.fontSize = Mathf.RoundToInt(Mathf.Lerp(maxLabelSize, minLabelSize, labelRank / 8.0f)); RectTransform rect = mLabel.GetComponent <RectTransform>(); rect.pivot = Vector2.zero; CityLabel label = mLabel.GetComponent <CityLabel>(); label.cityMarker = mObj; // place a reference to the marker in the label's component }
void ReleaseDesignerOutlets() { if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SubLocalityLabel != null) { SubLocalityLabel.Dispose(); SubLocalityLabel = null; } if (SummaryLabel != null) { SummaryLabel.Dispose(); SummaryLabel = null; } if (TemperatureLabel != null) { TemperatureLabel.Dispose(); TemperatureLabel = null; } if (WeatherIcon != null) { WeatherIcon.Dispose(); WeatherIcon = null; } }
void ReleaseDesignerOutlets() { if (AddPointsText != null) { AddPointsText.Dispose(); AddPointsText = null; } if (AreaCollection != null) { AreaCollection.Dispose(); AreaCollection = null; } if (AreaCollectionHeight != null) { AreaCollectionHeight.Dispose(); AreaCollectionHeight = null; } if (BkgdImage != null) { BkgdImage.Dispose(); BkgdImage = null; } if (BtnPendingRequest != null) { BtnPendingRequest.Dispose(); BtnPendingRequest = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (cnsAreaCollectionTop != null) { cnsAreaCollectionTop.Dispose(); cnsAreaCollectionTop = null; } if (cnsMenuContainerHeight != null) { cnsMenuContainerHeight.Dispose(); cnsMenuContainerHeight = null; } if (ConnectedNetworkText != null) { ConnectedNetworkText.Dispose(); ConnectedNetworkText = null; } if (FacebookConnectedImage != null) { FacebookConnectedImage.Dispose(); FacebookConnectedImage = null; } if (FacebookLabel != null) { FacebookLabel.Dispose(); FacebookLabel = null; } if (FacebookLoginButton != null) { FacebookLoginButton.Dispose(); FacebookLoginButton = null; } if (FriendsCountText != null) { FriendsCountText.Dispose(); FriendsCountText = null; } if (InfoLabel != null) { InfoLabel.Dispose(); InfoLabel = null; } if (InstagramConnectedImage != null) { InstagramConnectedImage.Dispose(); InstagramConnectedImage = null; } if (InstagramLabel != null) { InstagramLabel.Dispose(); InstagramLabel = null; } if (InstaLoginButton != null) { InstaLoginButton.Dispose(); InstaLoginButton = null; } if (MainView != null) { MainView.Dispose(); MainView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (NetworksContainer != null) { NetworksContainer.Dispose(); NetworksContainer = null; } if (PositionLabel != null) { PositionLabel.Dispose(); PositionLabel = null; } if (ProfileImage != null) { ProfileImage.Dispose(); ProfileImage = null; } if (Score != null) { Score.Dispose(); Score = null; } if (ScoreImage != null) { ScoreImage.Dispose(); ScoreImage = null; } if (scrlMainContent != null) { scrlMainContent.Dispose(); scrlMainContent = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TableViewHeight != null) { TableViewHeight.Dispose(); TableViewHeight = null; } if (TwitterConnectedImage != null) { TwitterConnectedImage.Dispose(); TwitterConnectedImage = null; } if (TwitterLabel != null) { TwitterLabel.Dispose(); TwitterLabel = null; } if (TwitterLoginButton != null) { TwitterLoginButton.Dispose(); TwitterLoginButton = null; } if (vMenuTableContainer != null) { vMenuTableContainer.Dispose(); vMenuTableContainer = null; } if (vMenuTableInset != null) { vMenuTableInset.Dispose(); vMenuTableInset = null; } if (vProfileInfoContainer != null) { vProfileInfoContainer.Dispose(); vProfileInfoContainer = null; } }
void ReleaseDesignerOutlets() { if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (CompanyNameLabel != null) { CompanyNameLabel.Dispose(); CompanyNameLabel = null; } if (DetailInfoHorizontalStackView != null) { DetailInfoHorizontalStackView.Dispose(); DetailInfoHorizontalStackView = null; } if (DetailInfoVerticalStackView != null) { DetailInfoVerticalStackView.Dispose(); DetailInfoVerticalStackView = null; } if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (JobTitleLabel != null) { JobTitleLabel.Dispose(); JobTitleLabel = null; } if (MainStackView != null) { MainStackView.Dispose(); MainStackView = null; } if (MapViewContainer != null) { MapViewContainer.Dispose(); MapViewContainer = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } if (ProfilePhotoImageView != null) { ProfilePhotoImageView.Dispose(); ProfilePhotoImageView = null; } if (StateAndPostalLabel != null) { StateAndPostalLabel.Dispose(); StateAndPostalLabel = null; } if (StreetLabel != null) { StreetLabel.Dispose(); StreetLabel = null; } if (_MainStackView != null) { _MainStackView.Dispose(); _MainStackView = null; } if (DetailInfoStackView != null) { DetailInfoStackView.Dispose(); DetailInfoStackView = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } if (GetDirectionsImageView != null) { GetDirectionsImageView.Dispose(); GetDirectionsImageView = null; } if (SendMessageImageView != null) { SendMessageImageView.Dispose(); SendMessageImageView = null; } if (DialNumberImageView != null) { DialNumberImageView.Dispose(); DialNumberImageView = null; } if (SendEmailImageView != null) { SendEmailImageView.Dispose(); SendEmailImageView = null; } }
void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (AddressTextfield != null) { AddressTextfield.Dispose(); AddressTextfield = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (CityTextfield != null) { CityTextfield.Dispose(); CityTextfield = null; } if (LatLabel != null) { LatLabel.Dispose(); LatLabel = null; } if (LatTextfield != null) { LatTextfield.Dispose(); LatTextfield = null; } if (LongLabel != null) { LongLabel.Dispose(); LongLabel = null; } if (LongTextfield != null) { LongTextfield.Dispose(); LongTextfield = null; } if (OkButton != null) { OkButton.Dispose(); OkButton = null; } if (PostalCodeLabel != null) { PostalCodeLabel.Dispose(); PostalCodeLabel = null; } if (PostalCodeTexfield != null) { PostalCodeTexfield.Dispose(); PostalCodeTexfield = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (WifiNameLabel != null) { WifiNameLabel.Dispose(); WifiNameLabel = null; } if (WifiNameTextfield != null) { WifiNameTextfield.Dispose(); WifiNameTextfield = null; } }
void ReleaseDesignerOutlets() { if (NextButton != null) { NextButton.Dispose(); NextButton = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (CityTextField != null) { CityTextField.Dispose(); CityTextField = null; } if (ComissionLabel != null) { ComissionLabel.Dispose(); ComissionLabel = null; } if (ComissionTextField != null) { ComissionTextField.Dispose(); ComissionTextField = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (DateTextField != null) { DateTextField.Dispose(); DateTextField = null; } if (DegreeOfDifficultyLabel != null) { DegreeOfDifficultyLabel.Dispose(); DegreeOfDifficultyLabel = null; } if (DegreeOfDifficultyTextField != null) { DegreeOfDifficultyTextField.Dispose(); DegreeOfDifficultyTextField = null; } if (FeedDistanceLabel != null) { FeedDistanceLabel.Dispose(); FeedDistanceLabel = null; } if (FeedDistanceValueLabel != null) { FeedDistanceValueLabel.Dispose(); FeedDistanceValueLabel = null; } if (FeedDurationValueLabel != null) { FeedDurationValueLabel.Dispose(); FeedDurationValueLabel = null; } if (TotalDistanceLabel != null) { TotalDistanceLabel.Dispose(); TotalDistanceLabel = null; } if (TotalDistanceValueLabel != null) { TotalDistanceValueLabel.Dispose(); TotalDistanceValueLabel = null; } if (TotalPriceLabel != null) { TotalPriceLabel.Dispose(); TotalPriceLabel = null; } if (TotalPriceValueLabel != null) { TotalPriceValueLabel.Dispose(); TotalPriceValueLabel = null; } }
void ReleaseDesignerOutlets() { if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } if (BgImageView != null) { BgImageView.Dispose(); BgImageView = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (ContentView_LayoutCenterY != null) { ContentView_LayoutCenterY.Dispose(); ContentView_LayoutCenterY = null; } if (DayLabel != null) { DayLabel.Dispose(); DayLabel = null; } if (HumidityLabel != null) { HumidityLabel.Dispose(); HumidityLabel = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (MonthLabel != null) { MonthLabel.Dispose(); MonthLabel = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TempLabel != null) { TempLabel.Dispose(); TempLabel = null; } if (WindLabel != null) { WindLabel.Dispose(); WindLabel = null; } }