Working with multiple views/windows
Posted: 31 Jul 2023, 15:40
Hello!
I'm new to the Noesis GUI and I would like to use it in my game.
What is the best practive to work with multiple windows?
Under window I mean a panel, which have buttons, sliders etc.
For example if I have these windows:
- Main Menu
- Options X
- Credits
- In game panel (Health bar, current weapon's ammo, etc)
- Inventory X
- Map X
Which marked with "X", it could be visible then the "In game panel" is also visible.
How should I handle showing/hiding them? I also want to use databinding.
It should be in only 1 .xaml file, or I can separate them?
But if I separate them, how can I use data binding?
Should I use multiple NoesisView?
What happens if I want to show for example 2 inventory windows at the same time?
In WPF it's simple, I create a new instance with the specific typed window, I pass the context and I call the "Show" method.
Thank you for your help!
I'm new to the Noesis GUI and I would like to use it in my game.
What is the best practive to work with multiple windows?
Under window I mean a panel, which have buttons, sliders etc.
For example if I have these windows:
- Main Menu
- Options X
- Credits
- In game panel (Health bar, current weapon's ammo, etc)
- Inventory X
- Map X
Which marked with "X", it could be visible then the "In game panel" is also visible.
How should I handle showing/hiding them? I also want to use databinding.
It should be in only 1 .xaml file, or I can separate them?
But if I separate them, how can I use data binding?
Should I use multiple NoesisView?
What happens if I want to show for example 2 inventory windows at the same time?
In WPF it's simple, I create a new instance with the specific typed window, I pass the context and I call the "Show" method.
Thank you for your help!