C# Класс PantheonPrototype.TextBubble

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
bubbleImage Microsoft.Xna.Framework.Graphics.Texture2D
entity Entity
position Vector2
readyForDeletion bool
text string

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

Метод Описание
Draw ( SpriteBatch context, SpriteFont textFont, Microsoft.Xna.Framework.Graphics.Texture2D textbubbleImage ) : void

Draws the text bubble on the screen at its given position.

Load ( Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : void

Loads the image for use as a textbubble.

TextBubble ( Entity entity, string text ) : System

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.

TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : System

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.

TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
TextBubble ( Vector2 position, string text ) : System

IT CREATES A TEXT BUBBLE. WOAH.

TextBubble ( Vector2 position, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System

IT CREATES A TEXT BUBBLE. WOAH.

Update ( GameTime gameTime, Pantheon gameReference ) : void

This updates the bubble which mostly is sure to set up the structure defining the ending time.

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

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

Draws the text bubble on the screen at its given position.
public Draw ( SpriteBatch context, SpriteFont textFont, Microsoft.Xna.Framework.Graphics.Texture2D textbubbleImage ) : void
context Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch the bubble should be drawn on.
textFont Microsoft.Xna.Framework.Graphics.SpriteFont The font used to draw the text bubbles.
textbubbleImage Microsoft.Xna.Framework.Graphics.Texture2D
Результат void

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

Loads the image for use as a textbubble.
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : void
content Microsoft.Xna.Framework.Content.ContentManager The content manager to load the image from.
imageName string The name of the image to load.
Результат void

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

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.
public TextBubble ( Entity entity, string text ) : System
entity Entity
text string This text to say.
Результат System

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

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.
public TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : System
entity Entity
text string This text to say.
content Microsoft.Xna.Framework.Content.ContentManager
imageName string
Результат System

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

public TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
entity Entity
text string
image Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

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

IT CREATES A TEXT BUBBLE. WOAH.
public TextBubble ( Vector2 position, string text ) : System
position Vector2 The location of the text bubble anchor.
text string This text to say.
Результат System

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

IT CREATES A TEXT BUBBLE. WOAH.
public TextBubble ( Vector2 position, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
position Vector2 The location of the text bubble anchor.
text string This text to say.
image Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

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

This updates the bubble which mostly is sure to set up the structure defining the ending time.
public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
Результат void

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

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

protected Texture2D,Microsoft.Xna.Framework.Graphics bubbleImage
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

protected Entity entity
Результат Entity

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

protected Vector2 position
Результат Vector2

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

protected bool readyForDeletion
Результат bool

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

protected string text
Результат string