override public void ShowGUI(List <ActionParameter> parameters) { #if CinemaDirectorIsPresent parameterID = Action.ChooseParameterGUI("Director cutscene:", parameters, parameterID, ParameterType.GameObject); if (parameterID >= 0) { constantID = 0; cdCutscene = null; } else { cdCutscene = (CinemaDirector.Cutscene)EditorGUILayout.ObjectField("Director cutscene:", cdCutscene, typeof(CinemaDirector.Cutscene), true); constantID = FieldToID <CinemaDirector.Cutscene> (cdCutscene, constantID); cdCutscene = IDToField <CinemaDirector.Cutscene> (cdCutscene, constantID, false); } disableCamera = EditorGUILayout.Toggle("Override AC camera?", disableCamera); willWait = EditorGUILayout.Toggle("Wait until finish?", willWait); #endif #if !CinemaDirectorIsPresent EditorGUILayout.HelpBox("The 'CinemaDirectorIsPresent' Scripting Define Symbol must be listed in the\nPlayer Settings. Please set it from Edit -> Project Settings -> Player", MessageType.Warning); #endif AfterRunningOption(); }
/** * <summary>Creates a new instance of the 'Third Party: Cinema Director' Action</summary> * <param name = "cutsceneToPlay">The cutscene to play</param> * <param name = "waitUntilFinish">If True, the Action will wait until the cutscene has completed</param> * <returns>The generated Action</returns> */ public static ActionCinemaDirector CreateNew_ResumeLastTrack(CinemaDirector.Cutscene cutsceneToPlay, bool waitUntilFinish = true) { ActionCinemaDirector newAction = (ActionCinemaDirector)CreateInstance <ActionCinemaDirector>(); newAction.cdCutscene = cutsceneToPlay; newAction.willWait = waitUntilFinish; }
override public void AssignValues(List <ActionParameter> parameters) { #if CinemaDirectorIsPresent cdCutscene = AssignFile <CinemaDirector.Cutscene> (parameters, parameterID, constantID, cdCutscene); #endif }
public override void AssignValues(List<ActionParameter> parameters) { #if CinemaDirectorIsPresent cdCutscene = AssignFile <CinemaDirector.Cutscene> (parameters, parameterID, constantID, cdCutscene); #endif }
public override void ShowGUI(List<ActionParameter> parameters) { #if CinemaDirectorIsPresent parameterID = Action.ChooseParameterGUI ("Director cutscene:", parameters, parameterID, ParameterType.GameObject); if (parameterID >= 0) { constantID = 0; cdCutscene = null; } else { cdCutscene = (CinemaDirector.Cutscene) EditorGUILayout.ObjectField ("Director cutscene:", cdCutscene, typeof (CinemaDirector.Cutscene), true); constantID = FieldToID <CinemaDirector.Cutscene> (cdCutscene, constantID); cdCutscene = IDToField <CinemaDirector.Cutscene> (cdCutscene, constantID, false); } disableCamera = EditorGUILayout.Toggle ("Override AC camera?", disableCamera); willWait = EditorGUILayout.Toggle ("Wait until finish?", willWait); #endif #if !CinemaDirectorIsPresent EditorGUILayout.HelpBox ("The 'CinemaDirectorIsPresent' Scripting Define Symbol must be listed in the\nPlayer Settings. Please set it from Edit -> Project Settings -> Player", MessageType.Warning); #endif AfterRunningOption (); }