Browse Source

Set operators now match c# equivalents

master
chrisgregan 11 years ago
parent
commit
e458628faa
  1. 8
      Assets/Fungus/Editor/FungusScript/SetEditor.cs
  2. 8
      Assets/Fungus/VisualScripting/Set.cs
  3. BIN
      Assets/Shuttle/ShuttleGame.unity

8
Assets/Fungus/Editor/FungusScript/SetEditor.cs

@ -45,10 +45,10 @@ namespace Fungus.Script
else if (variable.GetType() == typeof(IntegerVariable) ||
variable.GetType() == typeof(FloatVariable))
{
operatorsList.Add(new GUIContent("+"));
operatorsList.Add(new GUIContent("-"));
operatorsList.Add(new GUIContent("*"));
operatorsList.Add(new GUIContent("/"));
operatorsList.Add(new GUIContent("+="));
operatorsList.Add(new GUIContent("-="));
operatorsList.Add(new GUIContent("*="));
operatorsList.Add(new GUIContent("/="));
}
int selectedIndex = 0;

8
Assets/Fungus/VisualScripting/Set.cs

@ -10,10 +10,10 @@ namespace Fungus.Script
{
Assign, // =
Negate, // !
Add, // +
Subtract, // -
Multiply, // *
Divide // /
Add, // +=
Subtract, // -=
Multiply, // *=
Divide // /=
}
public FungusVariable variable;

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save