#✅ | Is it possible to create a tab?

1 messages · Page 1 of 1 (latest)

fallow elk
#

I want to create a kit system in a custom GUI.But there may be several kits.One of the options I have is to make a tab. (2 buttons that change pages, so to speak)

light kernelBOT
# fallow elk I want to create a kit system in a custom GUI.But there may be several kits.One ...

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:

  1. Create a Variable: You'll need a variable to keep track of which "tab" is currently active. For example, you could name it active_tab and set its value to tab1 initially. You can manage variables through Customization -> Variables -> Manage Variables from the menu bar.

    • You can learn more about variables here: Variables
  2. Design Your "Tab" Pages: For each "tab," you'll design a separate set of elements (your kit information, buttons, etc.).

  3. Use Loading Requirements for Visibility: For each set of "tab" elements, you'll add a loading requirement that checks the value of your active_tab variable.

    • For example, your tab1 elements would have a loading requirement: Is Variable Value where active_tab is tab1.
    • Your tab2 elements would have a loading requirement: Is Variable Value where active_tab is tab2.
    • This way, only the elements for the active tab will be visible.
    • You can learn more about loading requirements here: Conditions (Loading Requirements)
  4. Create "Tab" Buttons: You'll create buttons that, when clicked, change the value of the active_tab variable.

    • For example, a "Tab 2" button would have an action script with a Set Variable Value action that sets active_tab to tab2.
    • You can learn more about action scripts here: Action Scripts

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. 😊