C# Class FSO.Client.UI.Controls.UIAlert

UIAlert is a messagebox that can be displayed to the user with several different buttons.
Inheritance: FSO.Client.UI.Controls.UIDialog
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
ButtonMap UIButton>.Dictionary

Public Methods

Method Description
CenterAround ( UIElement element ) : void
CenterAround ( UIElement element, int offsetX, int offsetY ) : void
Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void
RefreshSize ( ) : void
SetIcon ( Microsoft.Xna.Framework.Graphics.Texture2D img, int width, int height ) : void
UIAlert ( UIAlertOptions options ) : System

Protected Methods

Method Description
CalculateMatrix ( ) : void

Private Methods

Method Description
AddButton ( string label, UIAlertButtonType type, bool InternalHandler ) : UIButton

Adds a button to this message box.

ComputeText ( ) : void
btn_OnButtonClick ( UIElement button ) : void

Method Details

CalculateMatrix() protected method

protected CalculateMatrix ( ) : void
return void

CenterAround() public method

public CenterAround ( UIElement element ) : void
element FSO.Client.UI.Framework.UIElement
return void

CenterAround() public method

public CenterAround ( UIElement element, int offsetX, int offsetY ) : void
element FSO.Client.UI.Framework.UIElement
offsetX int
offsetY int
return void

Draw() public method

public Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void
batch FSO.Client.UI.Framework.UISpriteBatch
return void

RefreshSize() public method

public RefreshSize ( ) : void
return void

SetIcon() public method

public SetIcon ( Microsoft.Xna.Framework.Graphics.Texture2D img, int width, int height ) : void
img Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
return void

UIAlert() public method

public UIAlert ( UIAlertOptions options ) : System
options UIAlertOptions
return System

Property Details

ButtonMap public_oe property

Map of buttons attached to this message box.
public Dictionary ButtonMap
return UIButton>.Dictionary