Improved theme support

This commit is contained in:
Devine Lu Linvega
2018-09-12 13:20:31 +12:00
parent 81687281d5
commit a0ede91554
13 changed files with 150 additions and 116 deletions

View File

@@ -85,7 +85,7 @@ function Interface()
{
if(!dotgrid.tool[type]){ console.warn(`Unknown option(type): ${type}.${name}`,dotgrid.tool); return; }
this.refresh(true);
this.update(true);
}
this.down = function(type,name)
@@ -93,7 +93,7 @@ function Interface()
if(!dotgrid.tool[type]){ console.warn(`Unknown option(type): ${type}.${name}`,dotgrid.tool); return; }
dotgrid.tool[type](name)
this.refresh(true);
this.update(true);
}
this.click = function(type,name)
@@ -101,12 +101,12 @@ function Interface()
// if(!dotgrid.tool[type]){ console.warn(`Unknown option(type): ${type}.${name}`,dotgrid.tool); return; }
// dotgrid.tool[type](name)
// this.refresh();
// this.update();
}
this.prev_operation = null;
this.refresh = function(force = false,id)
this.update = function(force = false,id)
{
if(this.prev_operation == dotgrid.cursor.operation && force == false){ return; }