#โœ… [SOLVED] Remake the "Key Binds" button?

1 messages ยท Page 1 of 1 (latest)

south anchorBOT
#

Hello there! ๐Ÿ‘‹

I understand you'd like to replace the "Controls" button with a "Key Binds" button, so it directly opens the Key Binds menu. That's a clever way to streamline your menu navigation!

Here's how you can achieve this:

  1. Identify the "Key Binds" Screen:

    • First, open the "Controls" menu, then click "Key Binds" to enter the Key Binds screen.
    • Once you're on the Key Binds screen, open FancyMenu's menu bar (Ctrl + Alt + C), then go to Customization -> Debug Overlay.
    • The debug overlay will show you the exact screen identifier for the Key Binds menu. Click on it to copy it to your clipboard. This identifier is what you'll use in the next step.
  2. Delete the "Controls" Button:

    • Go back to the Options screen (where you see the "Controls" button).
    • Create a new layout "for the current screen" if you haven't already.
    • Right-click on the "Controls" button in the editor and select Delete. This will hide the original button.
  3. Create a New Custom Button:

    • Right-click on the editor's background, select New Element -> Button.
    • Position this new button where the original "Controls" button used to be. You can use the anchoring feature to ensure it stays in place. The documentation on Positioning Elements might be helpful here. You can also use the Button & Slider Templates feature to match the appearance of other buttons if you wish.
  4. Configure the New Button's Action Script:

    • Right-click your newly created button and select Manage Action Script.
    • Click Add Action and choose the Open Screen or Custom GUI (opengui) action from the list.
    • For the value of this action, paste the screen identifier you copied in Step 1.

Now, when you click your new button, it will directly open the Key Binds menu!

#

Let me know if you need any more help with this! ๐Ÿ˜Š

loud violet
#

How do I make the text highlight in yellow when hovering over it like the vanilla buttons?

south anchorBOT
# loud violet How do I make the text highlight in yellow when hovering over it like the vanill...

That's a great question! You want your custom button to have that classic Minecraft hover effect, where the text turns yellow. ๐Ÿ’›

Here's how you can do it for your custom button:

  1. Right-click on your custom button in the editor.
  2. Go to the Label option in the context menu.
  3. You'll see two options: Normal Label and Hover Label.
  4. Set the Normal Label to the text you want the button to display when it's not being hovered over (e.g., "Key Binds...").
  5. Set the Hover Label to the exact same text, but add the &e Minecraft formatting code in front of it. &e makes the text yellow. So, it would be &eKey Binds....

Now, when you hover over your button, the text will turn yellow, just like the vanilla buttons! You can learn more about Minecraft's formatting codes on the Text Formatting page in the documentation.