public Draw ( Vector2 offsetPosition, bool highlighted ) : void | ||
offsetPosition | Vector2 | The offset position. |
highlighted | bool | Specifies whether or not this menu entry /// is the highlighted menu entry in the list of menu entries. |
Résultat | void |
public override void Draw(Vector2 offsetPosition, bool highlighted)
{
base.Draw(offsetPosition, highlighted);
for (int i = 0; i <= 10; i++)
{
if (this.scales[i].Value != 0)
{
Drawer.DrawOutlinedString(
FontStatic.Get("defaultFont"),
i.ToString(),
this.positions[i].Value + (this.ignoreOffsetPosition ? Vector2.Zero : offsetPosition),
Color.White,
0f,
this.origins[i],
this.scales[i].Value,
SpriteEffects.None,
this.numberLayerDepth);
}
}
}