Creating a gui

From Rigs Of Rods

Ok, since there were a load of requests (1!!) I am going to make a tutorial on making your own GUI for RoR!

Ok first you will need an image editing program like paint.net.

[edit] Step 1: Creating a material script

Before we get anywhere, we need a .meterial script for our background. For ease, i have included one:

material menu/default

{

technique

{

pass

{

scene_blend alpha_blend

alpha_rejection greater 128


texture_unit

{

texture background.jpg

}

}

}

}

[edit] Step 2: creating a background

Ok, now we need a image to use as our background. So open up paint.net (Or your image editor) and create a 639x400 image. now make it any color you like, green, orange, blue, whatever. save it as RoR\\Data\\background.jpg

[edit] Step 3: Modifying the overlay

So, now you have your nice image you need to get it ingame, to do this open loader.overlay in \\data and look for the line:

material Core/StatsBlockCenter

and change it to:

material menu/default

you now have a menu :)

Personal tools