C# 클래스 Gonzo.Dialogs.UIDialog

상속: Gonzo.Elements.UIElement
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse

공개 프로퍼티들

프로퍼티 타입 설명
IsDrawn bool

보호된 프로퍼티들

프로퍼티 타입 설명
m_DoDrag bool
m_DragOffset Microsoft.Xna.Framework.Vector2
m_DragTolerance int
m_IsDraggable bool

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CloseButton_OnButtonClicked ( object Sender ) : void

메소드 상세

CenterAround() 공개 메소드

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.
리턴 void

Draw() 공개 메소드

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

IsMouseOver() 공개 메소드

public IsMouseOver ( InputHelper Input ) : bool
Input InputHelper
리턴 bool

MouseEvents() 공개 메소드

public MouseEvents ( InputHelper Helper ) : void
Helper InputHelper
리턴 void

SetSize() 공개 메소드

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.
리턴 void

UIDialog() 공개 메소드

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?
리턴 Files

Update() 공개 메소드

public Update ( InputHelper Helper, GameTime GTime ) : void
Helper InputHelper
GTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

IsDrawn 공개적으로 프로퍼티

If this is set to false, it means the dialog was closed by the user.
public bool IsDrawn
리턴 bool

m_DoDrag 보호되어 있는 프로퍼티

protected bool m_DoDrag
리턴 bool

m_DragOffset 보호되어 있는 프로퍼티

protected Vector2,Microsoft.Xna.Framework m_DragOffset
리턴 Microsoft.Xna.Framework.Vector2

m_DragTolerance 보호되어 있는 프로퍼티

protected int m_DragTolerance
리턴 int

m_IsDraggable 보호되어 있는 프로퍼티

protected bool m_IsDraggable
리턴 bool