32 using System.ComponentModel;
33 using System.Collections.Generic;
34 using Microsoft.Xna.Framework.Graphics;
39 [EditorBrowsable(EditorBrowsableState.Never)]
68 string _scoreFormat =
"{0}";
69 string _infMarker =
"-";
80 for (
int i = 0; i < Content.ItemCount; i++ )
82 Content[i].Position.Font = value;
83 Content[i].Name.Font = value;
84 Content[i].Score.Font = value;
92 public Color PositionColor
94 get {
return _posColor; }
98 for (
int i = 0; i < Content.ItemCount; i++ )
99 Content[i].Position.TextColor = value;
106 public Color NameColor
108 get {
return _nameColor; }
112 for (
int i = 0; i < Content.ItemCount; i++ )
113 Content[i].Name.TextColor = value;
120 public Color ScoreColor
122 get {
return _scoreColor; }
126 for (
int i = 0; i < Content.ItemCount; i++ )
127 Content[i].Score.TextColor = value;
134 public string ScoreFormat
136 get {
return _scoreFormat; }
139 _scoreFormat = value;
147 public string InfinityMarker
149 get {
return _infMarker; }
174 w.Position.Font =
Font;
175 w.Position.TextColor = PositionColor;
176 w.Position.Text = String.Format(
"{0}.", item.
Position );
178 w.Name.TextColor = NameColor;
179 w.Name.Text = item.
Name;
181 w.Score.TextColor = ScoreColor;
182 w.Score.Text =
double.IsInfinity( item.
Score ) ? InfinityMarker : String.Format( ScoreFormat, item.
Score );
HorizontalAlignment
Asemointi vaakasuunnassa.
static readonly Color Black
Musta.
static readonly Color Red
Punainen.
Sizing
Olion koon asettaminen asettelijan sisällä.
Asettelee widgetit riviin vaakasuunnassa.
static readonly Color Transparent
Läpinäkyvä väri.
Parhaiden pisteiden lista.
static readonly Font Default
OletusFontti.
static readonly Color Blue
Sininen.