Hi Azra! π
Yes, there is a way to open a screen or GUI using a keybind in FancyMenu! You can achieve this by using a Button element and triggering its action with a keybind.
Here's how you can do it:
- Create a Button Element: Add a new Button element to your layout. This button doesn't have to be visible; you can set its opacity to 0 or place it off-screen if you only want to use it for its keybind functionality.
- Assign an Action to the Button: Right-click the button in the editor, select "Edit Action Script," and add an action called "Open Screen or Custom GUI." For the action's value, you'll need to enter the
screen_identifierof the GUI you want to open.- If you're opening a custom GUI you made with FancyMenu, use its identifier.
- For vanilla or modded GUIs, you can find their identifiers using FancyMenu's debug overlay.
- Set a Keybind for the Button: After creating the button and assigning its action, right-click the button again, and you should see an option to "Set Keybind." Here you can assign a keyboard key that, when pressed, will trigger the button's action and open your desired screen or GUI.
This method allows you to use any key on your keyboard to open any screen or custom GUI that FancyMenu can interact with.
Let me know if you have any more questions! π