How to change the seperator line position in the options button?

Godot Version

Godot 4.2

Question

Not much to explain (I think) since I have images to do most of the work

This is the separator line I have:
Screenshot 2024-09-02 at 1.28.24 PM

This is the separator line I’m trying to achieve:
Screenshot 2024-09-02 at 1.28.03 PM

Any suggestions/solutions to change my separator line in my options button to the one above?

Is this the same popupmenu as before? I can try to look tomorrow when I’m less tired if you want.

Yup, it is!

Ok, I’ll look tomorrow unless someone else fixes it in the meantime.

1 Like

Add an item with no text; set to separator and disabled.

I already have the separator; I just want to change where the line is on the text.

Then make a new item with no text; set it to separator and disabled, then move the separator item above or below your existing option

I’ll try that

It kind of works, but the Difficulty item shows as a disabled option. And setting it to a separator makes it still have that line while the other one exists under.

I was also wondering if I could increase the thickness of the separator line :thinking:

Just wanna ask, is there actually a way to edit the separator line in the options button?

I checked back and thought you had it sorted out, so never replied. What separator line do you want to change?

This one :arrow_up:

To this :arrow_up:

The suggestion by gertkeno above should work, why doesn’t that do what you want it to?

His solution just combines the 2 results together. the separator line under the difficulty text, and the difficulty text still having the line in between

Do not mark the Difficulty item as separator, you could disable it if need be too.

But then the difficulty item just shows as a disabled option instead of being the actual name for the separator

I think it is your explanation of what you want that is the actual problem.
I think you want DIFFICULTY as a title and then the separator line.
Something like:

Difficulty
----------
    Easy 
    Medium 
    Hard

But that isn’t how an option button works.
The button just lists the options, no titles, no categories.
What you want is more like a menu, like the standard FILE menu that when clicked on shows OPEN, SAVE, etc.

This is probably the closest I can get to what I think you want.

popup34

What other node can I use then?

How did you achieve that?