Advertisement
Guest User

Untitled

a guest
May 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BOO 2.01 KB | None | 0 0
  1. #pragma strict
  2. //steve Button
  3. var allOptions = true;
  4. var tmode = false;
  5.  
  6.  
  7. var hover : String;
  8. var icon : Texture2D;
  9. var PanelInfo : Texture2D;
  10.  
  11. var White : GUISkin;
  12. var xpos : int = 10;
  13. var ypos : int = 20;
  14. var output : String;
  15.  
  16.  
  17. static var TitelTekst: String;
  18. var stringTitel = ("Titel: " + TitelTekst);
  19.  
  20. static var ArtistTekst: String;
  21. var stringArtist = ("Artist: " + ArtistTekst);
  22.  
  23. var jaarTekst: String;
  24. var stringJaar = ("Jaar:  " + jaarTekst);
  25.  
  26. var MatTekst: String;
  27. var stringMat = ("Materiaal: " + MatTekst);
  28.  
  29. var textIsOn : boolean = false;
  30. var stringTekst = "Hello World\nI've got 2 lines...";
  31.  
  32.  
  33.  
  34. function OnGUI () {
  35.  
  36. GUI.skin = White;
  37.  
  38.    // Make a toggle control that allows the user to edit some extended options.
  39. allOptions = GUI.Toggle (Rect (200,28,150,20), allOptions, "  Panels");
  40.  
  41. GUI.Label(Rect(Screen.width -250, (Screen.height / 2) - 240, PanelInfo.width,PanelInfo.height), PanelInfo);
  42. GUI.Label(Rect(Screen.width -240, (Screen.height / 2) - 235,PanelInfo.width,PanelInfo.height),  GUIContent ("Info Panel"));
  43. GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 120,PanelInfo.width, 150), stringTitel);
  44. GUI.Label  (Rect(Screen.width -240, (Screen.height / 2) - 100,PanelInfo.width, 150), stringArtist);
  45. GUI.Label  (Rect(Screen.width -240, (Screen.height / 2) - 80,PanelInfo.width, 150), stringJaar);
  46. GUI.Label (Rect(Screen.width -240, (Screen.height / 2) - 60,PanelInfo.width, 150), stringMat);
  47. GUI.Label (Rect(Screen.width -240, (Screen.height / 2) +20,PanelInfo.width, 150), stringTekst);
  48.  
  49.  
  50. /////Turbo Mode
  51. tmode = GUI.Toggle (Rect (400,28,150,20),tmode,  " Turbo Mode");
  52. if(tmode){
  53.    var handl3 = GameObject.Find("PlayerCube");
  54.  var other3 = handl3.gameObject.GetComponent("Wowmove");
  55.  other3.isWalking = !other3.isWalking;
  56.  }
  57.  
  58.  
  59. ///////
  60.  
  61. GUI.enabled = allOptions;
  62. GUI.enabled = true;
  63.  
  64.  
  65.  
  66.   if (GUI.Button(Rect(xpos,ypos,icon.width,icon.height),GUIContent(icon, "Color")))
  67.   {
  68.    Application.Quit();
  69.    // DoSomething();
  70.   }
  71.  
  72.  //end
  73.  
  74.  
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement