This commit is contained in:
jparent 2016-01-31 13:40:41 -05:00
commit 47e12265fb
2 changed files with 5 additions and 6 deletions

View File

@ -41,12 +41,11 @@ public class GUIGameplay : MonoBehaviour {
break; break;
} }
//beardTex.Resize(10, 10); //beardTex.Resize(10, 10);
int offset =(int) ((Screen.width - 3 * boxWidth) / 4f); int offset = (int)((Screen.width - 3 * boxWidth) / 5f);
x += offset ; x = (int) (((Screen.width - boxWidth*3) / 3 * (1+1/6) * i) + (Screen.width - boxWidth*3)/6);
GUI.Box(new Rect(x , 0, boxWidth, 90), beardTex, boxStyle); GUI.Box(new Rect(x , 0, boxWidth, 90), beardTex, boxStyle);
for (int j = 0;j< p.letters.Length;++j) for (int j = 0;j< p.letters.Length;++j)
{ {
char character = (char) p.letters[j]; char character = (char) p.letters[j];
@ -57,7 +56,7 @@ public class GUIGameplay : MonoBehaviour {
{ {
Color temp = GUI.color ; Color temp = GUI.color ;
GUI.color = new Color(1f, 1f, 1f, 0.50f); GUI.color = new Color(1f, 1f, 1f, 0.50f);
GUI.DrawTexture(new Rect(x + j * 30 + 20 , 40, 30, 30), rune); GUI.DrawTexture(new Rect(x + j * 40 + 20 , 40, 40, 40), rune);
GUI.color = temp; GUI.color = temp;
} }
@ -68,7 +67,7 @@ public class GUIGameplay : MonoBehaviour {
} }
x += boxWidth; //x += boxWidth;
} }
} }

Binary file not shown.