コード例 #1
0
 public override void execute()
 {
     //This should only ever be run in the new subaction context panel. Otherwise, throw error
     if (ContextualPanelData.isOfType(typeof(NewSubactionContextPanel)))
     {
         executingPanelData = (NewSubactionContextPanel)LegacyEditorData.contextualPanel;
         previousType       = executingPanelData.selectedType;
         executingPanelData.selectedType = nextType;
         executingPanelData.FireContextualPanelChange();
     }
     else
     {
         throw new System.Exception("Attempting to use NewSubactionChangeSubactionType from a Contextual Panel other than NewSubactionContextPanel");
     }
 }
コード例 #2
0
 public override void undo()
 {
     executingPanelData.selectedType = previousType;
     executingPanelData.FireContextualPanelChange();
 }