public override void Create()
 {
     MinAlpha = 0.6f;
     Font     = new SpriteFontValue("Font");
     Text     = new StringValue("Text");
     base.Create();
 }
        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 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;
     }
 }
示例#4
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));
        }