Skip to content

DialogService:: add input box with prompt text #927

Open
@AlmasB

Description

@AlmasB

The API should be consistent with DialogService. Something along the lines of:

public abstract void showInputBox(String message, String promptText, Predicate<String> filter, Consumer<String> resultCallback);

and also

public abstract void showInputBox(String message, String promptText, Consumer<String> resultCallback);

The implementation is in FXGLDialogService (com.almasb.fxgl.app.services.FXGLDialogService). At first, this seems to be a reasonably easy issue as we might be able to use an existing implementation and just set promptText.

Metadata

Metadata

Assignees

No one assigned

    Labels

    codefest23-24difficulty:mediumAPI design elements, need time to think throughhelp wantedContributions welcome / high PR acceptance rate

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions