Files
Magical-Jumping-Bean/Library/metadata/21/21d2d5d6901f2ca43a8015c60ada4e2c
T

150 lines
11 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
í+h2019.2.3f1ţ˙˙˙˙˙’3$řĚuńě�˛e+ Í=^7€˙˙˙˙€¦€˛€Đ€¦€¦€¦€#¦€+H€3˙˙˙˙€1€1€˙˙˙˙@Ţ€€ Q€j€
H€<˙˙˙˙ €1€1€˙˙˙˙ @Ţ€€
Q€j€Ő€I˙˙˙˙€1€1€˙˙˙˙ŔŢ€€H€j€˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ˙˙fš†!ë5�9Ý4QÁóBí7€˙˙˙˙€¦€˛€
E€ Ţ€#€.€,€5a€ Ţ€#€.€,€†€r€ Ţ€# €.€,
€H€«€˙˙˙˙ €1€1€˙˙˙˙ @Ţ€€
Q€j€ń€J˙˙˙˙Ŕ1€1€˙˙˙˙€Ţ€€€j€˙˙˙˙€\›€˙˙˙˙€H€r˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€H€w˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€H€€˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€y€
€ Ţ€#!€.€,"€€…˙˙˙˙#@1€1€˙˙˙˙$Ţ€€%.€j€&Ő€“˙˙˙˙'€1€1€˙˙˙˙(ŔŢ€€)€j€˙˙˙˙*€H€›€˙˙˙˙+€1€1€˙˙˙˙,@Ţ€€-Q€j€.y€
€ /Ţ€#0€.€,1€ €§2@ľ€¶ 3@Ţ€#4€.€,5€H€»˙˙˙˙6€1€1€˙˙˙˙7@Ţ€€8Q€j€9H€Ć˙˙˙˙:€1€1€˙˙˙˙;@Ţ€€<Q€j€=H€Ř˙˙˙˙>€1€1€˙˙˙˙?@Ţ€€@Q€j€AMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariants˙˙ŁGń×ÜŹZ56 :!@iÁJ*�€7€˙˙˙˙€¦€˛€E€ Ţ€€.€€(a€ Ţ€€.€€†€r€ Ţ€ €.€
€H€«€˙˙˙˙ €1€1€˙˙˙˙ @Ţ€€
Q€j€H€ę€˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€ń€=˙˙˙˙€1€1€˙˙˙˙€Ţ€€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@Ţ€€Q€j€y€
€ Ţ€€.€€y€Q Ţ€€.€ €Ţ€X!H€i˙˙˙˙"€1€1€˙˙˙˙#@Ţ€€$Q€j€%H€u˙˙˙˙&€1€1€˙˙˙˙'@Ţ€€(Q€j€)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespace``\ŕyŻŔ�-]m ńÂJŁQl ­äÂ5Packages/com.unity.ugui/Editor/UI/InputFieldEditor.csŕyŻInputFieldEditorusing UnityEditor.AnimatedValues;
using UnityEngine;
using UnityEngine.UI;
namespace UnityEditor.UI
{
[CanEditMultipleObjects]
[CustomEditor(typeof(InputField), true)]
/// <summary>
/// Custom Editor for the InputField Component.
/// Extend this class to write a custom editor for a component derived from InputField.
/// </summary>
public class InputFieldEditor : SelectableEditor
{
SerializedProperty m_TextComponent;
SerializedProperty m_Text;
SerializedProperty m_ContentType;
SerializedProperty m_LineType;
SerializedProperty m_InputType;
SerializedProperty m_CharacterValidation;
SerializedProperty m_KeyboardType;
SerializedProperty m_CharacterLimit;
SerializedProperty m_CaretBlinkRate;
SerializedProperty m_CaretWidth;
SerializedProperty m_CaretColor;
SerializedProperty m_CustomCaretColor;
SerializedProperty m_SelectionColor;
SerializedProperty m_HideMobileInput;
SerializedProperty m_Placeholder;
SerializedProperty m_OnValueChanged;
SerializedProperty m_OnEndEdit;
SerializedProperty m_ReadOnly;
AnimBool m_CustomColor;
protected override void OnEnable()
{
base.OnEnable();
m_TextComponent = serializedObject.FindProperty("m_TextComponent");
m_Text = serializedObject.FindProperty("m_Text");
m_ContentType = serializedObject.FindProperty("m_ContentType");
m_LineType = serializedObject.FindProperty("m_LineType");
m_InputType = serializedObject.FindProperty("m_InputType");
m_CharacterValidation = serializedObject.FindProperty("m_CharacterValidation");
m_KeyboardType = serializedObject.FindProperty("m_KeyboardType");
m_CharacterLimit = serializedObject.FindProperty("m_CharacterLimit");
m_CaretBlinkRate = serializedObject.FindProperty("m_CaretBlinkRate");
m_CaretWidth = serializedObject.FindProperty("m_CaretWidth");
m_CaretColor = serializedObject.FindProperty("m_CaretColor");
m_CustomCaretColor = serializedObject.FindProperty("m_CustomCaretColor");
m_SelectionColor = serializedObject.FindProperty("m_SelectionColor");
m_HideMobileInput = serializedObject.FindProperty("m_HideMobileInput");
m_Placeholder = serializedObject.FindProperty("m_Placeholder");
m_OnValueChanged = serializedObject.FindProperty("m_OnValueChanged");
m_OnEndEdit = serializedObject.FindProperty("m_OnEndEdit");
m_ReadOnly = serializedObject.FindProperty("m_ReadOnly");
m_CustomColor = new AnimBool(m_CustomCaretColor.boolValue);
m_CustomColor.valueChanged.AddListener(Repaint);
}
protected override void OnDisable()
{
base.OnDisable();
m_CustomColor.valueChanged.RemoveListener(Repaint);
}
public override void OnInspectorGUI()
{
serializedObject.Update();
base.OnInspectorGUI();
EditorGUILayout.Space();
EditorGUILayout.PropertyField(m_TextComponent);
if (m_TextComponent != null && m_TextComponent.objectReferenceValue != null)
{
Text text = m_TextComponent.objectReferenceValue as Text;
if (text.supportRichText)
{
EditorGUILayout.HelpBox("Using Rich Text with input is unsupported.", MessageType.Warning);
}
}
using (new EditorGUI.DisabledScope(m_TextComponent == null || m_TextComponent.objectReferenceValue == null))
{
EditorGUILayout.PropertyField(m_Text);
EditorGUILayout.PropertyField(m_CharacterLimit);
EditorGUILayout.Space();
EditorGUILayout.PropertyField(m_ContentType);
if (!m_ContentType.hasMultipleDifferentValues)
{
EditorGUI.indentLevel++;
if (m_ContentType.enumValueIndex == (int)InputField.ContentType.Standard ||
m_ContentType.enumValueIndex == (int)InputField.ContentType.Autocorrected ||
m_ContentType.enumValueIndex == (int)InputField.ContentType.Custom)
EditorGUILayout.PropertyField(m_LineType);
if (m_ContentType.enumValueIndex == (int)InputField.ContentType.Custom)
{
EditorGUILayout.PropertyField(m_InputType);
EditorGUILayout.PropertyField(m_KeyboardType);
EditorGUILayout.PropertyField(m_CharacterValidation);
}
EditorGUI.indentLevel--;
}
EditorGUILayout.Space();
EditorGUILayout.PropertyField(m_Placeholder);
EditorGUILayout.PropertyField(m_CaretBlinkRate);
EditorGUILayout.PropertyField(m_CaretWidth);
EditorGUILayout.PropertyField(m_CustomCaretColor);
m_CustomColor.target = m_CustomCaretColor.boolValue;
if (EditorGUILayout.BeginFadeGroup(m_CustomColor.faded))
{
EditorGUILayout.PropertyField(m_CaretColor);
}
EditorGUILayout.EndFadeGroup();
EditorGUILayout.PropertyField(m_SelectionColor);
EditorGUILayout.PropertyField(m_HideMobileInput);
EditorGUILayout.PropertyField(m_ReadOnly);
EditorGUILayout.Space();
EditorGUILayout.PropertyField(m_OnValueChanged);
EditorGUILayout.PropertyField(m_OnEndEdit);
}
serializedObject.ApplyModifiedProperties();