#Needle UI Buttons

1 messages · Page 1 of 1 (latest)

lunar badger
#

Unfortunately, the buttons are much too big. You had moderated a change. Unfortunately, we cannot access the CCS that generates the buttons. Is there a timely solution?

unique tideBOT
# lunar badger Unfortunately, the buttons are much too big. You had moderated a change. Unfortu...

Thanks for reaching out @lunar badger

Please read through the following and share the information requested. This will help us to better assist you.

Description

Describe the issue that you're seeing. Please be as detailed as possible e.g. is this issue happening in Unity or Blender, which Needle Engine version are you using, do you see any errors in the Editor or Browser console, etc.

Information:

  • If you're using Unity click the menu item Needle Engine/Report a Bug/Copy Project Info to Clipboard. Please share the results below.
  • Please provide code snippets using Discord Code Blocks
  • Have you contacted Needle through another channel or just through Discord?

Useful Links

Did you know 💡

We now also have a forum with AI support: Join now with your discord account - or request help by clicking the button below.

How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.

Help requested: please wait a moment...

unique tideBOT
# lunar badger Unfortunately, the buttons are much too big. You had moderated a change. Unfortu...

Hi Matmat,

To quickly change the size of buttons without accessing the CSS, you can use inline styles with JavaScript. Here's a simple solution:

Pseudocode:

  1. Query all button elements.
  2. Iterate through each button and set its size via inline styles.

Code:

document.querySelectorAll("button").forEach(button => {
    button.style.width = "100px";  // Set desired width
    button.style.height = "50px";  // Set desired height
});

Add this script to your Needle Engine project, and it will update the size of all buttons. Adjust the width and height values as necessary.

You can also reference this for more customized styling:

If you need further assistance, feel free to ask!

1 messages left
GPT 4o
thread_OSjnjLGcZ6E30wA3ZKHURMYJ
Thanks for your feedback!


If you are new to scripting we recommend reading the following guides first: