kwilcz / Antario

Clean base/cheat made for CS:GO.
MIT License
133 stars 34 forks source link

Making a proper tab control? #39

Closed WonderedWhy closed 5 years ago

WonderedWhy commented 6 years ago

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?

kwilcz commented 6 years ago

Will add in a future.

AnonVodka commented 6 years ago

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.

kwilcz commented 6 years ago

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.

WonderedWhy commented 6 years ago

bump

Aethstetic commented 6 years ago

you already got your answer?

kwilcz commented 5 years ago

Done with https://github.com/Wando1423/Antario/commit/3854c9e970b19b202b22386068f7a1ad93245eeb