Show color picker icon
This commit is contained in:
@@ -815,7 +815,7 @@ class UISidebar {
|
||||
}
|
||||
|
||||
// Show picked material next to cursor
|
||||
if (Context.tool == ToolPicker && Context.pickerSelectMaterial) {
|
||||
if (Context.tool == ToolPicker && Context.pickerSelectMaterial && Context.colorPickerCallback == null) {
|
||||
var img = Context.material.imageIcon;
|
||||
#if kha_opengl
|
||||
g.drawScaledImage(img, mx + 10, my + 10 + img.height, img.width, -img.height);
|
||||
@@ -823,6 +823,12 @@ class UISidebar {
|
||||
g.drawImage(img, mx + 10, my + 10);
|
||||
#end
|
||||
}
|
||||
if (Context.tool == ToolPicker && Context.colorPickerCallback != null) {
|
||||
var img = Res.get("icons.k");
|
||||
var rect = Res.tile50(img, ToolPicker, 0);
|
||||
|
||||
g.drawSubImage(img, mx + 10, my + 10, rect.x, rect.y, rect.w, rect.h);
|
||||
}
|
||||
|
||||
var cursorImg = Res.get("cursor.k");
|
||||
var psize = Std.int(cursorImg.width * (Context.brushRadius * Context.brushNodesRadius) * ui.SCALE());
|
||||
|
||||
Reference in New Issue
Block a user