Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we customize the UI elements created by the UIFactoryService & the DialogService #1326

Open
AlmasB opened this issue Dec 28, 2023 Discussed in #1317 · 0 comments
Open

Comments

@AlmasB
Copy link
Owner

AlmasB commented Dec 28, 2023

Discussed in #1317

Originally posted by DeathPhoenix22 November 5, 2023
Hi all,

I'd like to know how to customize these services. If I try to replace them, I get an error saying that these services names are already loaded. If I try to extend them, they're not Open, so I can't. If I add a custom service that fullfill the UI Services, FXGL will not use them and always rely on those that he registered.

In short, I'm currently unable to customize the UI elements generated by these Factories. Note that FXML CSS customization isn't flexible enough to perform the changes that I need to do.

The only solution I have for now is to fully rewrite a side UI Factory system and avoid calling default Scene methods such as "fireExitToMainMenu" which will automatically prompt a default "confirmationDialog" that I can't customize, since the factories are not open.

I'm I missing something?
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant