C# Класс Nez.ImageMaskTransition

uses an image to mask out part of the scene scaling it from max-to-min then from min-to-max with rotation. Note that the Texture should be loaded in the main Core.contentManager, not a Scene contentManager. The transition will unload it for you. The Texture should be transparent where it should be masked out and white where it should be masked in.
Наследование: SceneTransition
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
delayBeforeMaskOut float
duration float
maxRotation float
maxScale float
minRotation float
minScale float
rotationEaseType EaseType
scaleEaseType EaseType

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

Метод Описание
ImageMaskTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
ImageMaskTransition ( Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
onBeginTransition ( ) : IEnumerator
preRender ( Graphics graphics ) : void
render ( Graphics graphics ) : void

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

Метод Описание
transitionComplete ( ) : void

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

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

public ImageMaskTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
sceneLoadAction Func
maskTexture Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

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

public ImageMaskTransition ( Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
maskTexture Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

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

public onBeginTransition ( ) : IEnumerator
Результат IEnumerator

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

public preRender ( Graphics graphics ) : void
graphics Graphics
Результат void

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

public render ( Graphics graphics ) : void
graphics Graphics
Результат void

transitionComplete() защищенный Метод

protected transitionComplete ( ) : void
Результат void

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

delayBeforeMaskOut публичное свойство

delay after the mask-in before the mark-out begins
public float delayBeforeMaskOut
Результат float

duration публичное свойство

duration of the transition both in and out
public float duration
Результат float

maxRotation публичное свойство

maximum rotation of the mask animation
public float maxRotation
Результат float

maxScale публичное свойство

maximum scale of the mask
public float maxScale
Результат float

minRotation публичное свойство

minimum rotation of the mask animation
public float minRotation
Результат float

minScale публичное свойство

minimum scale of the mask
public float minScale
Результат float

rotationEaseType публичное свойство

ease equation to use for the rotation animation
public EaseType rotationEaseType
Результат EaseType

scaleEaseType публичное свойство

ease equation to use for the scale animation
public EaseType scaleEaseType
Результат EaseType