Esempio n. 1
0
        public MainForm()
        {
            StartPosition = FormStartPosition.CenterScreen;

            InitializeComponent();

            renderer = new SharpRenderer(renderPanel)
            {
                dffRenderer = new DFFRenderer(this)
            };

            showObjectsGToolStripMenuItem.CheckState = CheckState.Indeterminate;

            AboutBox             = new AboutBox();
            ViewConfig           = new ViewConfig(renderer.Camera);
            ConfigEditor         = new ConfigEditor.ConfigEditor();
            LevelEditor          = new LevelEditor.LevelEditor();
            CollisionEditorDict  = new Dictionary <ToolStripDropDownItem, CollisionEditor.CollisionEditor>();
            LayoutEditorDict     = new Dictionary <ToolStripDropDownItem, LayoutEditor.LayoutEditor>();
            CameraEditor         = new CameraEditor.CameraEditor();
            ParticleEditor       = new ParticleEditor.ParticleMenu();
            TexturePatternEditor = new TexturePatternEditor.TexturePatternEditor();
            LightEditor          = new LightEditor.LightMenu();
            SetIdTableEditor     = new SetIdTableEditor.SetIdTableEditor();
        }
Esempio n. 2
0
        private void ThreadStart(object target)
        {
            //if (app == null)
            //    app = new System.Windows.Application { ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown };
            var configWindow = new ConfigEditor.ConfigEditor(target as ConfigConstructor);

            //app.Run(configWindow);
            configWindow.ShowDialog();
        }