Skip to content

Commit

Permalink
make checkerboard off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Aug 14, 2021
1 parent 84e054d commit 500dd5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/KadeEngineData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class KadeEngineData
if (FlxG.save.data.cacheImages == null)
FlxG.save.data.cacheImages = false;

if (FlxG.save.data.editor == null)
FlxG.save.data.editor = true;
if (FlxG.save.data.editorBG == null)
FlxG.save.data.editor = false;

if (FlxG.save.data.zoom == null)
FlxG.save.data.zoom = 1;
Expand Down
4 changes: 2 additions & 2 deletions source/Options.hx
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ class EditorRes extends Option

public override function press():Bool
{
FlxG.save.data.editor = !FlxG.save.data.editor;
FlxG.save.data.editorBG = !FlxG.save.data.editorBG;

display = updateDisplay();
return true;
}

private override function updateDisplay():String
{
return FlxG.save.data.editor ? "Show Editor Grid" : "Do not Show Editor Grid";
return FlxG.save.data.editorBG ? "Show Editor Grid" : "Do not Show Editor Grid";
}

}
Expand Down
2 changes: 1 addition & 1 deletion source/SectionRender.hx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SectionRender extends FlxSprite
if (Math.floor(h) != h)
h = GRID_SIZE;

if (FlxG.save.data.editor)
if (FlxG.save.data.editorBG)
FlxGridOverlay.overlay(this,GRID_SIZE, Std.int(h), GRID_SIZE * 8,GRID_SIZE * Height);
}

Expand Down

0 comments on commit 500dd5d

Please sign in to comment.