private void levelEditorThread() { Mainframe_Level_Editor editor = new Mainframe_Level_Editor(); editor.Show(); MainframeLevelEditor game = new MainframeLevelEditor(editor.getDrawSurface(), editor); game.setMouseHandle(editor.getDrawSurface()); editor.setGameFocus(game); game.Run(); }
private void levelEditorThread() { Mainframe_Level_Editor editor = new Mainframe_Level_Editor(); editor.Show(); MainframeLevelEditor game = new MainframeLevelEditor(editor.getDrawSurface(), editor); game.setMouseHandle(editor.getDrawSurface()); editor.setGameFocus(game); game.Run(); }
public MainframeLevelEditor(IntPtr drawSurface, Mainframe_Level_Editor owner) { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; graphics.PreferredBackBufferHeight = ConstantHolder.GAME_HEIGHT; graphics.PreferredBackBufferWidth = ConstantHolder.GAME_WIDTH; this.drawSurface = drawSurface; graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings); System.Windows.Forms.Control.FromHandle(this.Window.Handle).VisibleChanged += new EventHandler(mainframeVisibleChanged); Owner = owner; }
public Create_New_Level(MainframeLevelEditor Game, Mainframe_Level_Editor editor) { InitializeComponent(); game = Game; this.editor = editor; }
public Create_New_Level(MainframeLevelEditor Game, Mainframe_Level_Editor editor) { InitializeComponent(); game = Game; this.editor = editor; }