Example #1
0
        public xpScene SetPreviewScene(string scene_name)
        {
            xpScene _scene = GetSceneObject(scene_name);

            _scene.SetPreview();
            return(_scene);
        }
Example #2
0
        public xpAnimController GetAnimator(xpScene scene_name, string animation_name)
        {
            xpAnimController animObj;

            if (scene_name.GetAnimControllerByName(animation_name, out animObj))
            {
                return(animObj);
            }
            return(null);
        }
Example #3
0
        public Bitmap GetSceneImage(int position, int height, int width, xpScene scene_name)
        {
            xpImage image_preview;

            if (scene_name.GetRenderedFrame(position, width, height, out image_preview))
            {
                return(xpTools.xpImageToBitmap(image_preview));
            }
            return(null);
        }
Example #4
0
 private void SetSceneState(xpScene scene, bool mode, int FrameBuffer = 1)
 {
     if (mode)
     {
         scene.SetOnline(FrameBuffer);
     }
     else
     {
         scene.SetOffline();
     }
 }
Example #5
0
        public xpAnimController PlayAnimationDirector(xpScene scene_name, string animation_name, PlayDirection pd_dir = PlayDirection.pd_Forward)
        {
            xpAnimController animObj;

            if (scene_name.GetAnimControllerByName(animation_name, out animObj))
            {
                animObj.PlayDirection = pd_dir;
                animObj.Play();
            }

            return(animObj);
        }
Example #6
0
        public xpSceneDirector PlayPositionSceneDirector(xpScene scene, string scene_director, int position = 0)
        {
            xpSceneDirector directorObj;

            if (scene.GetSceneDirectorByName(scene_director, out directorObj))
            {
                directorObj.Position = position;

                directorObj.Play();
                return(directorObj);
            }
            return(null);
        }
Example #7
0
        public xpTextObject SetTextSceneValue(xpScene scene_name, string text_name, string text_value)
        {
            xpTextObject textObj;
            xpBaseObject baseObj;

            if (scene_name.GetObjectByName(text_name, out baseObj))
            {
                textObj      = (xpTextObject)baseObj;
                textObj.Text = text_value;
                // textObj.BeginUpdate();
                return(textObj);
            }
            return(null);
        }
Example #8
0
 public bool GetScene(string name, bool as_copy = true)
 {
     try
     {
         if (Immutable.Engine != null)
         {
             if (Immutable.Scenes == null)
             {
                 Immutable.Scenes = new Dictionary <string, XPression.xpScene>();
             }
             xpScene scene = Immutable.Engine.GetSceneObject(name, as_copy);
             Immutable.Scenes[name] = scene;
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }
Example #9
0
 private void OutputFrameBuffer_OnSceneState(xpScene Scene, int State)
 {
     Console.WriteLine("Scene: " + Scene.Name + " State: " + State);
 }