About Store Forum Documentation Contact



Post Reply 
[Solved]Ineisis Options.gobj linked tabs to regions, how?
Author Message
Fex Offline
Gold Supporter

Post: #1
[Solved]Ineisis Options.gobj linked tabs to regions, how?
When you open the options.gobj from Ineisis in the GUI editor, when you click on the Video or Audio+Misc buttons in the tabs, the region switches (inside the editor). I have been needing to link such behavior in code with regions and tabs I create, how was this done in the editor?
(This post was last modified: 05-10-2013 04:37 PM by Fex.)
05-05-2013 03:13 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Ineisis Options.gobj linked tabs to regions, how?
There are 2 regions each assigned to different tab.
Region a,b;
Tabs tabs;
tabs.tab(0)+=a;
tabs.tab(1)+=b;

There is a tutorial about tabs in gui folder I think.
05-05-2013 03:57 PM
Find all posts by this user Quote this message in a reply
Fex Offline
Gold Supporter

Post: #3
RE: Ineisis Options.gobj linked tabs to regions, how?
Thanks for the reply, actually I think it is just done using "set as parent" in the GUI Editor.

In Gui editor:
1. Make tabs.
2. Make regions.
3. Select a region.
4. Hover mouse over a tab button.
5. Press Ctrl+P

Now the region will show/hide when that tab button is selected/not selected, no in-game code needed. Pretty nifty, much easier than doing hide/show of each region in code depending on which tab is selected.
05-10-2013 04:37 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: [Solved]Ineisis Options.gobj linked tabs to regions, how?
Hi yes, this is how it's done, I've just posted code how it's done behind the scenes.
05-12-2013 05:03 PM
Find all posts by this user Quote this message in a reply
Post Reply