Beispiel #1
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Global variable:");
     IntDropdownParam.Instantiate(parent, parameter, 0, "Mode:", setOrAddOptions);
     InstantiateNumeratorVar(parent, parameter, 1, 1);
     IntInputFieldParam.Instantiate(parent, parameter, 2, "Or select value or as percentage:");
 }
Beispiel #2
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     InstantiateSubject(parent, parameter, 0);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Global variable name:");
     InstantiateArithmeticField(parent, parameter, 1);
     InstantiateNumeratorVar(parent, parameter, 2, 1);
     IntInputFieldParam.Instantiate(parent, parameter, 3, "Or compare with value:");
 }
 protected static void InstantiateNumeratorVar(GameObject parent, GenericParameter parameter, int numeratorParamId, int varParamId)
 {
     string[] subjects         = CharacterEditor.Instance.AvailableSubjects();
     string[] subjectsPlusNone = new string[subjects.Length + 2];
     subjectsPlusNone[0] = "none";
     subjectsPlusNone[1] = "global variable";
     subjects.CopyTo(subjectsPlusNone, 2);
     IntDropdownParam.Instantiate(parent, parameter, numeratorParamId, "Numerator Subject:", subjectsPlusNone);
     StringInputFieldParam.Instantiate(parent, parameter, varParamId, "Numerator Variable:");
 }
Beispiel #4
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Effect");
     IntDropdownParam.Instantiate(parent, parameter, 0, "Location", spawnLocation);
     IntInputFieldParam.Instantiate(parent, parameter, 1, "Lifetime");
     BoolToggleParam.Instantiate(parent, parameter, 0, "Local space");
     FloatInputFieldParam.Instantiate(parent, parameter, 0, "Offset X:");
     FloatInputFieldParam.Instantiate(parent, parameter, 1, "Offset Y:");
     FloatInputFieldParam.Instantiate(parent, parameter, 2, "Offset Z:");
 }
Beispiel #5
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Parameter Name:");
     IntDropdownParam.Instantiate(parent, parameter, 0, "From:", variableFromOptions);
     StringInputFieldParam.Instantiate(parent, parameter, 1, "From variable:");
     IntInputFieldParam.Instantiate(parent, parameter, 1, "Variable minimum value:");
     IntInputFieldParam.Instantiate(parent, parameter, 2, "Variable maximum value:");
     FloatInputFieldParam.Instantiate(parent, parameter, 0, "Custom Value:");
     FloatInputFieldParam.Instantiate(parent, parameter, 1, "Delay time (seconds):");
     FloatInputFieldParam.Instantiate(parent, parameter, 2, "Interpolation time (seconds):");
 }
Beispiel #6
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     InstantiateSubject(parent, parameter, 0);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Effect");
     IntDropdownParam.Instantiate(parent, parameter, 1, "Localtion:", spawnLocation);
     IntInputFieldParam.Instantiate(parent, parameter, 2, "Location anchor ID:");
     BoolToggleParam.Instantiate(parent, parameter, 0, "Local Space:");
     IntDropdownParam.Instantiate(parent, parameter, 3, "Facing options:", hurtFacingOptions);
     FloatInputFieldParam.Instantiate(parent, parameter, 0, "Offset X:");
     FloatInputFieldParam.Instantiate(parent, parameter, 1, "Offset Y:");
     FloatInputFieldParam.Instantiate(parent, parameter, 2, "Offset Z:");
 }
Beispiel #7
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     InstantiateSubject(parent, parameter, 0);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Entity to spawn:");
     IntDropdownParam.Instantiate(parent, parameter, 1, "Localtion:", spawnLocation);
     IntInputFieldParam.Instantiate(parent, parameter, 2, "Location anchor ID:");
     StringInputFieldParam.Instantiate(parent, parameter, 1, "Initial animation:");
     IntInputFieldParam.Instantiate(parent, parameter, 3, "Team ID (-1 for same team):");
     BoolToggleParam.Instantiate(parent, parameter, 0, "Own:");
     StringListInputFieldParam.Instantiate(parent, parameter, 0, "Variable keys:");
     IntListInputFieldParam.Instantiate(parent, parameter, 0, "Variable values:");
     IntDropdownParam.Instantiate(parent, parameter, 4, "Facing options:", hurtFacingOptions);
     FloatInputFieldParam.Instantiate(parent, parameter, 0, "Offset X:");
     FloatInputFieldParam.Instantiate(parent, parameter, 1, "Offset Y:");
     FloatInputFieldParam.Instantiate(parent, parameter, 2, "Offset Z:");
 }
Beispiel #8
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     InstantiateSubject(parent, parameter, 0);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Animation:");
     FloatInputFieldParam.Instantiate(parent, parameter, 0, "Transition time:", 0);
 }
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     InstantiateNegation(parent, parameter);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Animation:");
 }
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Variable:");
     InstantiateArithmeticField(parent, parameter, 1);
     IntInputFieldParam.Instantiate(parent, parameter, 0, "Compare with value:", 0);
 }
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     StringInputFieldParam.Instantiate(parent, parameter, 0, "Variable:");
 }
Beispiel #12
0
 public override void Build(GameObject parent, GenericParameter parameter)
 {
     IntDropdownParam.Instantiate(parent, parameter, 0, "From:", textFromOptions);
     StringInputFieldParam.Instantiate(parent, parameter, 0, "From Variable:");
     StringInputFieldParam.Instantiate(parent, parameter, 1, "Custom Text:");
 }