You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, my first post so, I want to thank people behind this library, it is both great Lib on its own and was great help in learning Rust in general so far.
Now lets get to business. Since I plan to stick with UI where it is working so far for mostly static UI in my first project, I am looking to prototype some more complex UIs.
I have some possible approaches in mind (mostly involving some semi retained UI layer on top), but would like to ask people's opinion on best approach or whether I didn't overlook something.
Simplified project:
I have arbitrarily nested containers - containers with same parents are siblings.
I can move by keyboard arrows over containers at same level and go in with Enter, or out with Backspace.
Now I want to be able to, depending on which container is currently active and more importantly know, for active container, sibling index within container, and number of siblings, which each siblings use as input property to perform some custom rendering and/or custom composition of components within it (lets say for sake of simplicity to have every third container's background red).
What would be reasonable approaches to achieve this with Egui?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, my first post so, I want to thank people behind this library, it is both great Lib on its own and was great help in learning Rust in general so far.
Now lets get to business. Since I plan to stick with UI where it is working so far for mostly static UI in my first project, I am looking to prototype some more complex UIs.
I have some possible approaches in mind (mostly involving some semi retained UI layer on top), but would like to ask people's opinion on best approach or whether I didn't overlook something.
Simplified project:
I have arbitrarily nested containers - containers with same parents are siblings.
I can move by keyboard arrows over containers at same level and go in with Enter, or out with Backspace.
Now I want to be able to, depending on which container is currently active and more importantly know, for active container, sibling index within container, and number of siblings, which each siblings use as input property to perform some custom rendering and/or custom composition of components within it (lets say for sake of simplicity to have every third container's background red).
What would be reasonable approaches to achieve this with Egui?
Beta Was this translation helpful? Give feedback.
All reactions