C# Класс FarseerPhysics.Samples.ScreenSystem.MenuButton

Helper class represents a single entry in a MenuScreen. By default this just draws the entry text string, but it can be customized to display menu entries in different ways. This also provides an event that will be raised when the menu entry is selected.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Collide ( Vector2 position ) : void
Draw ( ) : void

Draws the menu entry. This can be overridden to customize the appearance.

MenuButton ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, bool flip, Vector2 position, GameScreen screen ) : System

Constructs a new menu entry with the specified text.

Update ( GameTime gameTime ) : void

Updates the menu entry.

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

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

public Collide ( Vector2 position ) : void
position Vector2
Результат void

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

Draws the menu entry. This can be overridden to customize the appearance.
public Draw ( ) : void
Результат void

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

Constructs a new menu entry with the specified text.
public MenuButton ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, bool flip, Vector2 position, GameScreen screen ) : System
sprite Microsoft.Xna.Framework.Graphics.Texture2D
flip bool
position Vector2
screen GameScreen
Результат System

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

Updates the menu entry.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void