Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- //steve Button
- var allOptions = true;
- var tmode = false;
- var hover : String;
- var icon : Texture2D;
- var PanelInfo : Texture2D;
- var White : GUISkin;
- var xpos : int = 10;
- var ypos : int = 20;
- var output : String;
- static var TitelTekst: String;
- var stringTitel = ("Titel: " + TitelTekst);
- static var ArtistTekst: String;
- var stringArtist = ("Artist: " + ArtistTekst);
- var jaarTekst: String;
- var stringJaar = ("Jaar: " + jaarTekst);
- var MatTekst: String;
- var stringMat = ("Materiaal: " + MatTekst);
- var textIsOn : boolean = false;
- var stringTekst = "Hello World\nI've got 2 lines...";
- function OnGUI () {
- GUI.skin = White;
- // Make a toggle control that allows the user to edit some extended options.
- allOptions = GUI.Toggle (Rect (200,28,150,20), allOptions, " Panels");
- GUI.Label(Rect(Screen.width -250, (Screen.height / 2) - 240, PanelInfo.width,PanelInfo.height), PanelInfo);
- GUI.Label(Rect(Screen.width -240, (Screen.height / 2) - 235,PanelInfo.width,PanelInfo.height), GUIContent ("Info Panel"));
- GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 120,PanelInfo.width, 150), stringTitel);
- GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 100,PanelInfo.width, 150), stringArtist);
- GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 80,PanelInfo.width, 150), stringJaar);
- GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 60,PanelInfo.width, 150), stringMat);
- GUI.Label (Rect(Screen.width -240, (Screen.height / 2) +20,PanelInfo.width, 150), stringTekst);
- /////Turbo Mode
- tmode = GUI.Toggle (Rect (400,28,150,20),tmode, " Turbo Mode");
- if(tmode){
- var handl3 = GameObject.Find("PlayerCube");
- var other3 = handl3.gameObject.GetComponent("Wowmove");
- other3.isWalking = !other3.isWalking;
- }
- ///////
- GUI.enabled = allOptions;
- GUI.enabled = true;
- if (GUI.Button(Rect(xpos,ypos,icon.width,icon.height),GUIContent(icon, "Color")))
- {
- Application.Quit();
- // DoSomething();
- }
- //end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement