コード例 #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);
        }