ThatOpen / engine_components

MIT License
328 stars 129 forks source link

Allow disabling the UI for all components #110

Closed danizep closed 9 months ago

danizep commented 1 year ago

Description 📝

While using the FragmentManager and FragmentCacher an unexpected UI appeared when TAB was pressed.

Screenshot 2023-09-14 at 11 06 47

Digging a bit on the code it was possible to understand that UI and listeners are instantiated without actively being requested by the developer.

That said, would be cool to have a way to centrally enable/disable the UI.

Suggested solution 💡

components.ui.enabled = false could centrally specify that the UI should be disabled

Alternative ⛕

No response

Additional context ☝️

No response

Validations ✅

VictorTrumpel commented 1 year ago

Good idea, i think!

javiercornejo commented 9 months ago

Hello @danizep could you solve this issue?

HoyosJuan commented 9 months ago

Hey! This was already implemented in components.uiEnabled. If set to false, no UI at all will be created, so all of them need to be created by the user.

Closing the issue 👍