public void MainFormLoaded(frmRenderPanel mainForm) { this.mainForm = mainForm; winWidth = mainForm.Width; winHeight = mainForm.Height; script.Init(this); script.SetRenderPanel(mainForm); if ((script as INotifyMessageWhenShutdown) != null) { ((INotifyMessageWhenShutdown)script).ShutdownShowMessage += Render_ShutdownShowMessage; } developerConsole = new frmDeveloperConsole(this, script); ConsoleCommandManager.Instance.AddConsoleCommand(new ListAvaliabeCommandsConsoleCommand()); }
public void SetRenderPanel(frmRenderPanel renderPanel) { this.renderPanel = renderPanel; renderPanel.SetWorldMap(Resources.worldmap); }