AGS.Editor.DataFileWriter.GUIsWriter.WriteGUIControl C# (CSharp) Method

WriteGUIControl() private method

Writes the common elements of this GUIControl to the file. Type-specific data is written only by the respective method for that type.
private WriteGUIControl ( AGS.Types.GUIControl control, int flags, string events ) : void
control AGS.Types.GUIControl
flags int
events string
return void
            private void WriteGUIControl(GUIControl control, int flags, string[] events)
            {
                writer.Write(flags); // flags
                writer.Write(control.Left);
                writer.Write(control.Top);
                writer.Write(control.Width);
                writer.Write(control.Height);
                writer.Write(control.ZOrder);
                writer.Write(0); // activated
                FilePutNullTerminatedString(control.Name, NativeConstants.MAX_GUIOBJ_SCRIPTNAME_LEN + 1, writer);
                writer.Write(events.Length); // numSupportedEvents
                foreach (string sevent in events)
                {
                    FilePutNullTerminatedString(sevent, NativeConstants.MAX_GUIOBJ_EVENTHANDLER_LEN + 1, writer);
                }
            }

Same methods

DataFileWriter.GUIsWriter::WriteGUIControl ( AGS.Types.GUIControl control, int flags ) : void