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 & 1 user online
LURKing
23
points ]
 (3 votes)
Created 2020-05-09 17:56
3 weeks 16 hours ago
10
points ]
 (1 vote)
Created 2020-05-16 23:15
2 weeks 11 hours ago
Created 2020-05-14 12:56
2 weeks 2 days ago
224
points ]
 (23 votes)
Created 2012-10-20 09:56
7 years 32 weeks ago
Gangler
10
points ]
 (1 vote)
Created 2020-05-12 22:59
2 weeks 4 days ago
afroninja
46
points ]
 (5 votes)
Created 2020-01-15 07:47
19 weeks 4 days ago
20
points ]
 (2 votes)
Created 2020-04-29 18:35
4 weeks 3 days ago
140
points ]
 (15 votes)
Created 2013-06-09 21:05
6 years 51 weeks ago
20
points ]
 (2 votes)
Created 2020-05-02 19:58
4 weeks 14 hours ago
20
points ]
 (2 votes)
Created 2016-07-28 12:06
3 years 43 weeks ago
7YearBitch
20
points ]
 (2 votes)
Created 2020-03-16 20:09
10 weeks 5 days ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
18 weeks 1 day ago
40
points ]
 (4 votes)
Created 2020-01-23 12:57
18 weeks 2 days ago
30
points ]
 (4 votes)
Created 2020-01-26 14:10
17 weeks 6 days ago
170
points ]
 (17 votes)
Created 2011-09-05 14:13
8 years 38 weeks ago
Sauce
71
points ]
 (8 votes)
Created 2018-08-22 19:15
1 year 40 weeks ago
Lord Kv
160
points ]
 (16 votes)
Created 2015-03-12 14:45
5 years 11 weeks ago
45
points ]
 (6 votes)
Created 2009-08-15 13:37
10 years 41 weeks ago
MisanthropX
74
points ]
 (8 votes)
Created 2019-12-05 20:57
25 weeks 2 days ago
Redon
105
points ]
 (11 votes)
Created 2019-10-24 21:41
31 weeks 2 days ago
Who's new
  • Spr1te
  • Akari
  • LURKing
  • Antknee55
  • gmiz