C# Класс MonoGameUi.Transition

Basisklasse für Animationstransitions von Controls.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Clone ( Control control ) : Transition

Fertigt eine Kopie dieser Transition an, ersetzt aber das Zielcontrol.

Linear ( float position ) : float

Lineare Bewegung

Qubic ( float position ) : float

Quadratische Bewegung

Transition ( Control control, float>.Func curve, System.TimeSpan duration ) : System

Erstellt eine neue Transition für das angegebene Control.

Transition ( Control control, float>.Func curve, System.TimeSpan duration, System.TimeSpan delay ) : System

Erstellt eine neue Transition für das angegebene Control.

Update ( GameTime gameTime ) : bool

Update-Methode für die Animation.

Защищенные методы

Метод Описание
ApplyValue ( Control control, float value ) : void

Wendet die Transition auf das Steuerelement an.

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

ApplyValue() защищенный абстрактный Метод

Wendet die Transition auf das Steuerelement an.
protected abstract ApplyValue ( Control control, float value ) : void
control Control Zielcontrol der Transition.
value float Wert im zeitlichen Ablauf der Transition.
Результат void

Clone() публичный абстрактный Метод

Fertigt eine Kopie dieser Transition an, ersetzt aber das Zielcontrol.
public abstract Clone ( Control control ) : Transition
control Control Das neue Zielcontrol.
Результат Transition

Linear() публичный статический Метод

Lineare Bewegung
public static Linear ( float position ) : float
position float Verlaufsposition im Wertebereich 0 bis 1
Результат float

Qubic() публичный статический Метод

Quadratische Bewegung
public static Qubic ( float position ) : float
position float Verlaufsposition im Wertebereich 0 bis 1
Результат float

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

Erstellt eine neue Transition für das angegebene Control.
public Transition ( Control control, float>.Func curve, System.TimeSpan duration ) : System
control Control Zielcontrol.
curve float>.Func Bewegungskurve.
duration System.TimeSpan Animationslänge.
Результат System

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

Erstellt eine neue Transition für das angegebene Control.
public Transition ( Control control, float>.Func curve, System.TimeSpan duration, System.TimeSpan delay ) : System
control Control Zielcontrol.
curve float>.Func Bewegungskurve.
duration System.TimeSpan Animationslänge.
delay System.TimeSpan Wartezeit bis zum Start der Animation.
Результат System

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

Update-Methode für die Animation.
public Update ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
Результат bool