nodeview: updated with new node color UI system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user