From 500dd5dd5c296d9249db18d8e1c1b9618a62f964 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Sat, 14 Aug 2021 13:07:47 -0700 Subject: [PATCH] make checkerboard off by default --- source/KadeEngineData.hx | 4 ++-- source/Options.hx | 4 ++-- source/SectionRender.hx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/KadeEngineData.hx b/source/KadeEngineData.hx index 9131199..9556ed3 100644 --- a/source/KadeEngineData.hx +++ b/source/KadeEngineData.hx @@ -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; diff --git a/source/Options.hx b/source/Options.hx index 4994443..0248a8d 100644 --- a/source/Options.hx +++ b/source/Options.hx @@ -152,7 +152,7 @@ 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; @@ -160,7 +160,7 @@ class EditorRes extends Option 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"; } } diff --git a/source/SectionRender.hx b/source/SectionRender.hx index 67cafa8..de97b95 100644 --- a/source/SectionRender.hx +++ b/source/SectionRender.hx @@ -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); }