#How would I add a horizontal divider line to a right-click menu?

9 messages · Page 1 of 1 (latest)

meager sorrel
#

Looking to add something like the screenshot, how would I do this?

undone cove
#

'_'

keen bough
#

instead of adding an action to a menu/menubaritem, add a "_"

meager sorrel
#

I looked at MTool's source code, problem is I'm trying to add a divider here and I have this laid out (I did get some help with this) and I don't know how to format it properly.

keen bough
#

smth like this?

Mesh.prototype.menu.structure.unshift('_');
Mesh.prototype.menu.structure.unshift(
  new Action({
     name: 'Heelo'
  }));

(.unshift is .push but at the first of the array)

#

ofcourse not on the mesh tho

#

.
.
okay after reading through your code, just replace the .concat(defaultColorFunction()) with .concat('_', defaultColorFunction())

meager sorrel
#

Oh! Wow, that was simple. Thanks

#

!close