예제 #1
0
 private void CreateButtons(ILessonEntity[] lessons)
 {
     _lessonNodes = new LessonControllerNode[lessons.Length];
     for (int i = 0; i < lessons.Length; i++)
     {
         LessonControllerNode controllerNode = (LessonControllerNode)_lessonControllerScene.Instance();
         controllerNode.SetLessonInfo(lessons[i], this);
         AddChild(controllerNode);
         _lessonNodes[i] = controllerNode;
     }
 }
예제 #2
0
        /// <summary>
        /// Informs the grid, that the selection has changed to this button and the UI needs to be updated.
        /// </summary>
        public void StartSelectedLesson(LessonControllerNode node)
        {
            LessonsNode lessonsNode = GetNode <LessonsNode>(LessonsNodePath);

            lessonsNode.StartSelectedLesson(node.LessonEntity);
        }
예제 #3
0
        /// <summary>
        /// Informs the grid, that the selection has changed to this button and the UI needs to be updated.
        /// </summary>
        public void SelectionChangedTo(LessonControllerNode node)
        {
            LessonsNode lessonsNode = GetNode <LessonsNode>(LessonsNodePath);

            lessonsNode.SelectionChangedTo(node.LessonEntity);
        }