void ReleaseDesignerOutlets() { if (Button != null) { Button.Dispose(); Button = null; } if (PositionLabel != null) { PositionLabel.Dispose(); PositionLabel = null; } if (RandomButton != null) { RandomButton.Dispose(); RandomButton = null; } if (ResetButton != null) { ResetButton.Dispose(); ResetButton = null; } }
private void RefreshAll_Click(object sender, EventArgs e) { AlphabetShow.ResetText(); StringInput.Clear(); PositionLabel.ResetText(); MinLabel.ResetText(); MinInput.Clear(); ApplyButton.Enabled = true; }
protected void update_labels() { AxisAlignedBox2f localBounds = BoxModel.LocalBounds(this); foreach (var pair in Labels) { float t = (float)(pair.Key); PositionLabel labelinfo = pair.Value; if (labelinfo.go == null) { BoxPosition boxPos = BoxPosition.CenterTop; if (labelinfo.position == LabelPositionType.CenteredAbove) { boxPos = BoxPosition.CenterBottom; } else if (labelinfo.position == LabelPositionType.BelowLeftAligned) { boxPos = BoxPosition.TopLeft; } else if (labelinfo.position == LabelPositionType.BelowRightAligned) { boxPos = BoxPosition.TopRight; } labelinfo.go = GameObjectFactory.CreateTextMeshGO("sliderlabel_" + labelinfo.text, labelinfo.text, labelinfo.color, LabelTextHeight, boxPos); AppendNewGO(labelinfo.go, rootGO, false); } if (labelinfo.position == LabelPositionType.CenteredBelow || labelinfo.position == LabelPositionType.BelowLeftAligned || labelinfo.position == LabelPositionType.BelowRightAligned) { BoxModel.MoveTo(labelinfo.go, localBounds.BottomLeft, -Height * 0.01f); } else if (labelinfo.position == LabelPositionType.CenteredAbove) { BoxModel.MoveTo(labelinfo.go, localBounds.TopLeft, -Height * 0.01f); } else { throw new NotSupportedException("HUDSliderBase.update_labels : unhandled LabelPositionType"); } BoxModel.Translate(labelinfo.go, new Vector2f(t * Width, 0) + labelinfo.offset); } }
public virtual void AddLabel(double atValue, string text, Colorf color, LabelPositionType position, Vector2f offset) { PositionLabel label = new PositionLabel(); label.text = text; label.color = color; label.position = position; label.offset = offset; if (Labels.ContainsKey(atValue)) { RemoveGO((fGameObject)Labels[atValue].go); Labels[atValue].go.Destroy(); } Labels[atValue] = label; }
void ReleaseDesignerOutlets() { if (ActivityButton2 != null) { ActivityButton2.Dispose(); ActivityButton2 = null; } if (ButtonView2 != null) { ButtonView2.Dispose(); ButtonView2 = null; } if (ButtonView1 != null) { ButtonView1.Dispose(); ButtonView1 = null; } if (AdoptedView != null) { AdoptedView.Dispose(); AdoptedView = null; } if (ActivityButton != null) { ActivityButton.Dispose(); ActivityButton = null; } if (AdoptButton != null) { AdoptButton.Dispose(); AdoptButton = null; } if (AgeValueLabel != null) { AgeValueLabel.Dispose(); AgeValueLabel = null; } if (ImageView1 != null) { ImageView1.Dispose(); ImageView1 = null; } if (ImageView2 != null) { ImageView2.Dispose(); ImageView2 = null; } if (ImageView3 != null) { ImageView3.Dispose(); ImageView3 = null; } if (ImageView4 != null) { ImageView4.Dispose(); ImageView4 = null; } if (ImageView5 != null) { ImageView5.Dispose(); ImageView5 = null; } if (ImageView6 != null) { ImageView6.Dispose(); ImageView6 = null; } if (LastSignalLabel != null) { LastSignalLabel.Dispose(); LastSignalLabel = null; } if (MainImageView != null) { MainImageView.Dispose(); MainImageView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (OwnerLabel != null) { OwnerLabel.Dispose(); OwnerLabel = null; } if (PositionLabel != null) { PositionLabel.Dispose(); PositionLabel = null; } if (TypeLabel != null) { TypeLabel.Dispose(); TypeLabel = 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; } }
private void RefreshAll_Click(object sender, EventArgs e) { AlphabetShow.ResetText(); StringInput.Clear(); PositionLabel.ResetText(); }
void ReleaseDesignerOutlets() { if (actionSheetDatePicker != null) { actionSheetDatePicker.Dispose(); actionSheetDatePicker = null; } if (ChangeMapTypeButton != null) { ChangeMapTypeButton.Dispose(); ChangeMapTypeButton = null; } if (FocusOnSeekiosButton != null) { FocusOnSeekiosButton.Dispose(); FocusOnSeekiosButton = null; } if (LoadingIndicator != null) { LoadingIndicator.Dispose(); LoadingIndicator = null; } if (LowerDateLabel != null) { LowerDateLabel.Dispose(); LowerDateLabel = null; } if (MapViewControl != null) { MapViewControl.Dispose(); MapViewControl = null; } if (MapZoomInButton != null) { MapZoomInButton.Dispose(); MapZoomInButton = null; } if (MapZoomOutButton != null) { MapZoomOutButton.Dispose(); MapZoomOutButton = null; } if (NextPositionButton != null) { NextPositionButton.Dispose(); NextPositionButton = null; } if (OldDateLabel != null) { OldDateLabel.Dispose(); OldDateLabel = null; } if (PositionLabel != null) { PositionLabel.Dispose(); PositionLabel = null; } if (PreviousPositionButton != null) { PreviousPositionButton.Dispose(); PreviousPositionButton = null; } if (RecentDateLabel != null) { RecentDateLabel.Dispose(); RecentDateLabel = null; } if (Slider != null) { Slider.Dispose(); Slider = null; } if (UpperDateLabel != null) { UpperDateLabel.Dispose(); UpperDateLabel = null; } }