Kerberos | 2011-08-27 04:13
Advanced Editing Script
Adds a new GUI whenever F7 is pressed that has many options for coop editing feautres

Something I made for newbies to Sauerbraten, or people who don't like using the command line.

This creates a menu when F7 is pressed (Or whatever key you bind it to) with three tabs: Materials, Jump Pads, Teleporters and Water Settings.

First tab has all materials, just press the button for what you want.

Second tab has Jump Pads and sliders for the z, x and y values.

Third tab has sliders for teleporters and teleporter destinations, by default the max is 10, can be changed to whatever you want.

Fourth tab has water settings, which are water color, water fall color, water fog and water Specularity.

To install, put the .cfg file into the sauerbraten directory, and add a line that says "exec aegui.cfg" without the quotes to your autoexec.cfg file (Also in the main sauerbraten directory).

// Binds key to the GUI
bind "F7" "showgui Materials"
//Creats a new GUI named Materials
newgui "Materials" [
guititle "Edit GUI v1.0 By Aryl" //Title of the GUI, Aryl is my in-game name.
guibutton "Air" "air" //Adds a button to the GUI named Air, and inputs command air when pressed
guibutton "Water" "water"
guibutton "Lava" "lava"
guibutton "Glass" "glass"
guibutton "Clip" "clip"
guibutton "Noclip" "noclip"
guibutton "Gameclip" "gameclip"
guibutton "Death" "death"
guitab "Jump Pads" //Adds a new tab to the GUI called Jump Pads
guibutton "Jump Pad" "newent jumppad $z $y $x" //Adds a button called Jump Pad, when pressed inputs command newent jumppad with the values of $z, $x and $y
guislider z 0 100; //Adds a slider to the GUI, min value is 0, max value is 100, the value is saved as $z
guislider y -50 50; //Adds a slider to the GUI, min value of -50 max of 50, value is saved as $y
guislider x -50 50;
guitab "Teleporters" //Adds a new tab to the GUI named Teleporters
guibutton "Teleporter" "newent teleport $teleport" //Adds a button called Teleporter, when pressed inputs command newent teleport with the value of $teleport
guislider teleport 0 10; //Adds a slider to the GUI, min of 0, max of 10, saves value as $teleporter
guibar //Adds a horizontal bar to the GUI, serves no function other than looks
guibutton "Teledest" "newent teledest $teledest"
guislider teledest 0 10
guitab "Water Settings"
guibutton "Water Color" "watercolour $red $green $blue" //Water color can be changed too, input command is a simple mixing of red, green, and blue with max values of 255. UK spelling of color (colour) is required.
guislider red 0 255;
guislider green 0 255;
guislider blue 0 255;
guibar
guibutton "Water Fall Color" "waterfallcolour $rred $ggreen $bblue" //Changes the color of flowing water. If water has any of its faces other than the top exposed, these colors with apply.
guislider rred 0 255;
guislider ggreen 0 255;
guislider bblue 0 255;
guibar
guibutton "Water Fog" "waterfog $fogg" //Changes how foggy the water is. If the value of the slider was stored as $fog, the fog would instantly change upon changing the slider, but creates spamming of the consol as it sends a new message to all players every time fog is changed, also creats lag.
guislider fogg 0 150;
guibutton "Water Specularity" "waterspec $specularity" //Not really sure what water specularity is, seems to make no visual changes, I think it changes how light interacts with water. Default value is 150.
guislider specularity 0 150;
]

aegui.cfg (2.71 KB)
0
points
 (0 votes)
User login
Users on Quadropolis
1 guest & no users online
vampirefrog
Created 2024-04-11 22:25
2 weeks 14 hours ago
vampirefrog
29
points ]
 (4 votes)
Created 2010-05-30 10:00
13 years 47 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
3 years 26 weeks ago
Zoocata
10
points ]
 (1 vote)
Created 2024-02-11 21:20
10 weeks 4 days ago
vampirefrog
10
points ]
 (1 vote)
Created 2023-07-23 20:02
39 weeks 4 days ago
36
points ]
 (4 votes)
Created 2020-12-10 12:49
3 years 19 weeks ago
Created 2023-12-12 23:34
19 weeks 2 days ago
Zoocata
Created 2023-11-27 23:00
21 weeks 3 days ago
20
points ]
 (2 votes)
Created 2023-10-01 15:21
29 weeks 4 days ago
20
points ]
 (2 votes)
Created 2021-05-24 00:01
2 years 48 weeks ago
9
points ]
 (1 vote)
Created 2023-06-13 17:54
45 weeks 2 days ago
Zoocata
27
points ]
 (3 votes)
Created 2023-05-05 20:58
50 weeks 6 days ago
Zoocata
18
points ]
 (2 votes)
Created 2023-03-02 01:40
1 year 8 weeks ago
Getridou
Created 2023-01-29 23:27
1 year 12 weeks ago
Created 2023-01-19 19:36
1 year 13 weeks ago
Getridou
Created 2023-01-10 17:10
1 year 15 weeks ago
Getridou
Created 2023-01-01 14:30
1 year 16 weeks ago
Getridou
10
points ]
 (1 vote)
Created 2023-01-01 10:58
1 year 16 weeks ago
Getridou
Created 2023-01-01 10:49
1 year 16 weeks ago
afroninja
17
points ]
 (2 votes)
Created 2023-01-01 06:32
1 year 16 weeks ago
Who's new
  • ColdIV
  • Aidan
  • Hunk
  • letic86
  • BATMAN