/// <summary> /// 到上一个 /// </summary> private void ToLast() { if (Data.CheckingIndex == 0) { TopTips = "当前是第一个资源"; return; } Data.CheckingIndex--; currentCheckUnit.Quit(); currentCheckUnit = DJAssetsCheckFactory.GetCheckUnit(currentConfig.type); }
/// <summary> /// 到下一个 /// </summary> private void ToNext() { if (Data.CheckingIndex == Data.SubmitAssetsList.Count - 1) { TopTips = "已经是最后一个资源了"; return; } Data.CheckingIndex++; currentCheckUnit.Quit(); currentCheckUnit = DJAssetsCheckFactory.GetCheckUnit(currentConfig.type); }
/// <summary> /// 人工检测过程页面 /// </summary> void OnManualCheckGUI_Proc() { //得到检测单元 if (currentCheckUnit == null) { currentCheckUnit = DJAssetsCheckFactory.GetCheckUnit(currentConfig.type); currentCheckUnit.Init(); currentCheckUnit.LoadAsset(currentConfig.id);//如果加载失败,应该有一些提示,但是这里就先不提示了 } EditorGUILayout.Space(); currentCheckUnit.DrawEditorTestGUI(); EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); if (Data.CheckingIndex > 0 && GUILayout.Button("上一个")) { ToLast(); } if (Data.CheckingIndex < Data.SubmitAssetsList.Count - 1 && GUILayout.Button("下一个")) { ToNext(); } EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); if (GUILayout.Button("通过检测")) { TopTips = "操作:通过检查"; //加入成功队列 if (Data.PassList.Contains(currentConfig) == false) { Data.PassList.Add(currentConfig); } if (Data.RefuseList.Contains(currentConfig) == true) { Data.RefuseList.Remove(currentConfig); } ToNext(); } if (GUILayout.Button("没通过")) { TopTips = "操作:没有通过检查"; //加入失败队列 if (Data.RefuseList.Contains(currentConfig) == false) { Data.RefuseList.Add(currentConfig); } if (Data.PassList.Contains(currentConfig) == true) { Data.PassList.Remove(currentConfig); } ToNext(); } EditorGUILayout.Space(); if (GUILayout.Button("结束检查")) { Data.mTypeCheckState = TypeCheckState.PrintResult; } }