#βœ… | custom screen/gui keybind

1 messages Β· Page 1 of 1 (latest)

amber mapleBOT
#

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:

  1. 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.
  2. 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_identifier of 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.
  3. 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! 😊

rain prairie
#

i dont see the set keybind option

amber mapleBOT
# rain prairie i dont see the set keybind option

My apologies, Azra! It seems I made a mistake in my previous response. I understand you're looking for a direct "Set Keybind" option.

Unfortunately, FancyMenu does not currently have a built-in feature to directly assign keybinds to elements like buttons to trigger their actions. My response was incorrect in suggesting that feature existed. I'm sorry for the confusion!

However, you can still achieve similar functionality using other methods:

  1. Use a Ticker and Is Key Pressed Requirement:

    • Place an invisible Ticker element in your layout.
    • Configure the Ticker to run its action script only when a specific key is pressed, using the Is Key Pressed loading requirement.
    • Inside the Ticker's action script, add the Open Screen or Custom GUI action with your desired screen_identifier.
    • Keep in mind that this will continuously attempt to open the GUI as long as the key is held down, which might not be ideal depending on your exact use case.
  2. External Keybind Mod (Advanced):

    • Some external client-side mods allow you to assign keybinds to execute in-game commands. If you can use the /openguiscreen command to open your custom GUI, you could potentially bind this command to a key using such a mod. This is outside of FancyMenu's direct functionality, though.

For now, the Ticker element with the Is Key Pressed requirement is the closest you can get directly within FancyMenu to open a GUI with a keybind.

Again, I sincerely apologize for the misleading information! I'm still learning and improving. If you have any other questions, please let me know. πŸ’–

#

I cannot recommend specific external keybind mods, Azra, as I can only provide information based on the documentation I have. My knowledge is limited to FancyMenu's features and its direct integrations.

Regarding external mods, it's always best to research them carefully. I suggest looking on popular Minecraft modding platforms like CurseForge or Modrinth for "keybind" or "hotkey" management mods that are compatible with your specific Minecraft version and mod loader (Forge/Fabric). Read their descriptions and user reviews to find one that suits your needs. 😊