Beispiel #1
0
        public override void Save(RSFileWriter bw)
        {
            base.Save(bw);

            bw.Log("* * * SMImageButton * * *\n");
            bw.WriteByte(10);
            bw.WriteInt64(ImgA.ImageId);
            bw.WriteByte(13);
            bw.WriteInt32((Int32)ContentArangement);
            if (BuiltInImage != null)
            {
                bw.WriteByte(14);
                bw.WriteString(BuiltInImage);
            }

            bw.WriteByte(0);
        }
Beispiel #2
0
        public override void Save(RSFileWriter bw)
        {
            bw.Log("= = = SOUND = = =\n");
            bw.WriteByte(10);
            bw.WriteString(AudioType);

            bw.WriteByte(11);
            bw.WriteInt32(p_data.Length);
            bw.WriteBytes(p_data);

            bw.WriteByte(12);
            bw.WriteString(Name);

            bw.WriteByte(13);
            bw.WriteString(FileName);

            bw.WriteByte(0);
            Modified = false;
        }
Beispiel #3
0
        public void Save(RSFileWriter bw)
        {
            bw.Log("* * * AREA * * *\n");
            bw.WriteByte(11);
            bw.WriteBool(Selected);

            bw.WriteByte(12);
            bw.WriteInt32(RelativeArea.X);
            bw.WriteInt32(RelativeArea.Y);
            bw.WriteInt32(RelativeArea.Width);
            bw.WriteInt32(RelativeArea.Height);

            bw.WriteByte(13);
            bw.WriteInt32((int)Dock);

            bw.WriteByte(14);
            bw.WriteInt32((int)BackType);

            if (BackgroundImage != null)
            {
                bw.WriteByte(15);
                bw.WriteImage(BackgroundImage);
            }

            bw.WriteByte(16);
            bw.WriteInt32(BackgroundImageOffset.X);
            bw.WriteInt32(BackgroundImageOffset.Y);

            bw.WriteByte(17);
            bw.WriteInt32((int)Screen);

            bw.WriteByte(18);
            bw.WriteBool(DockModified);

            // end of object
            bw.WriteByte(0);
        }
Beispiel #4
0
        public override void Save(RSFileWriter bw)
        {
            base.Save(bw);

            bw.Log("* * * SMImage * * *\n");
            bw.WriteByte(10);
            bw.WriteInt64(Img.ImageId);
            bw.WriteInt32((Int32)ContentScaling);

            bw.WriteByte(13);
            bw.WriteInt32((Int32)ContentArangement);

            bw.WriteByte(14);
            bw.WriteInt32(SourceOffsetX);
            bw.WriteInt32(SourceOffsetY);

            if (BuiltInImage != null)
            {
                bw.WriteByte(15);
                bw.WriteString(BuiltInImage);
            }

            bw.WriteByte(0);
        }