using Public.File; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; using XFramework; using XFramework.Objects; public class TeacherMainPanel : BasePanel { const string panelName = "Panel_TeacherMain"; Dropdown dropdownState; Dropdown dropdownSubject; Dropdown dropdownRepairSubject; Dropdown dropdownWeather; Button playAudio; Button quitButton; Button enterLook; Button sendSubject; Button stop; Button selectFile; Button editorFile; Button newFile; Button creatGroup; Button removeGroup; Button addGroup; Button setGroupMaster; PromptTextCtrl promptText_SetGroup; GroupManager groupManager; string selectFilePath; Text filePath; Text fileDetail; Text text_stuCount; Toggle continuous;//连续科目 StudentContentCtrl contentCtrl; PromptTextCtrl sendSubPro;//发送科目提示 PromptTextCtrl sendStopPro;//结束任务提示 PromptTextCtrl lookStudentPro;//观察学员按钮提示 PromptTextCtrl editorPro;//编辑文件按钮提示 PromptTextCtrl newFilePro;//新建文件按钮提示 VideoController videoPlayer; Dictionary selectStudent = new Dictionary();//处于选中状态的学员数据 RecordBase selectRecord; public TeacherMainPanel() : base(new UIType(panelName)) { } protected override void InitEvent() { dropdownState = ActivePanel.Find("Dropdown_模式").GetComponent(); dropdownSubject = ActivePanel.Find("Dropdown_kemu").GetComponent(); dropdownRepairSubject = ActivePanel.Find("Dropdown_维修科目出现").GetComponent(); dropdownWeather = ActivePanel.Find("Dropdown_weather").GetComponent(); playAudio = ActivePanel.Find("Button_playAudio").GetComponent