public override void Create()
        {
            AddTag(GameObjectTag._3DDeferredWorldLighting);

            UseShadows             = new BoolValue("Use Shadows");
            UseShadows.ChangeEvent = ShadowChange;

            RealtimeShadows             = new BoolValue("Real Time Shadows");
            RealtimeShadows.ChangeEvent = RealtimeChange;

            ShadowMapSize             = new FloatValue("Shadow Map CellSize", 256);
            ShadowMapSize.ChangeEvent = ShadowChange;

            MyEffect = new EffectValue("CommandPoint Effect", "Deferred/PointLightNoShadows", EffectHolderType.DeferredLight);

            Load();
            base.Create();

            CreateCameras();

#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                AddTag(GameObjectTag._3DForward);
                ApplyScale(Vector3.One * 200, Vector3.Zero, false);
            }
#endif
        }
        public override void Create()
        {
            AddTag(GameObjectTag.WorldViewer);

            base.Create();

#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                AddTag(GameObjectTag._3DForward);
                Load();
            }
#endif

            AddTag(GameObjectTag.Update);
            MyCamera = new Camera3D(MathHelper.PiOver4, 0.1f, 1000000);

            Values.Remove(Scale);
            ZoomDistance              = new FloatValue("Zoom Offset", 1000, ChangeScale);
            IsWorldViewer             = new BoolValue("World Viewer", true);
            IsWorldViewer.ChangeEvent = ChangeWorldViewer;
            AllowTakeover             = new BoolValue("AllowTakeover");

            ChangeScale();
            Rotation.set(new Vector3(45, 45, 0));

            SetCollisionShape(new Point3D());
        }
Ejemplo n.º 3
0
        public override void  Create()
        {
            AddTag(GameObjectTag.Update);

            Seed                  = new IntValue("Seed");
            Seed.ChangeEvent      = StarChange;
            StarCount             = new IntValue("Star Count");
            StarCount.ChangeEvent = StarChange;

            MinSize             = new FloatValue("Min Size", 500);
            MinSize.ChangeEvent = StarChange;
            MaxSize             = new FloatValue("Max Size", 2500);
            MaxSize.ChangeEvent = StarChange;

            MinRadius             = new FloatValue("Min Radius", 10000);
            MinRadius.ChangeEvent = StarChange;
            MaxRadius             = new FloatValue("Max Radius", 30000);
            MaxRadius.ChangeEvent = StarChange;

            MinColor             = new ColorValue("Min Color", Vector4.One);
            MinColor.ChangeEvent = StarChange;
            MaxColor             = new ColorValue("Max Color", Vector4.One);
            MaxColor.ChangeEvent = StarChange;

            base.Create();
            StarCount.set(100);
        }
Ejemplo n.º 4
0
 public override void Create()
 {
     Dead             = new BoolValue("Dead");
     Dead.ChangeEvent = ChangeDead;
     ChangeSpeed      = new FloatValue("Change Speed", 0.01f);
     base.Create();
 }
Ejemplo n.º 5
0
 public SpawnerFrame(Vector2Value Size, Vector2Value Position, FloatValue Rotation)
     : base(-1)
 {
     this.Size     = Size;
     this.Position = Position;
     this.Rotation = Rotation;
     InstanceManager.AddBasicChild(this);
 }
Ejemplo n.º 6
0
        public override void SetValues(Vector2 Position, string Text, float Min, float Max, FloatValue SliderValue)
        {
            this.Text.set(Text);
            this.MinValue.set(Min);
            this.MaxValue.set(Max);
            this.SliderValue = SliderValue;

            base.SetValues(Position, Text, Min, Max, SliderValue);
        }
Ejemplo n.º 7
0
        public override void Create()
        {
            BrightnessValue = new FloatValue("Brightness", 5);
            ContrastValue   = new FloatValue("Contrast", 5);

            BrightnessValue.ChangeEvent = BrightnessChange;
            ContrastValue.ChangeEvent   = ContrastChange;

            base.Create();
        }
Ejemplo n.º 8
0
 public override void Create()
 {
     MyCube                 = new TextureCubeReference();
     Path                   = new StringValue("Path");
     Path.ChangeEvent       = PathChange;
     Resolution             = new FloatValue("Resolution", 1024);
     Resolution.ChangeEvent = PathChange;
     Load();
     base.Create();
 }
Ejemplo n.º 9
0
 void TieChange()
 {
     if (TiedObject.get() != null && !TiedValue.get().Equals(""))
     {
         Value v = TiedObject.get().FindValue(TiedValue.get(), 3);
         if (v != null && v.GetType().Equals(typeof(FloatValue)))
         {
             SliderValue = (FloatValue)v;
         }
     }
 }
Ejemplo n.º 10
0
        public override void Create()
        {
            MoveSpeed   = new FloatValue("Move Speed", 10);
            ResizeSpeed = new FloatValue("Resize Speed", 10);

            base.Create();

            AddTag(GameObjectTag.Update);
            AddTag(GameObjectTag._2DForward);
            FormChildren = ParentScene.GetList(GameObjectTag.Form);
        }
        public override void Create()
        {
            Font     = new SpriteFontValue("Font", "Fonts/FormTextFont");
            Text     = new StringValue("Text", "Text");
            MyColor  = new ColorValue("Color", Vector4.One);
            SizeMult = new FloatValue("Size Mult", 1.5f);

            Text.ChangeEvent = TextChange;
            Font.ChangeEvent = TextChange;

            base.Create();
        }
        public override void Create()
        {
            SpawnPosition = new Vector3Value("Spawn Position");
            Color         = new ColorValue("Color");
            FlareCount    = new IntValue("Flare Count", 100);
            Distance      = new FloatValue("Distance", 2000);
            Speed         = new FloatValue("Speed", 1);
            MaxSparkTimer = new IntValue("Spark Timer", 400);

            AddTag(GameObjectTag.Update);

            base.Create();
        }
        public override void Create()
        {
            Delay  = new FloatValue("Delay", 60);
            Sphere = new BoolValue("Sphere");
            base.Create();

#if EDITOR
            if (ParentLevel.LevelForEditing)
            {
                AddTag(GameObjectTag._3DForward);
                ShapeRenderer.Load();
                ApplyScale(Vector3.One * 200, Vector3.Zero, false);
            }
#endif
        }
Ejemplo n.º 14
0
        public override void Create()
        {
            Nodes       = new ObjectListValue("Nodes", typeof(Path3DNode));
            TravelSpeed = new FloatValue("Travel Speed", 1);

#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                this.AddRightClickEvent("Add Node", AddNode);
                AddTag(GameObjectTag._3DForward);
                Nodes.ChangeEvent = NodeChange;
            }
#endif
            base.Create();
        }
        public override void Create()
        {
            CameraSpeed    = new FloatValue("Camera Speed", 0.1f);
            CameraDistance = new FloatValue("Camera Distance", 100);

            AddTag(GameObjectTag.Update);
            AddTag(GameObjectTag.WorldViewer);
            MyCamera = new Camera3D(MathHelper.PiOver4, 0.1f, 1000000);

            TimeSpeed = new FloatValue("TimeSpeed", 1);

            WorldCameraInterpolation = 1;
            MyPoint = new PolorPoint();

            base.Create();
        }
        public override void Create()
        {
            ModelCount             = new IntValue("Model Count");
            ModelCount.ChangeEvent = ModelCountChange;

            LineFlares   = new IntValue("Line Flares", 100);
            RandomFlares = new IntValue("Random Flare", 100);
            MaxItemTime  = new IntValue("Item Time", 10000);

            CameraSpeed = new FloatValue("Camera Speed", 0.1f);
            AddTag(GameObjectTag.Update);
            AddTag(GameObjectTag.WorldViewer);
            MyCamera = new Camera3D(MathHelper.PiOver4, 0.1f, 1000000);

            WorldCameraInterpolation = 1;

            base.Create();
        }
Ejemplo n.º 17
0
        public override void Create()
        {
            base.Create();
            MyCamera = new Camera2D();
            Values.Remove(Size);

            ZoomDistance = new FloatValue("Zoom Offset", 1, ChangeZoom);

            Position.ChangeEvent = ChangePosition;
            Rotation.ChangeEvent = ChangeRotation;


#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                Load();
                AddTag(GameObjectTag._2DForward);
            }
#endif
        }
        public override void Create()
        {
#if EDITOR && WINDOWS
            this.AddRightClickEvent("Add Emitter", AddEmitter);
#endif
            Emitters = new ObjectListValue("Emitters", typeof(ParticleEmitter));
            MaxParticles = new IntValue("MaxParticles", 50, CreateArray);
            Additive = new BoolValue("Additive", true);
            UseDepth = new BoolValue("Use Depth", true);
            MinVelocity = new Vector2Value("Min Velocity");
            MaxVelocity = new Vector2Value("Max Velocity", Vector2.One);
            MyEffect = new EffectValue("Effect","ParticleEffect", EffectHolderType.Deferred3D);
            ParticleDuration = new FloatValue("ParticleDuration", 10);
            ParticleDuration.ChangeEvent = DurationChange;
            MaxParticles.ChangeEvent = MaxChange;
            MyEffect.ChangeEvent = EffectChange;
            CreateArray();

            AddTag(GameObjectTag._3DDepthOver);
            AddTag(GameObjectTag.Update);
            base.Create();
        }
Ejemplo n.º 19
0
        public override void Create()
        {
            Layer          = new IntValue("Layer");
            CinematicDelay = new IntValue("Cinematic Delay");
            GameDelay      = new IntValue("Game Delay");
            ParticleType   = new IntValue("Particle Type");
            MinVelocity    = new Vector3Value("Min Velocity");
            MaxVelocity    = new Vector3Value("Max Velocity");
            MinColor       = new ColorValue("Min Color");
            MaxColor       = new ColorValue("Max Color");
            MinSize        = new FloatValue("Min Size", 80);
            MaxSize        = new FloatValue("Max Size", 120);
            CinematicOnly  = new BoolValue("Cinematic Only");
            NoInterpolate  = new BoolValue("No Interpolate", false);

            base.Create();
            Load();
            RemoveValue(Scale);
            RemoveValue(Rotation);
            AddTag(GameObjectTag._3DForward);
            AddTag(GameObjectTag.Update);
        }
Ejemplo n.º 20
0
        public override void Create()
        {
            Position = new Vector2Value("Position", EditType.Average);

            Size     = new Vector2Value("Size", Vector2.One, EditType.Scalar);
            Rotation = new FloatValue("Angle", RotationChange);
            MoveValuetoFront(Position, Size, Rotation);


#if EDITOR && WINDOWS
            if (ParentScene != null && ParentScene.GetType().IsSubclassOf(typeof(Basic2DScene)))
            {
                Basic2DScene s = (Basic2DScene)ParentScene;
                if (s.GridSize != null)
                {
                    Size.set(s.GridSize.get());
                }
            }
#endif

            base.Create();
        }
Ejemplo n.º 21
0
        public override void Create()
        {
            Arrow1 = new SliderArrow(this, 1, 0);
            Arrow2 = new SliderArrow(this, -1, (float)Math.PI);

            Font         = new SpriteFontValue("Font", "Fonts/FormTextFont");
            Text         = new StringValue("Text", "Text");
            MyColor      = new ColorValue("Color", Vector4.One);
            SizeMult     = new FloatValue("Size Mult", 1.5f);
            ChangeAmount = new FloatValue("Change Amount", 1);

            MinValue = new FloatValue("Min Value", -1000);
            MaxValue = new FloatValue("Max Value", 1000);

            TiedObject             = new ObjectValue("Tied Object", typeof(GameObject));
            TiedValue              = new StringValue("Tied Value");
            TiedObject.ChangeEvent = TieChange;
            TiedValue.ChangeEvent  = TieChange;

            base.Create();

            Size.set(new Vector2(256, 32));
        }
Ejemplo n.º 22
0
 public static void DummyRead(byte ByteType, BinaryReader Reader)
 {
     switch (ByteType)
     {
         case 0: BoolValue.DummyRead(Reader); break;
         case 1: ColorValue.DummyRead(Reader); break;
         case 2: EffectValue.DummyRead(Reader); break;
         case 3: FloatValue.DummyRead(Reader); break;
         case 4: ModelValue.DummyRead(Reader); break;
         case 5: ObjectValue.DummyRead(Reader); break;
         case 6: SpriteFontValue.DummyRead(Reader); break;
         case 7: StringValue.DummyRead(Reader); break;
         case 8: Texture2DValue.DummyRead(Reader); break;
         case 9: TextureCubeValue.DummyRead(Reader); break;
         case 10: Vector2Value.DummyRead(Reader); break;
         case 11: Vector3Value.DummyRead(Reader); break;
         case 12: Vector4Value.DummyRead(Reader); break;
         case 13: ObjectListValue.DummyRead(Reader); break;
         case 14: IntValue.DummyRead(Reader); break;
         case 15: EventValue.DummyRead(Reader); break;
         case 16: TypeValue.DummyRead(Reader); break;
     }
 }
        public override void Create()
        {
            turretLives             = new BoolValue("Turret Lives", false);
            turretLives.ChangeEvent = TurretLivesChange;

            newProduction             = new BoolValue("New Production", false);
            newProduction.ChangeEvent = NewProductionChange;

            newWaves             = new BoolValue("New Waves", false);
            newWaves.ChangeEvent = NewWavesChange;

            ignoreTurretBuild             = new BoolValue("Turret Build", false);
            ignoreTurretBuild.ChangeEvent = IgnoreTurretBuildChange;

            turretLivesCount             = new IntValue("Turret Lives Count", 3);
            turretLivesCount.ChangeEvent = TurretLivesCountChange;

            unitsCanTargetUnits             = new BoolValue("Units Can Target Units", false);
            unitsCanTargetUnits.ChangeEvent = UnitsCanTargetUnitsChange;

            turretsCanTargetTurrets             = new BoolValue("Turrets Can Target Turrets", true);
            turretsCanTargetTurrets.ChangeEvent = TurretsCanTargetTurretsChange;

            cellsCostMult             = new FloatValue("Cells Cost Mult");
            cellsCostMult.ChangeEvent = CellsCostMustChange;

            energyCostMult             = new FloatValue("Energy Cost Mult");
            energyCostMult.ChangeEvent = EnergyCostMultChange;

            playerRespawnTime             = new IntValue("Player Respawn Time");
            playerRespawnTime.ChangeEvent = PlayerRespawnTimeChange;

            startingTurretDistance             = new FloatValue("Starting Turret Distance", StartingTurretDistance);
            startingTurretDistance.ChangeEvent = StartingTurretDistanceChange;

            base.Create();
        }
 public override void Create()
 {
     Visible    = new BoolValue("Visible");
     SizeChange = new FloatValue("Size Change", 0.01f);
     base.Create();
 }
Ejemplo n.º 25
0
 public override void Create()
 {
     Z         = new FloatValue("Z");
     NodeOrder = new IntValue("Node Order");
     base.Create();
 }
 public override void Create()
 {
     Z           = new FloatValue("Z");
     CenterOrder = new IntValue("Center Order");
     base.Create();
 }
Ejemplo n.º 27
0
 public static void DrawSprite(Texture2D tex, Vector2Value Position, Vector2Value Size, FloatValue Rotation, Color color)
 {
     DrawSprite(tex, Position.get(), Size.get(), Rotation.getAsRadians(), color);
 }
Ejemplo n.º 28
0
 public virtual void SetValues(Vector2 Position, string Text, float Min, float Max, FloatValue SliderValue)
 {
     this.Position.set(Position);
 }