#✅ | Is it possible to create a tab?
1 messages · Page 1 of 1 (latest)
Hello Alfredo! 👋 Yes, it is absolutely possible to create a "tab" system in your Custom GUI! You can achieve this by using FancyMenu's variables and loading requirements.
Here's a brief explanation of how you can set it up:
-
Create a Variable: You'll need a variable to keep track of which "tab" is currently active. For example, you could name it
active_taband set its value totab1initially. You can manage variables throughCustomization -> Variables -> Manage Variablesfrom the menu bar.- You can learn more about variables here: Variables
-
Design Your "Tab" Pages: For each "tab," you'll design a separate set of elements (your kit information, buttons, etc.).
-
Use Loading Requirements for Visibility: For each set of "tab" elements, you'll add a loading requirement that checks the value of your
active_tabvariable.- For example, your
tab1elements would have a loading requirement:Is Variable Valuewhereactive_tabistab1. - Your
tab2elements would have a loading requirement:Is Variable Valuewhereactive_tabistab2. - This way, only the elements for the active tab will be visible.
- You can learn more about loading requirements here: Conditions (Loading Requirements)
- For example, your
-
Create "Tab" Buttons: You'll create buttons that, when clicked, change the value of the
active_tabvariable.- For example, a "Tab 2" button would have an action script with a
Set Variable Valueaction that setsactive_tabtotab2. - You can learn more about action scripts here: Action Scripts
- For example, a "Tab 2" button would have an action script with a
This approach essentially creates different "pages" within your custom GUI that switch based on user interaction with your "tab" buttons!
I hope this helps you get started with your kit system! Let me know if you have any more questions. 😊