public void Test(VM vm)
{
ObjectRegistry.Init();
this.HookedVM = vm;
entityInspector1.ChangeVM(vm);
Browser.RefreshTree();
}
public void StartIDE(VM vm) { EditorResource.Get().Init(GameFacade.GraphicsDevice); EditorScope.Behaviour = new Files.Formats.IFF.IffFile(Content.Content.Get().GetPath("objectdata/globals/behavior.iff")); EditorScope.Globals = FSO.Content.Content.Get().WorldObjectGlobals.Get("global"); var t = new Thread(() => { var editor = new MainWindow(); editor.Test(vm); Application.Run(editor); }); //t.SetApartmentState(ApartmentState.STA); t.Start(); }