compiler guards on define scale and define z

This commit is contained in:
2024-08-20 18:26:34 -05:00
parent d71a865362
commit 77bb32554c

View File

@@ -557,6 +557,7 @@
(dictSet v "Percent" kiss_flixel.RelativeCoordinate.Percent) (dictSet v "Percent" kiss_flixel.RelativeCoordinate.Percent)
) )
(#when debug
(let [shortcutHandler (director.shortcutHandler) (let [shortcutHandler (director.shortcutHandler)
cc ->(resume)] cc ->(resume)]
(shortcutHandler.registerItem "[d]efine prop [s]cale" (shortcutHandler.registerItem "[d]efine prop [s]cale"
@@ -593,7 +594,7 @@
(if (Math.isNaN z) (if (Math.isNaN z)
(print "Failed to parse ${zStr}. leaving value the same") (print "Failed to parse ${zStr}. leaving value the same")
(stagePositions.put positionKey (new StagePosition position.x position.y z))) (stagePositions.put positionKey (new StagePosition position.x position.y z)))
(cc)) })))))))) (cc)) })))))))))
(prop &mut :flixel.ui.FlxBar bar null) (prop &mut :flixel.ui.FlxBar bar null)
(prop &mut :Int barProgress 0) (prop &mut :Int barProgress 0)