public BBBFileController(
     FileDatabase database,
     BBBFile bbb,
     string fileName)
     :
     base(database, fileName)
 {
     myBBB = bbb;
 }
Example #2
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            try
            {
                Settings.Load();

                myDefinitionDB.Load(Folder +
                                    Settings.GetString("Settings", "DefinitionsFile"));

                DefinitionDB.EnableDeveloperMode(
                    Settings.GetBool("DefTypes", "DevModeOn", false));

                myTNGDefinitions.Load(Folder +
                                      Settings.GetString("Settings", "TNGDefinitionsFile"));

                myFileDB = new FileDatabase(
                    this, myDefinitionDB, myTNGDefinitions);

                ModEnvironmentManager envManager = new ModEnvironmentManager();

                if (!envManager.Check())
                {
                    ErrorMessage(
                        "Modding environment is not acceptable.\r\n" +
                        "Application will not exit.");

                    Close();

                    return;
                }

                LoadStartupFiles();

                FableMod.Gfx.Integration.GfxManager.Initialize(
                    this,
                    Settings.GetInt("Resolution", "Width", 1024),
                    Settings.GetInt("Resolution", "Height", 768));

                FableMod.Gfx.Integration.GfxManager.SetDirectory(Folder);

                LoadUIDs();

                newModPackageToolStripMenuItem.Enabled =
                    Settings.GetBool("Settings", "ModPackages", false);
                loadModPackageToolStripMenuItem.Enabled =
                    newModPackageToolStripMenuItem.Enabled;

                completeUIDCheckToolStripMenuItem.Enabled =
                    Settings.GetBool("Settings", "UIDCheck", false);

                if (myArgs == null || myArgs.Length == 0)
                {
                    timerTip.Enabled = true;
                }
            }
            catch (Exception ex)
            {
                ErrorMessage(ex.Message + "\r\n" + ex.ToString());
                Close();
            }

            ProcessCommandLine();
        }
Example #3
0
 public BIGFileController(FileDatabase database, string fileName)
     :
     base(database, fileName)
 {
 }
Example #4
0
 public FileController(FileDatabase database, string fileName)
 {
     myState    = (int)FileState.InSystem;
     myFileName = fileName;
     myDatabase = database;
 }
 public WLDFileController(FileDatabase database, string fileName)
     :
     base(database, fileName)
 {
     myWLD = new WLDFile();
 }
Example #6
0
 public NamesBINController(FileDatabase database, string fileName)
     :
     base(database, fileName)
 {
 }