Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: EngineService
Wraps FXGL's DialogService, the engine service that shows modal dialog scenes from inside a game (message, confirmation, choice, input, error, progress). Reached at runtime via fxgl.getDialogService (chunk 6); obtain a wrapper via adopt. Each show method returns immediately; the dialog closes when the user responds or when the returned DialogBox (for progress) is closed by the caller.
DialogService (Ajo = null)
Creates a DialogService wrapper. Empty by default (populated later via adopt); the (Ajo) form wraps an existing instance from fxgl.getDialogService.
Ajo is an optional AussomJavaObject around a DialogService.adopt (object Ajo)
Wraps an existing DialogService AussomJavaObject.
Ajo is an AussomJavaObject around a DialogService.A new wrapper.showMessageBox (string Message, callback Cb = null)
Shows a simple message box. The optional callback fires after the user dismisses the box.
Message is the body text.Cb is an optional callback that runs after dismiss.this objectshowConfirmationBox (string Message, callback Cb)
Shows a yes/no confirmation box. The callback receives a bool.
Message is the body text.Cb is a callback taking a bool (true on yes, false on no).this objectshowInputBox (string Message, callback Cb)
Shows a text input box. The callback receives the entered string.
Message is the prompt text.Cb is a callback taking the entered string.this objectshowErrorBox (string Message, callback Cb = null)
Shows an error box with the given message.
Message is the error text.Cb is an optional callback that runs after dismiss.this objectshowProgressBox (string Message)
Shows a progress box (indeterminate) until the returned DialogBox is closed.
Message is the progress message.A DialogBox wrapper; call close() when the work is done._noop ()
showInputBoxFiltered (string Message, callback Filter, callback Cb)
Shows an input box with a predicate filter. The filter callback receives the candidate string and returns true to accept it. The result callback receives the final accepted string.
Message is the prompt text.Filter is a callback (string) -> bool.Cb is a callback (string) -> void.this objectshowInputBoxWithCancel (string Message, callback Filter, callback Cb)
Shows an input box with a Cancel button alongside OK. The callback receives the entered string or null when cancelled.
Message is the prompt text.Filter is a callback (string) -> bool.Cb is a callback (string) -> void.this objectshowChoiceBox (string Message, list Options, callback Cb)
Shows a choice box with the supplied options. The callback receives the selected option.
Message is the prompt text.Options is a list of selectable options.Cb is a callback (option) -> void.this objectshowErrorBoxThrowable (object ThrowableObj)
Shows a Throwable-based error box.
ThrowableObj is an AussomJavaObject around a Throwable.this objectshowBox (string Message, object ContentObj, list Buttons)
Shows a generic box with arbitrary content. The buttons list contains JavaFX Button AJOs that close the dialog when clicked.
Message is the title text.ContentObj is an AussomJavaObject around the content Node.Buttons is a list of Button AussomJavaObjects.this objectshowProgressBoxBound (string Message, object ProgressObj, callback Cb)
Shows a progress box bound to the given ReadOnlyDoubleProperty. The supplied callback fires when progress reaches 1.0 and the box auto-dismisses.
Message is the progress message.ProgressObj is an AussomJavaObject around a ReadOnlyDoubleProperty.Cb is a callback () -> void fired on completion.this objectshowChoiceBoxVarargs (string Message, callback Cb, FirstOption, list RestOptions)
Varargs-style showChoiceBox: pass the first option and an Aussom list of additional options. FXGL builds the choice dialog with the combined option list and fires the callback with the selected value.
Message is the prompt text.Cb is a callback (option) -> void.FirstOption is the first option (any value).RestOptions is a list of the remaining options.this objectshowChoiceBoxEnum (string Message, string EnumClassName, callback Cb)
Shows a choice box for every value of the named Java enum class. Useful when the choices are an existing enum.
Message is the prompt text.EnumClassName is the fully qualified enum class name.Cb is a callback (option) -> void.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.