Nez.Portable/UI/Widgets/Dialog.cs
/// <summary>
/// {@link #pack() Packs} the dialog and adds it to the stage
/// </summary>
/// <param name="stage">Stage.</param>
#pack() Packs the dialog and adds it to the stage
#pack () Packs the dialog and adds it to the stage
public Dialog show(Stage stage)
        {
            stage.addElement(this);
            setPosition(
                Mathf.round((stage.getWidth() - getWidth()) / 2),
                Mathf.round((stage.getHeight() - getHeight()) / 2));
            pack();
            return this;
        }
public Dialog show ( Stage stage ) { stage . addElement ( this ) ; setPosition ( Mathf . round ( ( stage . getWidth ( ) - getWidth ( ) ) / 2 ) , Mathf . round ( ( stage . getHeight ( ) - getHeight ( ) ) / 2 ) ) ; pack ( ) ; return this ; }
{@link #pack() Packs} the dialog and adds it to the stage
{ @link #pack () Packs } the dialog and adds it to the stage
stage
Stage
None