Ejemplo n.º 1
0
        public SeekerBlinder()
        {
            StyleSheet.Load("UI/SeekerBlinder.scss");
            coneText = Add.Label("Please wait...", "coneText");

            using (SceneWorld.SetCurrent(new SceneWorld()))
            {
                SceneObject.CreateModel("models/dev/gordon_at_desk.vmdl", Transform.Zero);
                Light.Point(Vector3.Right * 100, 200, Color.White * 2000f);
                coneScene = SceneCapture.Create("coneScene", 512, 512);
            }

            Add.Image("scene:coneScene", "coneScene");
        }
Ejemplo n.º 2
0
        private void LoadWorld()
        {
            DeleteScene();

            using (SceneWorld.SetCurrent(new SceneWorld()))
            {
                playerPreview = new AnimSceneObject(Model.Load(ExtractionConfig.PlayerModel), Transform.Zero);

                Light.Point(Vector3.Up * 150.0f, 200.0f, Color.White * 5000.0f);
                Light.Point(Vector3.Up * 100.0f + Vector3.Forward * 100.0f, 200, Color.White * 15000.0f);

                sceneCapture = SceneCapture.Create("portrait", 256, 256);

                sceneCapture.AmbientColor = new Color(0.8f, 0.8f, 0.8f);
                sceneCapture.SetCamera(Vector3.Up * 100 + CamAngles.Direction * -50, CamAngles, 45);

                // TODO: Clothes

                startTime = Time.Now;
            }
        }
Ejemplo n.º 3
0
    void OnLevelChangeEnd(SceneWorld.LevelData level)
    {
        mController.enabled = true;
        entMove.enabled = true;
        entCollider.enabled = true;

        entMove.ResetAll();
    }
Ejemplo n.º 4
0
    void OnLevelChangeEnd(SceneWorld.LevelData level)
    {
        mCurLevel = level.stat;
        mCurHP = maxHP;
        mCurLevelPts = 0;

        Refresh();
    }