Fix actors not appearing on stage right
This commit is contained in:
@@ -31,7 +31,7 @@ typedef AutoZConfig = {
|
|||||||
|
|
||||||
interface Director<Set:Cloneable<Set>, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack> {
|
interface Director<Set:Cloneable<Set>, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack> {
|
||||||
var movie(default, default):Movie<Set, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack>;
|
var movie(default, default):Movie<Set, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack>;
|
||||||
var autoZConfig(default,null):Option<AutoZConfig>;
|
function autoZConfig():Option<AutoZConfig>;
|
||||||
function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, cc:Continuation):Void;
|
function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, cc:Continuation):Void;
|
||||||
function hideSet(set:Set, cc:Continuation):Void;
|
function hideSet(set:Set, cc:Continuation):Void;
|
||||||
function showCharacter(character:Character<Actor>, appearance:Appearance, cc:Continuation):Void;
|
function showCharacter(character:Character<Actor>, appearance:Appearance, cc:Continuation):Void;
|
||||||
|
@@ -10,6 +10,7 @@ import hollywoo.Scene;
|
|||||||
import hollywoo.Director;
|
import hollywoo.Director;
|
||||||
import haxe.Json;
|
import haxe.Json;
|
||||||
import uuid.Uuid;
|
import uuid.Uuid;
|
||||||
|
import haxe.ds.Option;
|
||||||
|
|
||||||
using kiss.FuzzyMapTools;
|
using kiss.FuzzyMapTools;
|
||||||
|
|
||||||
|
@@ -280,7 +280,7 @@
|
|||||||
|
|
||||||
(hollywooMethod autoZProcess false [:StagePosition position :Continuation cc]
|
(hollywooMethod autoZProcess false [:StagePosition position :Continuation cc]
|
||||||
// handle auto z recursively
|
// handle auto z recursively
|
||||||
(ifLet [(Some (objectWith zPerLayer frontLayer)) director.autoZConfig]
|
(ifLet [(Some (objectWith zPerLayer frontLayer)) (director.autoZConfig)]
|
||||||
{
|
{
|
||||||
(doFor =>name otherCharacter .characters (_currentScene)
|
(doFor =>name otherCharacter .characters (_currentScene)
|
||||||
(when (and (= position.x otherCharacter.stagePosition.x) (= position.y otherCharacter.stagePosition.y) (= position.z otherCharacter.stagePosition.z))
|
(when (and (= position.x otherCharacter.stagePosition.x) (= position.y otherCharacter.stagePosition.y) (= position.z otherCharacter.stagePosition.z))
|
||||||
|
Reference in New Issue
Block a user