home *** CD-ROM | disk | FTP | other *** search
- // ================================
- // BATTLEZONE EDITOR INITIALIZATION
- // ================================
-
- //
- // CONFIGURE FONTS
- //
- ConfigureInterface()
- {
- // large font: bank gothic medium 12-point
- CreateFont("LARGE", "bg12.bmf");
-
- // medium font: bank gothic medium 10-point
- CreateFont("MEDIUM", "bg10.bmf");
-
- // small font: bank gothic medium 8-point
- CreateFont("SMALL", "bg08.bmf");
-
- // tiny font: small fonts 5-point
- CreateFont("TINY", "small.bmf");
-
- // use medium as the system font
- CreateFont("SYSTEM", "bg10.bmf");
- }
-
- //
- // CONFIGURE COLORS
- //
- ConfigureInterface()
- {
- DefineColorGroup("DEFAULT")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 0, 127, 255, 127);
- Gradient(0, 0, 63, 127, 127);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 190, 200, 255, 127);
- Gradient(1, 122, 142, 226, 127);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 127, 191, 255, 127);
- Gradient(2, 63, 95, 127, 127);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 255, 255, 255, 127);
- Gradient(3, 127, 127, 127, 127);
- }
-
- DefineColorGroup("MAGENTA")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 255, 0, 127, 127);
- Gradient(0, 127, 0, 63, 127);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 255, 190, 200, 127);
- Gradient(1, 226, 122, 142, 127);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 255, 127, 191, 127);
- Gradient(2, 127, 63, 95, 127);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 255, 255, 255, 127);
- Gradient(3, 127, 127, 127, 127);
- }
-
- DefineColorGroup("LISTBOX")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 0, 0, 0, 255);
- Gradient(0, 0, 0, 0, 255);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 127, 0, 63, 255);
- Gradient(1, 127, 0, 63, 255);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 63, 63, 63, 255);
- Gradient(2, 63, 63, 63, 255);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 255, 0, 127, 255);
- Gradient(3, 255, 0, 127, 255);
- }
-
- DefineColorGroup("BLACKBLUE")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 0, 0, 0, 255);
- Gradient(0, 0, 0, 0, 255);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 0, 63, 127, 255);
- Gradient(1, 0, 63, 127, 255);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 63, 63, 63, 255);
- Gradient(2, 63, 63, 63, 255);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 0, 127, 255, 255);
- Gradient(3, 0, 127, 255, 255);
- }
-
- DefineColorGroup("BACKGROUND")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 0, 0, 0, 127);
- Gradient(0, 0, 0, 0, 127);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 0, 0, 0, 127);
- Gradient(1, 0, 0, 0, 127);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 0, 0, 0, 127);
- Gradient(2, 0, 0, 0, 127);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 0, 0, 0, 127);
- Gradient(3, 0, 0, 0, 127);
- }
-
- DefineColorGroup("WHITE")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 255, 255, 255, 255);
- Gradient(0, 255, 255, 255, 255);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 255, 255, 255, 255);
- Gradient(1, 255, 255, 255, 255);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 255, 255, 255, 255);
- Gradient(2, 255, 255, 255, 255);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 255, 255, 255, 255);
- Gradient(3, 255, 255, 255, 255);
- }
-
- DefineColorGroup("GROUPICON")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 255, 255, 255, 255);
- Gradient(0, 255, 255, 255, 255);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 255, 0, 0, 255);
- Gradient(1, 255, 0, 0, 255);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 255, 255, 255, 255);
- Gradient(2, 255, 255, 255, 255);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 255, 0, 0, 255);
- Gradient(3, 255, 0, 0, 255);
- }
- }
-
- //
- // CONFIGURE CURSORS
- //
- ConfigureCursors()
- {
- // DEFAULT CURSOR
- CreateCursor("Default")
- {
- Size(32,32);
- Hotspot(6, 6);
- Image("cursor.tga");
- Frames(0, 7);
- }
-
- // HIGHLIGHT CURSOR
- CreateCursor("Highlight")
- {
- Size(32,32);
- Hotspot(6, 6);
- Image("cursor.tga");
- Frames(8, 15);
- }
-
- // SET STANDARD CURSORS
- StandardCursors()
- {
- Default("Default");
- IBeam("Default");
- Wait("Default");
- No("Default");
- }
- }
-