C# Class Gonzo.Dialogs.UIDialog

Inheritance: Gonzo.Elements.UIElement
Datei anzeigen Open project: Afr0Games/Project-Dollhouse

Public Properties

Property Type Description
IsDrawn bool

Protected Properties

Property Type Description
m_DoDrag bool
m_DragOffset Microsoft.Xna.Framework.Vector2
m_DragTolerance int
m_IsDraggable bool

Public Methods

Method 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

Method Description
CloseButton_OnButtonClicked ( object Sender ) : void

Method Details

CenterAround() public method

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.
return void

Draw() public method

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

IsMouseOver() public method

public IsMouseOver ( InputHelper Input ) : bool
Input InputHelper
return bool

MouseEvents() public method

public MouseEvents ( InputHelper Helper ) : void
Helper InputHelper
return void

SetSize() public method

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.
return void

UIDialog() public method

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?
return Files

Update() public method

public Update ( InputHelper Helper, GameTime GTime ) : void
Helper InputHelper
GTime Microsoft.Xna.Framework.GameTime
return 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
return bool

m_DoDrag protected_oe property

protected bool m_DoDrag
return bool

m_DragOffset protected_oe property

protected Vector2,Microsoft.Xna.Framework m_DragOffset
return Microsoft.Xna.Framework.Vector2

m_DragTolerance protected_oe property

protected int m_DragTolerance
return int

m_IsDraggable protected_oe property

protected bool m_IsDraggable
return bool