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

Declaratively specify UI widgets instead of needing to call Gui.add_hud_widget()/Gui.add_global_widget() #362

Open
Ruin0x11 opened this issue Sep 16, 2021 · 0 comments
Labels
data Concerns adding new content design Concerns the architecture of the engine refactoring This requires refactoring existing code

Comments

@Ruin0x11
Copy link
Owner

In general, I find declarative to be better than imperative. The "tag" for each widget can just become its _id.

However, resource consumption also needs to be taken into account. There shouldn't be a need to keep around widgets in memory that are not visible on the screen.

@Ruin0x11 Ruin0x11 added design Concerns the architecture of the engine data Concerns adding new content refactoring This requires refactoring existing code labels Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Concerns adding new content design Concerns the architecture of the engine refactoring This requires refactoring existing code
Projects
None yet
Development

No branches or pull requests

1 participant