protected internal override void OnEditorTick(float dt)
 {
     base.OnEditorTick(dt);
     if (!MBEditor.IsEntitySelected(this.GameEntity))
     {
         return;
     }
     DebugExtensions.RenderDebugCircleOnTerrain(this.Scene, this.CaptureFrame, this.InteractionDistance, 2852192000U);
 }
 protected internal override void OnEditorTick(float dt)
 {
     base.OnEditorTick(dt);
     if (MBEditor.IsEntitySelected(this.GameEntity))
     {
         this.RenderCameraFrustrum();
         this._sceneView.SetEnable(true);
     }
     else
     {
         this._sceneView.SetEnable(false);
     }
 }
        protected internal override void OnEditorTick(float dt)
        {
            base.OnEditorTick(dt);
            if (!this.visualizeRadius || MapAtmosphereProbe.hideAllProbesStatic)
            {
                return;
            }
            uint num1 = 16711680;
            uint num2 = 720640;
            uint factorColor1_1;
            uint factorColor1_2;

            if (MBEditor.IsEntitySelected(this.GameEntity))
            {
                factorColor1_1 = num1 | 2147483648U;
                factorColor1_2 = num2 | 2147483648U;
            }
            else
            {
                factorColor1_1 = num1 | 1073741824U;
                factorColor1_2 = num2 | 1073741824U;
            }
            this.innerSphereMesh.SetFactor1(factorColor1_1);
            this.outerSphereMesh.SetFactor1(factorColor1_2);
            MatrixFrame frame1;

            frame1.origin   = this.GameEntity.GetGlobalFrame().origin;
            frame1.rotation = Mat3.Identity;
            frame1.rotation.ApplyScaleLocal(this.minRadius);
            MatrixFrame frame2;

            frame2.origin   = this.GameEntity.GetGlobalFrame().origin;
            frame2.rotation = Mat3.Identity;
            frame2.rotation.ApplyScaleLocal(this.maxRadius);
            this.innerSphereMesh.SetVectorArgument(this.minRadius, this.maxRadius, 0.0f, 0.0f);
            this.outerSphereMesh.SetVectorArgument(this.minRadius, this.maxRadius, 0.0f, 0.0f);
            MBEditor.RenderEditorMesh(this.innerSphereMesh, frame1);
            MBEditor.RenderEditorMesh(this.outerSphereMesh, frame2);
        }
        protected internal override void OnEditorTick(float dt)
        {
            base.OnEditorTick(dt);
            foreach (GameEntity highlightedEntite in this._highlightedEntites)
            {
                highlightedEntite.SetContourColor(new uint?());
            }
            this._highlightedEntites.Clear();
            if (!MBEditor.IsEntitySelected(this.GameEntity))
            {
                return;
            }
            uint color = 4294901760;

            if ((double)this.Radius > 0.0)
            {
                DebugExtensions.RenderDebugCircleOnTerrain(this.Scene, this.GameEntity.GetGlobalFrame(), this.Radius, color);
            }
            foreach (SpawnerBase spawnerBase in this.GetSpawnersForEditor())
            {
                spawnerBase.GameEntity.SetContourColor(new uint?(color));
                this._highlightedEntites.Add(spawnerBase.GameEntity);
            }
        }
Beispiel #5
0
 protected internal override void OnEditorTick(float dt)
 {
     base.OnEditorTick(dt);
     MBEditor.IsEntitySelected(this.GameEntity);
 }