public void InjectIDEInto(UIScreen screen, VM vm, BHAV targetBhav, GameObject targetObj) { 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"); new Thread(() => { var editor = new BHAVEditor(targetBhav, new EditorScope(targetObj, targetBhav)); Application.Run(editor); }).Start(); }