#How would I add a horizontal divider line to a right-click menu?
9 messages · Page 1 of 1 (latest)
'_'
instead of adding an action to a menu/menubaritem, add a "_"
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.
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())