kwilcz/Antario

Making a proper tab control?

Closed this issue · 6 comments

How would I make a proper tab control?
What I want to do is take WindowX / TabAmount for the area, but have it create TabAmount of tabs.
How do I go about this?

Will add in a future.

Im not really familar with the Menu Framework, but how would you update the content of the child when switching tabs. I did my tabs like in imgui, where i change the value of an integer and depending on what the integer value is i draw diffrent stuff.

you just call Render for the tab children. If you set it as some kind of bool, you need to add some kind of TabID for your sections which will then render & gather info only if the TabID is active.

bump

you already got your answer?

Done with 3854c9e