C# Класс FontEffectsLib.FontTypes.ArcadeFont

An arcade-style font which rapidly cycles through colors.
Наследование: ShadowFont
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_colorCyclesPerSecond float
currentColor int

Открытые методы

Метод Описание
ArcadeFont ( SpriteFont font, Vector2 position ) : System

Create a new instance of ArcadeFont.

ArcadeFont ( SpriteFont font, Vector2 position, String text, float colorChangeDelay ) : System

Create a new instance of ArcadeFont.

Update ( GameTime gameTime ) : void

Update this ArcadeFont.

Описание методов

ArcadeFont() публичный Метод

Create a new instance of ArcadeFont.
public ArcadeFont ( SpriteFont font, Vector2 position ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont The font to render.
position Vector2 The position of the font.
Результат System

ArcadeFont() публичный Метод

Create a new instance of ArcadeFont.
public ArcadeFont ( SpriteFont font, Vector2 position, String text, float colorChangeDelay ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont The font to render.
position Vector2 The position of the font.
text String The text to display.
colorChangeDelay float The number of times to cycle through in one second.
Результат System

Update() публичный Метод

Update this ArcadeFont.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current , representing the time elapsed over the course of the game.
Результат void

Описание свойств

_colorCyclesPerSecond защищенное свойство

The number of times to cycle through FontColors in one second.
protected float _colorCyclesPerSecond
Результат float

currentColor защищенное свойство

The index of the current color in FontColors.
protected int currentColor
Результат int