Browse Source

Changed negation operator description in SetVariable command

master
chrisgregan 10 years ago
parent
commit
9a6045ab6e
  1. 2
      Assets/Fungus/FungusScript/Editor/SetVariableEditor.cs
  2. 4
      Assets/Fungus/FungusScript/Scripts/Commands/SetVariable.cs

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

@ -56,7 +56,7 @@ namespace Fungus
operatorsList.Add(new GUIContent("=")); operatorsList.Add(new GUIContent("="));
if (variableType == typeof(BooleanVariable)) if (variableType == typeof(BooleanVariable))
{ {
operatorsList.Add(new GUIContent("!")); operatorsList.Add(new GUIContent("=!"));
} }
else if (variableType == typeof(IntegerVariable) || else if (variableType == typeof(IntegerVariable) ||
variableType == typeof(FloatVariable)) variableType == typeof(FloatVariable))

4
Assets/Fungus/FungusScript/Scripts/Commands/SetVariable.cs

@ -11,7 +11,7 @@ namespace Fungus
public enum SetOperator public enum SetOperator
{ {
Assign, // = Assign, // =
Negate, // ! Negate, // =!
Add, // += Add, // +=
Subtract, // -= Subtract, // -=
Multiply, // *= Multiply, // *=
@ -59,7 +59,7 @@ namespace Fungus
description += " = "; description += " = ";
break; break;
case SetOperator.Negate: case SetOperator.Negate:
description += " != "; description += " =! ";
break; break;
case SetOperator.Add: case SetOperator.Add:
description += " += "; description += " += ";

Loading…
Cancel
Save