12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- private var textAreaString = "ANIMATIONS";
- private var Xpos = 30;
- private var Ypos = 50;
- private var Ypomak = 20;
- private var Xsirina = 130;
- private var Ysirina = 30;
- private var GUIvisible = 1;
- private var bla = 0;
- private var GUIstat = "Hide GUI";
- var rotateTex : Texture2D;
- var heightTex : Texture2D;
- var zoomTex : Texture2D;
- function OnGUI () {
- Ypos = 50;
-
-
- if (GUIvisible > 0){
- //textAreaString = GUI.TextArea (Rect (18, 25, 150, 300), textAreaString);
- GUI.Box (Rect (18,25,150,300), textAreaString);
-
- GUI.Label (Rect (Xpos, Ypos, Xsirina, Ysirina), "0 - Backwalk");
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "1 - Walk");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "2 - Left sidewalk ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "3 - Right sidewalk");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "4 - Sneak ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "5 - Run ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "6 - Jump ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "7 - Ho Ho Ho ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "8 - Give ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "9 - Use ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "I - Idle ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "S - Stand still ");
- Ypos = Ypos + Ypomak;
- GUI.Label (Rect (Xpos, Ypos + Ypomak, Xsirina, Ysirina), "T - T pose ");
-
- GUI.Label (Rect (Screen.width - 120,20,100,100), rotateTex);
- GUI.Label (Rect (Screen.width - 120,140,100,100), heightTex);
- GUI.Label (Rect (Screen.width - 120,260,100,100), zoomTex);
-
-
- }
-
- if (GUI.Button (Rect (20,Screen.height - 50,80,30), GUIstat)) {
- if (GUIvisible == 0) {
- GUIvisible = 1;
- GUIstat = "Hide GUI"; }
- else {
- GUIvisible = 0;
- GUIstat = "Show GUI";
- }
- }
-
-
-
- }
|