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; } }
/// <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); }
/// <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); }