예제 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(true);
     Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
     // Set the Program Properties
     SpriteIncremental     = 0;
     SoundIncremental      = 0;
     BackgroundIncremental = 0;
     PathIncremental       = 0;
     ScriptIncremental     = 0;
     FontIncremental       = 0;
     DataFileIncremental   = 0;
     TimeLineIncremental   = 0;
     ObjectIncremental     = 0;
     RoomIncremental       = 0;
     Sprites     = new Dictionary <int, SpriteResourceView>();
     Sounds      = new Dictionary <int, SoundResourceView>();
     Backgrounds = new Dictionary <int, BackgroundResourceView>();
     Paths       = new Dictionary <int, PathResourceView>();
     Scripts     = new Dictionary <int, ScriptResourceView>();
     Fonts       = new Dictionary <int, FontResourceView>();
     DataFiles   = new Dictionary <int, DataFileResourceView>();
     TimeLines   = new Dictionary <int, TimeLineResourceView>();
     Objects     = new Dictionary <int, ObjectResourceView>();
     Rooms       = new Dictionary <int, RoomResourceView>();
     Library     = new List <ActionLibrary>();
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMove)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMain1)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMain2)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibControl)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibScore)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibExtra)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibDraw)));
     IDE = new DesignerForm();
     // Load the settings
     if (!Properties.Settings.Default.WindowDefault)
     {
         bool maximized = Properties.Settings.Default.WindowMaximized;
         IDE.StartPosition = FormStartPosition.Manual;
         IDE.Location      = new System.Drawing.Point(Math.Max(0, Properties.Settings.Default.WindowX), Math.Max(0, Properties.Settings.Default.WindowY));
         IDE.Size          = new System.Drawing.Size(Properties.Settings.Default.WindowWidth, Properties.Settings.Default.WindowHeight);
         if (maximized)
         {
             IDE.WindowState = FormWindowState.Maximized;
         }
     }
     // Run GameCreator
     Application.Run(IDE);
     Properties.Settings.Default.Save();
 }
예제 #2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(true);
     Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
     // Set the Program Properties
     SpriteIncremental = 0;
     SoundIncremental = 0;
     BackgroundIncremental = 0;
     PathIncremental = 0;
     ScriptIncremental = 0;
     FontIncremental = 0;
     DataFileIncremental = 0;
     TimeLineIncremental = 0;
     ObjectIncremental = 0;
     RoomIncremental = 0;
     Sprites = new Dictionary<int, SpriteResourceView>();
     Sounds = new Dictionary<int, SoundResourceView>();
     Backgrounds = new Dictionary<int, BackgroundResourceView>();
     Paths = new Dictionary<int, PathResourceView>();
     Scripts = new Dictionary<int, ScriptResourceView>();
     Fonts = new Dictionary<int, FontResourceView>();
     DataFiles = new Dictionary<int, DataFileResourceView>();
     TimeLines = new Dictionary<int, TimeLineResourceView>();
     Objects = new Dictionary<int, ObjectResourceView>();
     Rooms = new Dictionary<int, RoomResourceView>();
     Library = new List<ActionLibrary>();
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMove)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMain1)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibMain2)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibControl)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibScore)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibExtra)));
     Library.Add(ActionLibrary.Load(new System.IO.MemoryStream(Properties.Resources.LibDraw)));
     IDE = new DesignerForm();
     // Load the settings
     if (!Properties.Settings.Default.WindowDefault)
     {
         bool maximized = Properties.Settings.Default.WindowMaximized;
         IDE.StartPosition = FormStartPosition.Manual;
         IDE.Location = new System.Drawing.Point(Math.Max(0, Properties.Settings.Default.WindowX), Math.Max(0, Properties.Settings.Default.WindowY));
         IDE.Size = new System.Drawing.Size(Properties.Settings.Default.WindowWidth, Properties.Settings.Default.WindowHeight);
         if (maximized)
             IDE.WindowState = FormWindowState.Maximized;
     }
     // Run GameCreator
     Application.Run(IDE);
     Properties.Settings.Default.Save();
 }