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 //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("The script with the property is on a different object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); MonoScript script = GetUnityObjectField.BuildFieldA <MonoScript>("The script on the hero object:", actionParams, heroAction.actionFields[2]); // select the property to change if (script != null) { GetPropertyField.BuildFieldC("The property in the script to save on the hero object:", actionParams, heroAction.actionFields[3], heroAction.actionFields[4], script); } SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 3); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); HeroObject targetHO = GetHeroObjectField.BuildFieldC("Get object from this hero object template:", actionParams, heroAction.actionFields[0]); if (targetHO != null) { GetUnityObjectField.BuildFieldC("The object:", actionParams, heroAction.actionFields[1], targetHO); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldB <Object>("Save the object here:", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 17); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("Play audio on another object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[4]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <AudioClip>("The sound effect to play:", actionParams, heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Fade BGM while sound effect plays?", actionParams, heroAction.actionFields[2], true); GetBoolValue.BuildField("Fade BGS while sound effect plays?", actionParams, heroAction.actionFields[3], true); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeSettings = GetBoolValue.BuildField("Change SE settings?", actionParams, heroAction.actionFields[5], true); if (changeSettings) { // this takes 11 action fields. actionField[x] to actionField[x+11] ActionCommon.GetAudioSettings(actionParams, heroAction, 6); } SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 11); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetIntegerField.BuildFieldA("Image ID:", actionParams, heroAction.actionFields[0]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeImage = GetBoolValue.BuildField("Change image?", actionParams, heroAction.actionFields[1], true); if (changeImage) { GetUnityObjectField.BuildFieldA <Sprite>("", actionParams, heroAction.actionFields[2]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Flip image?", actionParams, heroAction.actionFields[3], true); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeScale = GetBoolValue.BuildField("Scale image? (By Percent)", actionParams, heroAction.actionFields[4], true); if (changeScale) { GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[5]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePosX = GetBoolValue.BuildField("Change X Position?", actionParams, heroAction.actionFields[6], true); if (changePosX) { GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[7]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePosY = GetBoolValue.BuildField("Change Y Position?", actionParams, heroAction.actionFields[8], true); if (changePosY) { GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[9]); } SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 21); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.Label("Move a hero object:"); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("Move a different hero object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.Label("To this scene:"); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <SceneAsset>("", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); SimpleLayout.Label("At this location:"); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[3], heroAction.actionFields[4], heroAction.actionFields[5], heroAction.actionFields[6], heroAction.actionFields[7], heroAction.actionFields[8]); SimpleLayout.EndVertical(); SimpleLayout.Label("Facing this direction:"); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); string[] items = { "Retain", "Left", "Right", "Up", "Down", "Custom" }; int result = GetDropDownField.BuildField("", actionParams, heroAction.actionFields[9], new GenericListField(items)); // custom if (result == 6) { GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[10], heroAction.actionFields[11], heroAction.actionFields[12], heroAction.actionFields[13], heroAction.actionFields[14], heroAction.actionFields[15]); } SimpleLayout.EndVertical(); SimpleLayout.Label("Other settings:"); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Move camera to object's position?", actionParams, heroAction.actionFields[16], true); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Move camera to object's rotation?", actionParams, heroAction.actionFields[17], true); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Use default scene state?", actionParams, heroAction.actionFields[18], true); GetBoolValue.BuildField("Destroy clones of persistent objects?", actionParams, heroAction.actionFields[19], true); GetBoolValue.BuildField("Don't save state of current scene?", actionParams, heroAction.actionFields[20], true); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 18); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("Play particle effect on a different object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <ParticleSystem>("The particle effect to play (attach prefab):", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePos = GetBoolValue.BuildField("Change position?", actionParams, heroAction.actionFields[3], true); if (changePos) { GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[4], heroAction.actionFields[5], heroAction.actionFields[6], heroAction.actionFields[7], heroAction.actionFields[8], heroAction.actionFields[9]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeRotation = GetBoolValue.BuildField("Change rotation?", actionParams, heroAction.actionFields[10], true); if (changeRotation) { GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[11], heroAction.actionFields[12], heroAction.actionFields[13], heroAction.actionFields[14], heroAction.actionFields[15], heroAction.actionFields[16]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Don't play next action until this action completes?", actionParams, heroAction.actionFields[17], true); 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 //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <SceneAsset>("Load this scene:", actionParams, heroAction.actionFields[0], false); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 22); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("Use the method on a different object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); // add class SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); MonoScript script = GetUnityObjectField.BuildFieldA <MonoScript>("The script on the hero object:", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); // add method if (script != null) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); SimpleLayout.Label("The method to call in the script:"); MethodInfo method = GetMethodField.BuildFieldA(script, "", actionParams, heroAction.actionFields[3]); SimpleLayout.EndVertical(); if (method != null) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); // add parameters (up to 15) GetParameterField.BuildFieldA("Parameters to pass into the method:", actionParams, heroAction.actionFields[4], 5, 19, method, heroAction); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); // add return value (1) GetParameterField.BuildFieldB("Return value to save on the hero object:", actionParams, heroAction.actionFields[20], heroAction.actionFields[21], method); SimpleLayout.EndVertical(); } } }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 3); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetSceneObjectValue.BuildField("image field", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <Sprite>("The new image:", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 2); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldB <Object>("The object to change:", actionParams, heroAction.actionFields[0]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <Object>("Change it to:", actionParams, heroAction.actionFields[1]); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 21); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetHeroObjectField.BuildFieldE("Attach the script as a component on a different object?", actionParams, heroAction.actionFields[0], heroAction.actionFields[1]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); MonoScript script = GetUnityObjectField.BuildFieldA <MonoScript>("The script:", actionParams, heroAction.actionFields[2]); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolField.BuildFieldA("Enable the component?", actionParams, heroAction.actionFields[3]); SimpleLayout.EndVertical(); // add method if (script != null) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool result = GetBoolValue.BuildField("Update properties for this script component?", actionParams, heroAction.actionFields[4], true); if (result) { GetPropertyField.BuildFieldA("", actionParams, heroAction.actionFields[5], 6, 20, script, heroAction); } SimpleLayout.EndVertical(); } }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 18); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetUnityObjectField.BuildFieldA <SceneAsset>("The scene to load:", actionParams, heroAction.actionFields[0]); GetBoolValue.BuildField("Use default scene state?", actionParams, heroAction.actionFields[1], true); GetBoolValue.BuildField("Destroy clones of persistent objects?", actionParams, heroAction.actionFields[2], true); GetBoolValue.BuildField("Don't save state of current scene?", actionParams, heroAction.actionFields[3], true); SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool setLocation = GetBoolValue.BuildField("Go to a specific location?", actionParams, heroAction.actionFields[4], true); if (setLocation) { GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[5], heroAction.actionFields[6], heroAction.actionFields[7], heroAction.actionFields[8], heroAction.actionFields[9], heroAction.actionFields[10]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool setRotation = GetBoolValue.BuildField("Use a specific rotation?", actionParams, heroAction.actionFields[11], true); if (setRotation) { GetCoordinatesField.BuildField("", actionParams, heroAction.actionFields[12], heroAction.actionFields[13], heroAction.actionFields[14], heroAction.actionFields[15], heroAction.actionFields[16], heroAction.actionFields[17]); } SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 35); //----------------------------------------- // create the fields for this action //----------------------------------------- // title SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeTitle = GetBoolValue.BuildField("Change Title?", actionParams, heroAction.actionFields[0], true); if (changeTitle) { GetStringField.BuildFieldA("", actionParams, heroAction.actionFields[1]); bool changeAlignment = GetBoolValue.BuildField("Change Alignment?", actionParams, heroAction.actionFields[26], true); if (changeAlignment) { string[] items = { "Left", "Center", "Right" }; GetDropDownField.BuildField("", actionParams, heroAction.actionFields[27], new GenericListField(items)); } } SimpleLayout.EndVertical(); // message SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetStringField.BuildFieldA("Message:", actionParams, heroAction.actionFields[2], false, true); GetUnityObjectField.BuildFieldA <AudioClip>("Audio (Optional):", actionParams, heroAction.actionFields[28]); SimpleLayout.EndVertical(); // portrait left SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePortraitLeft = GetBoolValue.BuildField("Change Portrait on Left?", actionParams, heroAction.actionFields[3], true); if (changePortraitLeft) { GetUnityObjectField.BuildFieldA <Sprite>("", actionParams, heroAction.actionFields[4]); GetBoolValue.BuildField("Flip image?", actionParams, heroAction.actionFields[5], true); bool changeScale = GetBoolValue.BuildField("Scale image? (By Percent)", actionParams, heroAction.actionFields[6], true); if (changeScale) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[7]); SimpleLayout.EndVertical(); } bool changePosX = GetBoolValue.BuildField("Change X Position?", actionParams, heroAction.actionFields[8], true); if (changePosX) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[9]); SimpleLayout.EndVertical(); } bool changePosY = GetBoolValue.BuildField("Change Y Position?", actionParams, heroAction.actionFields[10], true); if (changePosY) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[11]); SimpleLayout.EndVertical(); } bool changePosZ = GetBoolValue.BuildField("Put behind or in front of message window?", actionParams, heroAction.actionFields[31], true); if (changePosZ) { string[] list = { "Put behind messsage window", "Put in front of message window" }; SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetDropDownField.BuildField("", actionParams, heroAction.actionFields[32], new GenericListField(list)); SimpleLayout.EndVertical(); } } SimpleLayout.EndVertical(); // portrait right SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePortraitRight = GetBoolValue.BuildField("Change Portrait on Right?", actionParams, heroAction.actionFields[12], true); if (changePortraitRight) { GetUnityObjectField.BuildFieldA <Sprite>("", actionParams, heroAction.actionFields[13]); GetBoolValue.BuildField("Flip image?", actionParams, heroAction.actionFields[14], true); bool changeScale = GetBoolValue.BuildField("Scale image? (By Percent)", actionParams, heroAction.actionFields[15], true); if (changeScale) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[16]); SimpleLayout.EndVertical(); } bool changePosX = GetBoolValue.BuildField("Change X Position?", actionParams, heroAction.actionFields[17], true); if (changePosX) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[18]); SimpleLayout.EndVertical(); } bool changePosY = GetBoolValue.BuildField("Change Y Position?", actionParams, heroAction.actionFields[19], true); if (changePosY) { SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetFloatField.BuildFieldA("", actionParams, heroAction.actionFields[20]); SimpleLayout.EndVertical(); } bool changePosZ = GetBoolValue.BuildField("Put behind or in front of message window?", actionParams, heroAction.actionFields[33], true); if (changePosZ) { string[] list = { "Put behind messsage window", "Put in front of message window" }; SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetDropDownField.BuildField("", actionParams, heroAction.actionFields[34], new GenericListField(list)); SimpleLayout.EndVertical(); } } SimpleLayout.EndVertical(); // choices SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool addChoices = GetBoolValue.BuildField("Add Choices?", actionParams, heroAction.actionFields[21], true); if (addChoices) { string[] items = { "One", "Two", "Three" }; int result = GetDropDownField.BuildField("", actionParams, heroAction.actionFields[22], new GenericListField(items)); if (result > 0) { GetStringField.BuildFieldA("", actionParams, heroAction.actionFields[23], true); } if (result > 1) { GetStringField.BuildFieldA("", actionParams, heroAction.actionFields[24], true); } if (result > 2) { GetStringField.BuildFieldA("", actionParams, heroAction.actionFields[25], true); } GetIntegerField.BuildFieldB("Save player's choice here:", actionParams, heroAction.actionFields[29]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); GetBoolValue.BuildField("Keep message window open after message is closed?", actionParams, heroAction.actionFields[30], true); SimpleLayout.EndVertical(); }
public static void BuildField(HeroActionParams actionParams) { HeroAction heroAction = actionParams.heroAction; //----------------------------------------- // create the action fields if they don't exist //----------------------------------------- ActionCommon.CreateActionFieldsOnHeroObject(heroAction, 24); //----------------------------------------- // create the fields for this action //----------------------------------------- SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changePrintSettings = GetBoolValue.BuildField("Change print message settings?", actionParams, heroAction.actionFields[0], true); if (changePrintSettings) { bool printMessage = GetBoolValue.BuildField("Print message character by character?", actionParams, heroAction.actionFields[1], true); if (printMessage) { GetSliderValue.BuildFieldB("Speed:", actionParams, heroAction.actionFields[2], 0, 100, true); } } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeAlignment = GetBoolValue.BuildField("Change alignment of message?", actionParams, heroAction.actionFields[3], true); if (changeAlignment) { string[] alignmentTypes = { "Top Left", "Top Center", "Top Right", "Middle Left", "Middle Center", "Middle Right", "Bottom Left", "Bottom Center", "Bottom Right", }; GetDropDownField.BuildField("", actionParams, heroAction.actionFields[4], new GenericListField(alignmentTypes)); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeBackgroundSettings = GetBoolValue.BuildField("Change background alpha?", actionParams, heroAction.actionFields[5], true); if (changeBackgroundSettings) { GetSliderValue.BuildFieldB("", actionParams, heroAction.actionFields[6], 0, 100, true); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeBackgroundImage = GetBoolValue.BuildField("Change background image?", actionParams, heroAction.actionFields[7], true); if (changeBackgroundImage) { GetUnityObjectField.BuildFieldA <Sprite>("", actionParams, heroAction.actionFields[8]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeButtonImage = GetBoolValue.BuildField("Change button image?", actionParams, heroAction.actionFields[9], true); if (changeButtonImage) { GetUnityObjectField.BuildFieldA <Sprite>("", actionParams, heroAction.actionFields[10]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeButtonLayout = GetBoolValue.BuildField("Change button layout?", actionParams, heroAction.actionFields[11], true); if (changeButtonLayout) { string[] items = { "Horizontal", "Vertical" }; GetDropDownField.BuildField("", actionParams, heroAction.actionFields[12], new GenericListField(items)); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeTextColor = GetBoolValue.BuildField("Change text body color?", actionParams, heroAction.actionFields[13], true); if (changeTextColor) { GetColorValue.BuildField("", actionParams, heroAction.actionFields[14]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeHeadingColor = GetBoolValue.BuildField("Change text heading color?", actionParams, heroAction.actionFields[15], true); if (changeHeadingColor) { GetColorValue.BuildField("", actionParams, heroAction.actionFields[16]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeButtonTextColor = GetBoolValue.BuildField("Change button text color?", actionParams, heroAction.actionFields[17], true); if (changeButtonTextColor) { GetColorValue.BuildField("", actionParams, heroAction.actionFields[18]); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeButtonAlpha = GetBoolValue.BuildField("Change background button alpha?", actionParams, heroAction.actionFields[19], true); if (changeButtonAlpha) { GetSliderValue.BuildFieldB("", actionParams, heroAction.actionFields[20], 0, 100, true); } SimpleLayout.EndVertical(); SimpleLayout.BeginVertical(SimpleGUI.Fields.Box.StyleB); bool changeButtonActiveColor = GetBoolValue.BuildField("Change selected button color?", actionParams, heroAction.actionFields[21], true); if (changeButtonActiveColor) { GetColorValue.BuildField("", actionParams, heroAction.actionFields[22]); } SimpleLayout.EndVertical(); }