Color picker support for color wheels

This commit is contained in:
MathemanFlo
2022-03-12 15:15:34 +01:00
parent 65209ba922
commit f59c5af41a
6 changed files with 28 additions and 1 deletions
+11
View File
@@ -682,6 +682,17 @@ class UINodes {
Zui.isCopy = Zui.isCut = Zui.isPaste = ui.isDeleteDown = false;
}
if (nodes.colorPickerCallback != null) {
Context.selectTool(ToolPicker);
var tmp = nodes.colorPickerCallback;
Context.colorPickerCallback = function(color : TSwatchColor) {
tmp(color.base);
UINodes.inst.hwnd.redraws = 2;
UINodes.inst.canvasChanged();
};
nodes.colorPickerCallback = null;
}
// Remove nodes with unknown id for this canvas type
if (Zui.isPaste) {
var nodeList = canvasType == CanvasMaterial ? NodesMaterial.list : NodesBrush.list;