Example #1
0
		/// <summary>
		/// エラーの描画
		/// </summary>
		/// <param name="inputError">エラータイプ</param>
		public void DrawInputError(NCMBUTInputError inputError)
		{
			// エラーがある場合はInspectorに表示
			switch (inputError)
			{
				case NCMBUTInputError.Empty:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.EMPTY_KEY, MessageType.Error);
					break;
				case NCMBUTInputError.Duplicate:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.DUPLICATION_KEY, MessageType.Error);
					break;
				case NCMBUTInputError.Validation:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.VALIDATION_KEY, MessageType.Error);
					break;
				case NCMBUTInputError.Type:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.TYPE_KEY, MessageType.Error);
					break;
				case NCMBUTInputError.Resorve:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.RESERVED_KEY, MessageType.Error);
					break;
				case NCMBUTInputError.AclEmpty:
					EditorGUILayout.HelpBox(NCMBUTEditorErrorMessage.ACL_EMPTY, MessageType.Error);
					break;
			}
		}
Example #2
0
        /// <summary>
        /// Field設定の描画
        /// </summary>
        public void DrawFieldSettings()
        {
            connection.IsOpenField = EditorGUILayout.Foldout(connection.IsOpenField, fieldSettingsContent);

            ++EditorGUI.indentLevel;

            if (connection.IsOpenField)
            {
                if (list == null)
                {
                    OnEnable();
                }
                list.DoLayoutList();
            }

            --EditorGUI.indentLevel;

            inputError = dataInputError.CheckKey(connection.FieldDataList, connection.GetDefaultFields());
            dataInputError.DrawInputError(inputError);
        }
Example #3
0
 /// <summary>
 /// 入力エラーの表示
 /// </summary>
 private void checkErrorField()
 {
     inputError = dataInputError.CheckKey(connection.AclDataList);
     dataInputError.DrawInputError(inputError);
 }