public AddText ( string text ) : |
||
text | string | |
return |
public void InitializeToScreen(TowerScreen screen) { _atomNameText = screen.AddText(string.Empty); _atomValenceText = screen.AddText(string.Empty); _atomElectronegativityText = screen.AddText(string.Empty); _atomDescription = screen.AddText(string.Empty); _background = screen.AddSprite("Content/message-panel.png"); _atomNameText.Y = 70; _atomValenceText.Y = _atomNameText.Y; _atomElectronegativityText.Y = _atomNameText.Y; _atomDescription.Y = _atomNameText.Y - 20; _atomNameText.Scale = 18; _atomValenceText.Scale = 18; _atomElectronegativityText.Scale = 18; _atomDescription.Scale = 18; _atomNameText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; _atomNameText.X = -175; _atomDescription.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; _atomDescription.X = _atomNameText.X; _atomDescription.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; _atomElectronegativityText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Right; _atomElectronegativityText.X = (this._background.Texture.Width / 2) - 25; // Climb on top of everything this._background.Z = 1; this._atomDescription.Z = 2; this._atomElectronegativityText.Z = 2; this._atomNameText.Z = 2; this._atomValenceText.Z = 2; this.Hide(); }