C# Класс FontEffectsLib.SpriteTypes.Panel

Create an expandable / collapsable panel.
Наследование: SlidingSprite, IStateful
Показать файл Открыть проект

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

Свойство Тип Описание
_minScale Vector2
_speed Vector2
_state PanelState

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

Метод Описание
Collapse ( ) : bool

Collapse the panel. Panel must be in Open or Expanding states.

Expand ( ) : bool

Expand the panel. The panel must be in Collapsed or Collapsing state.

Panel ( GraphicsDevice graphics, Vector2 size, Vector2 speed, Vector2 position, Color color ) : System

Creates an expandable/collapsable panel

Update ( GameTime gameTime ) : void

Standard XNA Game loop Update method.

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

Метод Описание
switchState ( PanelState panelState ) : void

Switches the current state of the panel, and fires StateChanged event, if there are any subscribers.

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

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

Collapse the panel. Panel must be in Open or Expanding states.
public Collapse ( ) : bool
Результат bool

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

Expand the panel. The panel must be in Collapsed or Collapsing state.
public Expand ( ) : bool
Результат bool

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

Creates an expandable/collapsable panel
public Panel ( GraphicsDevice graphics, Vector2 size, Vector2 speed, Vector2 position, Color color ) : System
graphics GraphicsDevice Graphics device
size Vector2 Size of panel when fully expanded
speed Vector2 Speed of expansion/collapse
position Vector2 Position of center of the panel. Panel expands/collapses from/to this point
color Color Color of the panel
Результат System

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

Standard XNA Game loop Update method.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime GameTime object for current game.
Результат void

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

Switches the current state of the panel, and fires StateChanged event, if there are any subscribers.
protected switchState ( PanelState panelState ) : void
panelState PanelState New state for the current panel.
Результат void

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

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

The smallest scale value to scale this panel to in Collapsed state. Default is Vector2.One
protected Vector2 _minScale
Результат Vector2

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

Speed with which to expand/collapse the panel.
protected Vector2 _speed
Результат Vector2

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

Panel's current state.
protected PanelState _state
Результат PanelState