private void DrawTargetTextProperties() { EditorGUILayout.LabelField("Text Target Properties", EditorStyles.boldLabel); EditorGUI.indentLevel = (EditorGUI.indentLevel + 1); EditorGUILayout.PropertyField(this.m_TextTargetProperty); // Check if image is set if (this.m_TextTargetProperty.objectReferenceValue != null) { EditorGUILayout.PropertyField(this.m_TextTransitionProperty); // Get the selected transition UITab.TextTransition transition = (UITab.TextTransition) this.m_TextTransitionProperty.enumValueIndex; if (transition != UITab.TextTransition.None) { EditorGUI.indentLevel = (EditorGUI.indentLevel + 1); if (transition == UITab.TextTransition.ColorTint) { EditorGUILayout.PropertyField(this.m_TextColorsProperty); } EditorGUI.indentLevel = (EditorGUI.indentLevel - 1); } } EditorGUI.indentLevel = (EditorGUI.indentLevel - 1); }
private void DrawTargetTextProperties() { bool newState = EditorGUILayout.Foldout(this.showTextProperties, "Text Target Properties", this.m_FoldoutStyle); if (newState != this.showTextProperties) { EditorPrefs.SetBool(PREFS_KEY + "2", newState); this.showTextProperties = newState; } if (this.showTextProperties) { EditorGUI.indentLevel = (EditorGUI.indentLevel + 1); EditorGUILayout.PropertyField(this.m_TextTargetProperty); // Check if image is set if (this.m_TextTargetProperty.objectReferenceValue != null) { EditorGUILayout.PropertyField(this.m_TextTransitionProperty); // Get the selected transition UITab.TextTransition transition = (UITab.TextTransition) this.m_TextTransitionProperty.enumValueIndex; if (transition != UITab.TextTransition.None) { EditorGUI.indentLevel = (EditorGUI.indentLevel + 1); if (transition == UITab.TextTransition.ColorTint) { EditorGUILayout.PropertyField(this.m_TextColorsProperty); } EditorGUI.indentLevel = (EditorGUI.indentLevel - 1); } } EditorGUI.indentLevel = (EditorGUI.indentLevel - 1); } }