Esempio n. 1
0
        internal Editor()
        {
            Instance = this;

            Log("Setting up C# Editor...");

            Internal_GetProjectInfo(out _projectInfo);

            Icons = new EditorIcons();
            Icons.GetIcons();

            // Create common editor modules
            RegisterModule(Options           = new OptionsModule(this));
            RegisterModule(ProjectCache      = new ProjectCacheModule(this));
            RegisterModule(Scene             = new SceneModule(this));
            RegisterModule(Windows           = new WindowsModule(this));
            RegisterModule(UI                = new UIModule(this));
            RegisterModule(Thumbnails        = new ThumbnailsModule(this));
            RegisterModule(Simulation        = new SimulationModule(this));
            RegisterModule(Prefabs           = new PrefabsModule(this));
            RegisterModule(SceneEditing      = new SceneEditingModule(this));
            RegisterModule(ContentEditing    = new ContentEditingModule(this));
            RegisterModule(ContentDatabase   = new ContentDatabaseModule(this));
            RegisterModule(ContentImporting  = new ContentImportingModule(this));
            RegisterModule(CodeEditing       = new CodeEditingModule(this));
            RegisterModule(ProgressReporting = new ProgressReportingModule(this));
            RegisterModule(ContentFinding    = new ContentFindingModule(this));

            StateMachine = new EditorStateMachine(this);
            Undo         = new EditorUndo(this);

            ScriptsBuilder.ScriptsReloadBegin   += ScriptsBuilder_ScriptsReloadBegin;
            ScriptsBuilder.ScriptsReloadEnd     += ScriptsBuilder_ScriptsReloadEnd;
            UIControl.FallbackParentGetDelegate += OnUIControlFallbackParentGet;
        }
Esempio n. 2
0
        internal Editor()
        {
            Instance = this;

            Log("Setting up C# Editor...");

            Internal_GetProjectInfo(out _projectInfo);

            // Create common editor modules
            RegisterModule(Windows           = new WindowsModule(this));
            RegisterModule(UI                = new UIModule(this));
            RegisterModule(Thumbnails        = new ThumbnailsModule(this));
            RegisterModule(Simulation        = new SimulationModule(this));
            RegisterModule(Scene             = new SceneModule(this));
            RegisterModule(SceneEditing      = new SceneEditingModule(this));
            RegisterModule(ContentEditing    = new ContentEditingModule(this));
            RegisterModule(ContentDatabase   = new ContentDatabaseModule(this));
            RegisterModule(ContentImporting  = new ContentImportingModule(this));
            RegisterModule(CodeEditing       = new CodeEditingModule(this));
            RegisterModule(ProgressReporting = new ProgressReportingModule(this));

            StateMachine = new EditorStateMachine(this);
            Undo         = new EditorUndo(this);

            ScriptsBuilder.ScriptsReloadBegin += ScriptsBuilder_ScriptsReloadBegin;
            ScriptsBuilder.ScriptsReloadEnd   += ScriptsBuilder_ScriptsReloadEnd;
        }