Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 public void SetRenderPanel(frmRenderPanel renderPanel)
 {
     this.renderPanel = renderPanel;
     renderPanel.SetWorldMap(Resources.worldmap);
 }