public GameEditor( IContextRegistry contextRegistry, IDocumentRegistry documentRegistry, IControlHostService controlHostService, ICommandService commandService, IDocumentService documentService, IPaletteService paletteService, ISettingsService settingsService, IResourceService resourceService, LevelEditorCore.ResourceLister resourceLister, BookmarkLister bookmarkLister ) { m_contextRegistry = contextRegistry; m_documentRegistry = documentRegistry; m_paletteService = paletteService; m_settingsService = settingsService; m_documentService = documentService; m_resourceService = resourceService; m_resourceLister = resourceLister; m_bookmarkLister = bookmarkLister; //to-do wire it to to command service InputScheme.ActiveControlScheme = new MayaControlScheme(); ResolveOnLoad = true; }
public PlacementManipulator(IContextRegistry contextRegistry, LevelEditorCore.ResourceLister resourceLister) { _manipContext = new GUILayer.ActiveManipulatorContext(); _nativeManip = null; _manipSettings = new Settings(); _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext); if (resourceLister != null) { resourceLister.SelectionChanged += resourceLister_SelectionChanged; _resourceLister = new WeakReference(resourceLister); } _contextRegistry = new WeakReference(contextRegistry); contextRegistry.ActiveContextChanged += OnActiveContextChanged; _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext); }