/// <summary> /// Creates a new PopulateRuleOverideTileWizard and copies the settings from an existing PopulateRuleOverideTileWizard /// </summary> /// <param name="oldWizard">The wizard to copy settings from</param> public static void CloneWizard(PopulateRuleOverideTileWizard oldWizard) { PopulateRuleOverideTileWizard wizard = DisplayWizard <PopulateRuleOverideTileWizard>("Populate Override", "Populate"); wizard.m_tileset = oldWizard.m_tileset; wizard.m_spriteSet = oldWizard.m_spriteSet; }
/// <summary> /// Creates a wizard for the target RuleOverrideTIle /// </summary> /// <param name="target">The RuleOverrideTile to be edited by the wizard</param> public static void CreateWizard(RuleOverrideTile target) { PopulateRuleOverideTileWizard wizard = DisplayWizard <PopulateRuleOverideTileWizard>("Populate Override", "Populate"); wizard.m_tileset = target; }
private static void MenuOption(MenuCommand menuCommand) { PopulateRuleOverideTileWizard.CreateWizard(menuCommand.context as RuleOverrideTile); }