From 79307c55167a2ea779f67bc9f88c417e81057031 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 25 Sep 2023 19:49:56 -0600 Subject: [PATCH] allow preset positions that don't size and position weirdly --- src/hollywoo_flixel/HollywooFlixelDSL.kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hollywoo_flixel/HollywooFlixelDSL.kiss b/src/hollywoo_flixel/HollywooFlixelDSL.kiss index 0b74706..deb2ddc 100644 --- a/src/hollywoo_flixel/HollywooFlixelDSL.kiss +++ b/src/hollywoo_flixel/HollywooFlixelDSL.kiss @@ -379,10 +379,10 @@ (doFor plate plates (FlxG.state.remove plate true)) (set plates null))) -(method putPresetPosition [key x y z] +(method putPresetPosition [key x y z &opt :Bool notSpecial] (let [pos (new StagePosition (Std.int x) (Std.int y) (Std.int z))] (stagePositions.put key pos) - (dictSet presetPositions (pos.stringify) true))) + (unless notSpecial (dictSet presetPositions (pos.stringify) true)))) (method &override :Void createCameras [] (unless uiCamera