Ejemplo n.º 1
0
    public void UpdateNoteButtonList()
    {
        gazeUI.Clear();

        notes = clueManager.GetFoundClues();

        for (int i = 0; i < notes.Count; i++)
        {
            buttonCallbackListener  buttonAction  = NoteAccusation;
            buttonCallbackListener2 buttonAction2 = NoteSelection;
            gazeUI.Add(new GazeButton(new Rect(notebookX + noteWidth / 2 + offset * 2, notebookY + notebookHeight / 6 + (noteHeight * i), noteWidth, noteHeight), notes[i], gazeStyle, buttonAction, buttonAction2));
        }
    }
Ejemplo n.º 2
0
        public GazeButton(Rect position, string content, GUIStyle myStyle, buttonCallbackListener callback, buttonCallbackListener2 callback2)
        {
            this.position = position;
            this.content  = content;

            colliderPosition = new Rect(position.x, Camera.main.pixelHeight - position.y - position.height, position.width, position.height);

            if (myStyle != null)
            {
                initStyle(myStyle);
            }
            actionToDo  = callback;
            actionToDo2 = callback2;
        }
Ejemplo n.º 3
0
        public GazeButton(Rect position,string content,GUIStyle myStyle,buttonCallbackListener callback, buttonCallbackListener2 callback2)
        {
            this.position = position;
            this.content = content;

            colliderPosition = new Rect(position.x, Camera.main.pixelHeight - position.y - position.height, position.width, position.height);

            if(myStyle!= null)
            {
                initStyle(myStyle);
            }
            actionToDo = callback;
            actionToDo2 = callback2;
        }