Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Node Buttons and Toggles in the Scene Tree #10168

Open
pablolizardo opened this issue Jul 10, 2024 · 1 comment
Open

Improve Node Buttons and Toggles in the Scene Tree #10168

pablolizardo opened this issue Jul 10, 2024 · 1 comment

Comments

@pablolizardo
Copy link

Describe the project you are working on

N/A

Describe the problem or limitation you are having in your project

image

The current issue in the Godot engine's scene tree is that node buttons and toggles are aligned to the right. As more buttons and states are added, they become misaligned and do not match the columns of other nodes. This misalignment creates visual clutter and reduces the ease of use when navigating the scene tree.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

The proposed feature is to distribute the buttons of each node into fixed columns. This improvement includes:

  • Reducing icon sizes to 12x12 pixels.
    
  • Redistributing some icons (Unique Name and Group) to the left, next to the node name.
    
  • Keeping the rest of the icons/buttons aligned to the right but in fixed-width columns with fixed positions.
    

This enhancement ensures that the icons are neatly organized, making the scene tree cleaner and more user-friendly. It eliminates the issue of misaligned buttons, making it easier for users to locate and interact with node buttons consistently.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Actual design and iterations :
image

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

N/A

Is there a reason why this should be core and not an add-on in the asset library?

N/A

@Mickeon
Copy link

Mickeon commented Jul 10, 2024

The proposed Scene Unique Node icon is similar to the idea brought up in #4494.

Making it an icon like this image as by the mock-up is not as easy as one may think, due to limitations of the Tree class itself.
This actually applies to other icons in the mock up, too, hence the main reason as to the current state of things.

The proposal also does not account for one more icon: Signals & Groups. That's where I think it's pushing it with the fixed-width column design, and may be worth evaluating what should and shouldn't be an icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants