mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 02:01:06 +00:00
GUI Tweaks
This commit is contained in:
parent
3107c23599
commit
bc6f577139
@ -41,12 +41,11 @@ public class GUIGameplay : MonoBehaviour {
|
||||
break;
|
||||
}
|
||||
//beardTex.Resize(10, 10);
|
||||
int offset =(int) ((Screen.width - 3 * boxWidth) / 4f);
|
||||
x += offset ;
|
||||
int offset = (int)((Screen.width - 3 * boxWidth) / 5f);
|
||||
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);
|
||||
|
||||
|
||||
|
||||
for (int j = 0;j< p.letters.Length;++j)
|
||||
{
|
||||
char character = (char) p.letters[j];
|
||||
@ -57,7 +56,7 @@ public class GUIGameplay : MonoBehaviour {
|
||||
{
|
||||
Color temp = GUI.color ;
|
||||
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;
|
||||
|
||||
}
|
||||
@ -68,7 +67,7 @@ public class GUIGameplay : MonoBehaviour {
|
||||
|
||||
|
||||
}
|
||||
x += boxWidth;
|
||||
//x += boxWidth;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user