Progress, implementing color picker

This commit is contained in:
Devine Lu Linvega
2017-11-20 09:15:03 +13:00
parent 282a15f23d
commit 4ec5ba3a09
16 changed files with 44 additions and 96 deletions

View File

@@ -20,6 +20,9 @@ function Guide()
this.draw_inspector();
}
// Color picker
this.toggle_color_picker(ronin.commander.query().last_char == "#")
// Brush mirrors
for(id in ronin.brush.pointers){
var pointer = ronin.brush.pointers[id];
@@ -34,6 +37,11 @@ function Guide()
}
}
this.toggle_color_picker = function(show)
{
console.log("Picker",show)
}
this.draw = function(u = null)
{
if(u && u.x1 != null && u.y1 != null && u.x2 != null && u.y2 != null){
@@ -123,7 +131,6 @@ function Guide()
this.find_units = function(q = ronin.commander.query())
{
var a = [];
if(q.settings.anchor){ return q.settings.anchor; }
for(method_id in q.methods){
var params = q.methods[method_id];