last thing, when I click on a button I would like to change the colour of it until something else happens.
At the moment I am using a translucent empty text box on the top of the button… but I am sure there is a more elegant way to do this.
Any idea where to start?
For instance if I had to change this
var mySkin : GUISkin;
function OnGUI() {
GUI.skin = mySkin;
GUI.Box (Rect (10+L1,10,150,125+20), "Layout Selection");
if (GUI.Button (Rect (25+L1,20+45+LL1,120,20), "5 Mullions")) {
B100 = true;
}
if (B100) {
//this adds the translucent stuff on the button '5 mullions'
GUI.Box (Rect (10+L1,20+45+LL1-5,150,35), " ");
GUI.Box (Rect (10+L1,20+45+LL1-5,150,35), " ");
GUI.Box (Rect (10+L1,20+45+LL1-5,150,35), " ");
GUI.Box (Rect (10+L2,10,150,125+20), "Tilt Selection");
if (GUI.Button (Rect (25+L2,20+45+LL1,120,20), "+45")) {
B110 = true;
}
if (GUI.Button (Rect (25+L2,20+45+LL2,120,20), "0")) {
B120 = true;
}
}