C# 클래스 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.
상속: Window
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
initialize ( ) : void

메소드 상세

Dialog() 공개 메소드

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

Dialog() 공개 메소드

public Dialog ( string title, WindowStyle windowStyle ) : System
title string
windowStyle WindowStyle
리턴 System

addButton() 공개 메소드

public addButton ( Button button ) : Button
button Button
리턴 Button

addButton() 공개 메소드

public addButton ( string text, TextButtonStyle buttonStyle ) : Button
text string
buttonStyle TextButtonStyle
리턴 Button

addText() 공개 메소드

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

addText() 공개 메소드

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

getButtonTable() 공개 메소드

public getButtonTable ( ) : Table
리턴 Table

getContentTable() 공개 메소드

public getContentTable ( ) : Table
리턴 Table

hide() 공개 메소드

Hides the dialog
public hide ( ) : void
리턴 void

show() 공개 메소드

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