Browse Source

Improved SetVariable property names

master
chrisgregan 10 years ago
parent
commit
18fc431796
  1. 12
      Assets/Fungus/FungusScript/Editor/SetVariableEditor.cs

12
Assets/Fungus/FungusScript/Editor/SetVariableEditor.cs

@ -39,7 +39,7 @@ namespace Fungus
} }
VariableEditor.VariableField(variableProp, VariableEditor.VariableField(variableProp,
new GUIContent("Variable", "Variable to set"), new GUIContent("Set Variable", "Variable to set"),
fungusScript); fungusScript);
@ -91,7 +91,7 @@ namespace Fungus
break; break;
} }
selectedIndex = EditorGUILayout.Popup(new GUIContent("Operator", "Arithmetic operator to use"), selectedIndex, operatorsList.ToArray()); selectedIndex = EditorGUILayout.Popup(new GUIContent("Operation", "Arithmetic operator to use"), selectedIndex, operatorsList.ToArray());
SetVariable.SetOperator setOperator = SetVariable.SetOperator.Assign; SetVariable.SetOperator setOperator = SetVariable.SetOperator.Assign;
if (variableType == typeof(BooleanVariable) || if (variableType == typeof(BooleanVariable) ||
@ -136,19 +136,19 @@ namespace Fungus
if (variableType == typeof(BooleanVariable)) if (variableType == typeof(BooleanVariable))
{ {
EditorGUILayout.PropertyField(booleanDataProp); EditorGUILayout.PropertyField(booleanDataProp, new GUIContent("Boolean"));
} }
else if (variableType == typeof(IntegerVariable)) else if (variableType == typeof(IntegerVariable))
{ {
EditorGUILayout.PropertyField(integerDataProp); EditorGUILayout.PropertyField(integerDataProp, new GUIContent("Integer"));
} }
else if (variableType == typeof(FloatVariable)) else if (variableType == typeof(FloatVariable))
{ {
EditorGUILayout.PropertyField(floatDataProp); EditorGUILayout.PropertyField(floatDataProp, new GUIContent("Float"));
} }
else if (variableType == typeof(StringVariable)) else if (variableType == typeof(StringVariable))
{ {
EditorGUILayout.PropertyField(stringDataProp); EditorGUILayout.PropertyField(stringDataProp, new GUIContent("String"));
} }
serializedObject.ApplyModifiedProperties(); serializedObject.ApplyModifiedProperties();

Loading…
Cancel
Save