mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Checkbox crappy styling and fixing overlayproxy grid
This commit is contained in:
parent
df945e10dd
commit
f169a90644
@ -77,6 +77,13 @@
|
||||
cursor: url(../img/tools/cursors/hand.png) 14 12, pointer;
|
||||
}
|
||||
|
||||
.tool-grid,
|
||||
.tool-grid label,
|
||||
.tool-grid input {
|
||||
line-height: 2.5;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tool-icon.selected {
|
||||
cursor: auto;
|
||||
background-color: #eee;
|
||||
|
@ -9,11 +9,6 @@
|
||||
"hasGrid" : true
|
||||
};
|
||||
|
||||
// jQuery deep copy of the rendering config:
|
||||
overlayRenderingOptions = $.extend(true, {}, renderingOptions);
|
||||
overlayRenderingOptions.hasGrid = false;
|
||||
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@ -36,7 +31,7 @@
|
||||
|
||||
this.overlayRenderer = new pskl.rendering.FrameRenderer(
|
||||
this.container,
|
||||
overlayRenderingOptions,
|
||||
renderingOptions,
|
||||
"canvas-overlay");
|
||||
|
||||
this.renderer.init(this.frame);
|
||||
@ -75,7 +70,7 @@
|
||||
body.mouseup($.proxy(this.onMouseup_, this));
|
||||
|
||||
// Deactivate right click:
|
||||
//this.container.contextmenu(this.onCanvasContextMenu_);
|
||||
this.container.contextmenu(this.onCanvasContextMenu_);
|
||||
};
|
||||
|
||||
/**
|
||||
@ -152,7 +147,7 @@
|
||||
this.isClicked = false;
|
||||
this.isRightClicked = false;
|
||||
var spriteCoordinate = this.getSpriteCoordinate(event);
|
||||
console.log("mousemove: col: " + spriteCoordinate.col + " - row: " + spriteCoordinate.row);
|
||||
//console.log("mousemove: col: " + spriteCoordinate.col + " - row: " + spriteCoordinate.row);
|
||||
this.currentToolBehavior.releaseToolAt(
|
||||
spriteCoordinate.col,
|
||||
spriteCoordinate.row,
|
||||
|
Loading…
Reference in New Issue
Block a user