public GameForm() : base() { //set the window caption. This should be the name of your game with version number. //Edit your assembly info to alter your version number of your game this.Text = "ParticleEditor - Editing unsaved .emix"; camera = SpriteManager.Cameras[0]; cursor = GuiManager.Cursor; FlatRedBallServices.Update(); gameData = new EditorData(); gameData.Initialize(this); EditorData.guiData.Initialize(); GuiData.Messages.Initialize(this); GuiManager.RefreshTextSize(); }
protected override void Initialize() { Renderer.UseRenderTargets = false; FlatRedBallServices.InitializeFlatRedBall(this, graphics); LightManager.AddAmbientLight(Color.White); IsMouseVisible = true; GuiManager.IsUIEnabled = true; FormMethods methods = new FormMethods(); SpriteManager.Camera.CameraModelCullMode = FlatRedBall.Graphics.CameraModelCullMode.None; methods.AllowFileDrop(EditorData.HandleDragDrop); EditorData.Initialize(); GuiData.Initialize(); ProcessCommandLineArguments(); base.Initialize(); }