C# Class Nez.UI.Dialog

Displays a dialog, which is a modal window containing a content table with a button table underneath it. Methods are provided to add a label to the content table and buttons to the button table, but any widgets can be added. When a button is clicked, {@link #result(Object)} is called and the dialog is removed from the stage.
Inheritance: Window
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
Dialog ( string title, Skin skin, string styleName = null ) : System
Dialog ( string title, WindowStyle windowStyle ) : System
addButton ( Button button ) : Button
addButton ( string text, TextButtonStyle buttonStyle ) : Button
addText ( Label label ) : Dialog

Adds the given Label to the content table

addText ( string text ) : Dialog

Adds a label to the content table

getButtonTable ( ) : Table
getContentTable ( ) : Table
hide ( ) : void

Hides the dialog

show ( Stage stage ) : Dialog

{@link #pack() Packs} the dialog and adds it to the stage

Private Methods

Method Description
initialize ( ) : void

Method Details

Dialog() public method

public Dialog ( string title, Skin skin, string styleName = null ) : System
title string
skin Skin
styleName string
return System

Dialog() public method

public Dialog ( string title, WindowStyle windowStyle ) : System
title string
windowStyle WindowStyle
return System

addButton() public method

public addButton ( Button button ) : Button
button Button
return Button

addButton() public method

public addButton ( string text, TextButtonStyle buttonStyle ) : Button
text string
buttonStyle TextButtonStyle
return Button

addText() public method

Adds the given Label to the content table
public addText ( Label label ) : Dialog
label Label Label.
return Dialog

addText() public method

Adds a label to the content table
public addText ( string text ) : Dialog
text string Text.
return Dialog

getButtonTable() public method

public getButtonTable ( ) : Table
return Table

getContentTable() public method

public getContentTable ( ) : Table
return Table

hide() public method

Hides the dialog
public hide ( ) : void
return void

show() public method

{@link #pack() Packs} the dialog and adds it to the stage
public show ( Stage stage ) : Dialog
stage Stage Stage.
return Dialog