Configure Interface

ConfigureInterface(){}

 

Some of this may be confusing at first. It would be a good idea to study bzgame_init.cfg first.

 

            Font Setup

 

            CreateFont(string name, string font);

            Creates a font for use in game.

            string name: font name for other controls to use.

            string font: name of font (Eg. bg10.bmf)

 

 

 

            DefineControlType

 

            DefineControlType(string name, string base){}

            Defines a control template that can be used in CreateControl.

            string name: name of new template.

            string base: base class..

 

            ColorGroup setup

 

            DefineColorGroup(string name){}

            Defines a colorgroup.

            string name: name to call colorgroup.

            See: ColorGroup reference.

 

                        Functions

 

                        Foreground(int x, int r, int g, int b, int a)

                        Sets the foreground color. This is usually used for font colors and system buttons.

                        x: Number for version. Like selected highligh, unselected, etc. See ColorGroup specification.

                        r,g,b,a: Red, green, blue, alpha.

 

                        Background(int x, int r, int g, int b, int a)

                        Sets the background color. This is the color for most of the actual portions of the interface controls.

                        x: Number for version. Like selected highligh, unselected, etc. See ColorGroup specification.

                        r,g,b,a: Red, green, blue, alpha.

 

                        Gradient(int x, int r, int g, int b, int a)

                        Sets the gradient color.

                        x: Number for version. Like selected highligh, unselected, etc. See ColorGroup specification.

                        r,g,b,a: Red, green, blue, alpha.

 

            DefaultSound setup

 

            DefaultSound(name, filename);

            Sets up the default sound for an event.

            name: Name of  event for sound to play on. (See Sound Reference.)

            filename: Filename.

 

 

ConfigureCursors

ConfigureCursors(){}

 

            CreateCursor(name)

            Creates a cursor.

            name: name of cursor.

 

                        Functions

 

                        Size(int x, int y)

                        Size of cursor.

                        x,y: x/y size.

 

                        Hotspot(int x, int y)

                        Location of hotspot.

                        x,y: x/y coordinates.

 

                        Image(filename)

                        Image to use.

                        filename: filename.

 

                        Frames(int x, int y)

                        Frames.

                        x,y: Unknown.

 

            StandardCursors(){}

            Sets up standard cursors.

 

                        Name(cursor)

                        Sets up the standard cursors for event specified by name.

                        name: name of  standard cursor. Available are "Default",  "IBeam", "Wait", "No"

                        cursor: cursor to use.