 |
Jypeli
9
The simple game programming library
|
Siirry tämän tiedoston dokumentaatioon.
55 for (
int i = 0; i <
Content.ItemCount; i++ )
69 for (
int i = 0; i <
Content.ItemCount; i++ )
83 for (
int i = 0; i <
Content.ItemCount; i++ )
95 StringBuilder result =
new StringBuilder();
97 foreach ( var item
in Items )
99 result.Append( item ).Append(
"\n" );
102 return result.RemoveLast( 2 ).ToString();
107 throw new InvalidOperationException(
"You must set the list width before assigning text!" );
110 Vector2 textDims = xnaFont.MeasureString( value );
112 string wrapped =
Font.
WrapText( value, softWidth, Width );
115 this.
Bind( newList );
135 SizingByLayout =
false;
140 return new Label( item )
142 HorizontalSizing =
Sizing.Expanding,
double CharacterWidth
Merkin leveys.
static readonly Color Black
Musta.
static readonly Font Default
Oletusfontti.
Järjestetty lista merkkijonoja.
static readonly Color Transparent
Läpinäkyvä väri.
HorizontalAlignment
Asemointi vaakasuunnassa.
string WrapText(string text, double softLineWidth, double hardLineWidth)
Rivittää tekstin.
Sizing
Olion koon asettaminen asettelijan sisällä.