public void Write(AssetColor color)
 {
     base.Write(color.R);
     base.Write(color.G);
     base.Write(color.B);
     base.Write(color.A);
 }
Exemple #2
0
 public AssetFOG(string assetName) : base(assetName, AssetType.FOG, BaseAssetType.Fog)
 {
     EndColor      = new AssetColor();
     StartColor    = new AssetColor();
     FogDensity    = 1;
     StartDistance = 100;
     EndDistance   = 400;
 }
 public GrassMeshVertex(EndianBinaryReader reader)
 {
     X       = reader.ReadSingle();
     Y       = reader.ReadSingle();
     Z       = reader.ReadSingle();
     Height  = reader.ReadSingle();
     NormalX = reader.ReadSingle();
     NormalY = reader.ReadSingle();
     NormalZ = reader.ReadSingle();
     Color   = reader.ReadColor();
 }
        }                                  // not in scooby

        public AssetUIFT(string assetName, Vector3 position) : base(assetName, AssetType.UIFT, BaseAssetType.UIFont, position)
        {
            BackgroundColor    = new AssetColor(128, 128, 128, 128);
            FontColor          = new AssetColor(255, 255, 255, 255);
            Padding_Top        = 2;
            Padding_Bottom     = 2;
            Padding_Left       = 2;
            Padding_Right      = 2;
            Spacing_Horizontal = 24;
            Spacing_Vertical   = 24;
            Char_Width         = 24;
            Char_Height        = 24;
        }
Exemple #5
0
        public DynaGObjectTextBox(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, DynaType.game_object__text_box, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = dynaDataStartPosition;

                DefaultTextID = reader.ReadUInt32();
                XPosition     = reader.ReadSingle();
                YPosition     = reader.ReadSingle();
                Width         = reader.ReadSingle();
                Height        = reader.ReadSingle();
                Font          = (FontEnum)reader.ReadInt32();
                TextWidth     = reader.ReadSingle();
                TextHeight    = reader.ReadSingle();
                CharSpacingX  = reader.ReadSingle();
                CharSpacingY  = reader.ReadSingle();
                Color         = reader.ReadColor();
                LeftMargin    = reader.ReadSingle();
                TopMargin     = reader.ReadSingle();
                RightMargin   = reader.ReadSingle();
                BottomMargin  = reader.ReadSingle();
                XAlignment    = reader.ReadInt32();
                if (Version == 3)
                {
                    YAlignment = reader.ReadInt32();
                }
                ExpandMode          = reader.ReadInt32();
                MaxHeight           = reader.ReadSingle();
                BackgroundMode      = reader.ReadInt32();
                BackdropColor       = reader.ReadColor();
                BackgroundTextureID = reader.ReadUInt32();
                if (Version == 3)
                {
                    BackgroundBorderU      = reader.ReadSingle();
                    BackgroundBorderV      = reader.ReadSingle();
                    BackgroundBorderWidth  = reader.ReadSingle();
                    BackgroundBorderHeight = reader.ReadSingle();
                    ShadowColor            = reader.ReadColor();
                    ShadowOffsetX          = reader.ReadSingle();
                    ShadowOffsetY          = reader.ReadSingle();
                }
                else
                {
                    ShadowColor = new AssetColor();
                }
            }
        }
 public StyleStyleEntry()
 {
     Color = new AssetColor();
 }