diff --git a/src/hollywoo/Director.hx b/src/hollywoo/Director.hx index bff15bf..bc930f2 100644 --- a/src/hollywoo/Director.hx +++ b/src/hollywoo/Director.hx @@ -31,7 +31,7 @@ typedef AutoZConfig = { interface Director, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack> { var movie(default, default):Movie; - var autoZConfig(default,null):Option; + function autoZConfig():Option; function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, cc:Continuation):Void; function hideSet(set:Set, cc:Continuation):Void; function showCharacter(character:Character, appearance:Appearance, cc:Continuation):Void; diff --git a/src/hollywoo/Movie.hx b/src/hollywoo/Movie.hx index 3a0871e..a0b5683 100644 --- a/src/hollywoo/Movie.hx +++ b/src/hollywoo/Movie.hx @@ -10,6 +10,7 @@ import hollywoo.Scene; import hollywoo.Director; import haxe.Json; import uuid.Uuid; +import haxe.ds.Option; using kiss.FuzzyMapTools; diff --git a/src/hollywoo/Movie.kiss b/src/hollywoo/Movie.kiss index 7f3a1b2..a32a0f4 100644 --- a/src/hollywoo/Movie.kiss +++ b/src/hollywoo/Movie.kiss @@ -280,7 +280,7 @@ (hollywooMethod autoZProcess false [:StagePosition position :Continuation cc] // handle auto z recursively - (ifLet [(Some (objectWith zPerLayer frontLayer)) director.autoZConfig] + (ifLet [(Some (objectWith zPerLayer frontLayer)) (director.autoZConfig)] { (doFor =>name otherCharacter .characters (_currentScene) (when (and (= position.x otherCharacter.stagePosition.x) (= position.y otherCharacter.stagePosition.y) (= position.z otherCharacter.stagePosition.z))