public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 4); //----------------------------------------- // create the fields for this action //----------------------------------------- // Field: Skip (hidden, only for else if) GetConditionalField.BuildField(actionParams, heroAction.actionFields[0]); // Field: Integer A SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldB("Hero Object A:", actionParams, heroAction.actionFields[1]); SimpleLayout.EndVertical(); // Field: Operator SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetDropDownField.BuildField("Operator:", actionParams, heroAction.actionFields[2], new TrueFalseField()); SimpleLayout.EndVertical(); // Field: Integer B SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldA("Hero Object B:", actionParams, heroAction.actionFields[3]); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 5); //----------------------------------------- // create the fields for this action //----------------------------------------- // Field: Skip (hidden, only for else if) GetConditionalField.BuildField(actionParams, heroAction.actionFields[0]); // Field: Integer A (Enum A) SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetIntegerField.BuildFieldB("Enum:", actionParams, heroAction.actionFields[1]); SimpleLayout.EndVertical(); // Field: Operator SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetDropDownField.BuildField("Operator:", actionParams, heroAction.actionFields[2], new TrueFalseField()); SimpleLayout.EndVertical(); // Field: Integer B (Enum B) SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); string[] items = { "heads", "tails" }; GetDropDownField.BuildField("New value:", actionParams, heroAction.actionFields[3], new GenericListField(items)); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 4); //----------------------------------------- // create the fields for this action //----------------------------------------- // Field: Skip (hidden, only for else if) GetConditionalField.BuildField(actionParams, heroAction.actionFields[0]); // Field: Integer A SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldA("If this hero object:", actionParams, heroAction.actionFields[1]); SimpleLayout.EndVertical(); // Field: Operator SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); string[] items = { "in front of", "behind", "to the right of", "to the left of" }; GetDropDownField.BuildField("is:", actionParams, heroAction.actionFields[2], new GenericListField(items), true); SimpleLayout.EndVertical(); // Field: Integer B SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldA("this hero object:", actionParams, heroAction.actionFields[3]); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 1); //----------------------------------------- // create the fields for this action //----------------------------------------- // Field: Skip (hidden, only for else if) GetConditionalField.BuildField(actionParams, heroAction.actionFields[0]); SimpleLayout.Label("There are no fields for this action."); }