Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hs-furtwangen/TheBook
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Gärtner committed Apr 12, 2015
2 parents a89ae2a + d68ad18 commit 1c58d63
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Assets/Scripts/InGameGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,23 @@ public class InGameGui : MonoBehaviour
private Vector2 bookSize;
private Vector2 boxSize;

//determines if the book is shown or not after clicking the book icon
private bool _enableBook;

//TODO: dynamic size regarding the actual number of total rules
private static int _ruleAmount = 6;
private bool[] existingBookPages = new bool[_ruleAmount];


// Use this for initialization
void Start ()
{
BookStyle.normal.textColor = Color.black;
BookStyle.fontSize = 20;
BookStyle.font = theFont;
BookStyle.wordWrap = true;

_enableBook = false;
}

// Update is called once per frame
Expand Down Expand Up @@ -66,7 +76,16 @@ private void ShowBook()


void OnGUI () {
ShowBook();

//if (GUI.Button(new Rect(Screen.width), "Book Icon", BookStyle))
// {

// }
if (_enableBook)
{
ShowBook();
}

}

}

0 comments on commit 1c58d63

Please sign in to comment.