Skip to content

Commit

Permalink
Adjusted entity preview line width
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 21, 2023
1 parent 5e6b923 commit 11427e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/electron.renderer/misc/JsTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class JsTools {
var tileRect = ed.uiTileRect!=null && ed.uiTileRect.w>0 ? ed.uiTileRect
: ed.renderMode==Tile && ed.tileRect!=null ? ed.tileRect
: null;

if( tileRect!=null ) {
// Tile
var td = project.defs.getTilesetDef(tileRect.tilesetUid);
Expand Down Expand Up @@ -298,7 +298,7 @@ class JsTools {

ctx.fillStyle = new dn.Col(ed.color).toCssRgba(ed.fillOpacity);
ctx.strokeStyle = new dn.Col(ed.color).toCssRgba(ed.lineOpacity);
ctx.lineWidth = 3;
ctx.lineWidth = 2;

switch ed.renderMode {
case Rectangle:
Expand All @@ -316,6 +316,7 @@ class JsTools {
ctx.stroke();

case Cross:
ctx.lineWidth = 4;
ctx.moveTo(0,0);
ctx.lineTo(wid, hei);
ctx.moveTo(0,hei);
Expand Down

0 comments on commit 11427e3

Please # to comment.