nodeview: updated with new node color UI system

This commit is contained in:
itsmattkc
2021-01-19 09:08:46 +11:00
parent 8e7035bd40
commit fa1fbd3a34
7 changed files with 39 additions and 15 deletions
+10
View File
@@ -263,6 +263,13 @@ void NodeView::Duplicate()
AttachNodesToCursor(duplicated_nodes);
}
void NodeView::SetColorLabel(int index)
{
foreach (Node* node, selected_nodes_) {
node->SetOverrideColor(index);
}
}
void NodeView::keyPressEvent(QKeyEvent *event)
{
super::keyPressEvent(event);
@@ -562,6 +569,9 @@ void NodeView::ShowContextMenu(const QPoint &pos)
Core::instance()->LabelNodes(scene_.GetSelectedNodes());
});
// Color menu
MenuShared::instance()->AddColorCodingMenu(&m);
m.addSeparator();
// Auto-position action