public SwitchBHAV ( FSO.Files.Formats.IFF.Chunks.BHAV target, EditorScope scope, VMStackFrame frame ) : void | ||
target | FSO.Files.Formats.IFF.Chunks.BHAV | |
scope | EditorScope | |
frame | VMStackFrame | |
return | void |
public override void Execute(BHAV bhav, UIBHAVEditor editor) { Old = editor.BHAVView.EditTarget; OldScope = editor.BHAVView.Scope; OldFrame = editor.DebugFrame; editor.BHAVView.OnSelectedChanged -= SelectCallback; editor.SwitchBHAV(Target, TargetScope, Frame); editor.BHAVView.OnSelectedChanged += SelectCallback; }
public override void Undo(BHAV bhav, UIBHAVEditor editor) { editor.BHAVView.OnSelectedChanged -= SelectCallback; editor.SwitchBHAV(Old, OldScope, OldFrame); editor.BHAVView.OnSelectedChanged += SelectCallback; }