C# Class Gonzo.Dialogs.UIDialog

Inheritance: Gonzo.Elements.UIElement
Afficher le fichier Open project: Afr0Games/Project-Dollhouse

Méthodes publiques

Свойство Type Description
IsDrawn bool

Protected Properties

Свойство Type Description
m_DoDrag bool
m_DragOffset Microsoft.Xna.Framework.Vector2
m_DragTolerance int
m_IsDraggable bool

Méthodes publiques

Méthode Description
CenterAround ( UIElement Element, int OffsetX, int OffsetY ) : void

Centers this dialog around a UIElement (UIImage, UILabel or similar).

Draw ( SpriteBatch SBatch, float LayerDepth ) : void
IsMouseOver ( InputHelper Input ) : bool
MouseEvents ( InputHelper Helper ) : void
SetSize ( int Width, int Height ) : void

Sets the size of this UIDialog instance.

UIDialog ( UIScreen Screen, Vector2 Pos, bool IsTall, bool IsDraggable, bool HasExitButton ) : Files

Constructs a new UIDialog instance.

Update ( InputHelper Helper, GameTime GTime ) : void

Private Methods

Méthode Description
CloseButton_OnButtonClicked ( object Sender ) : void

Method Details

CenterAround() public méthode

Centers this dialog around a UIElement (UIImage, UILabel or similar).
public CenterAround ( UIElement Element, int OffsetX, int OffsetY ) : void
Element Gonzo.Elements.UIElement The element to center around.
OffsetX int Offset on the X-axis when centering.
OffsetY int Offset on the Y-axis when centering.
Résultat void

Draw() public méthode

public Draw ( SpriteBatch SBatch, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
LayerDepth float
Résultat void

IsMouseOver() public méthode

public IsMouseOver ( InputHelper Input ) : bool
Input InputHelper
Résultat bool

MouseEvents() public méthode

public MouseEvents ( InputHelper Helper ) : void
Helper InputHelper
Résultat void

SetSize() public méthode

Sets the size of this UIDialog instance.
public SetSize ( int Width, int Height ) : void
Width int The width to set it to.
Height int The height to set it to.
Résultat void

UIDialog() public méthode

Constructs a new UIDialog instance.
public UIDialog ( UIScreen Screen, Vector2 Pos, bool IsTall, bool IsDraggable, bool HasExitButton ) : Files
Screen UIScreen A UIScreen instance.
Pos Microsoft.Xna.Framework.Vector2 A Vector2 instance specifying the position of this dialog.
IsTall bool Will this dialog use a tall background template?
IsDraggable bool Is this dialog draggable?
HasExitButton bool Does this dialog have an exit button?
Résultat Files

Update() public méthode

public Update ( InputHelper Helper, GameTime GTime ) : void
Helper InputHelper
GTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

IsDrawn public_oe property

If this is set to false, it means the dialog was closed by the user.
public bool IsDrawn
Résultat bool

m_DoDrag protected_oe property

protected bool m_DoDrag
Résultat bool

m_DragOffset protected_oe property

protected Vector2,Microsoft.Xna.Framework m_DragOffset
Résultat Microsoft.Xna.Framework.Vector2

m_DragTolerance protected_oe property

protected int m_DragTolerance
Résultat int

m_IsDraggable protected_oe property

protected bool m_IsDraggable
Résultat bool