Esempio n. 1
0
 private void DrawLogSetting()
 {
     GUILayout.BeginHorizontal(new GUILayoutOption[0]);
     GUILayout.Label("Log选项:", new GUILayoutOption[0]);
     this._showDebug   = GUILayout.Toggle(this._showInfo, "显示Debug", new GUILayoutOption[0]);
     this._showInfo    = GUILayout.Toggle(this._showInfo, "显示Info", new GUILayoutOption[0]);
     this._showWarning = GUILayout.Toggle(this._showWarning, "显示警告", new GUILayoutOption[0]);
     this._showError   = GUILayout.Toggle(this._showError, "显示错误", new GUILayoutOption[0]);
     if (GUILayout.Button("清空缓存", new GUILayoutOption[0]))
     {
         LocalDirectoryHelper.Clean();
     }
     if (GUILayout.Button("清空所有Log", new GUILayoutOption[0]))
     {
         this._logList.Clear();
         this._selectedLog = default(Log);
     }
     if (GUILayout.Button("关闭LogGUI", new GUILayoutOption[0]))
     {
         this._visible = false;
     }
     GUILayout.EndHorizontal();
 }