Пример #1
0
        private void OnOptionsItem_Clicked(object sender, EventArgs e)
        {
            OptionsForm options = new OptionsForm();

            options.ShowDialog();
            Localise();
            MaterialData.Load();
        }
Пример #2
0
        private void BGWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            //setup logger.
            Log.DeleteOldLog();

            //do vital inits;
            CheckINIExists();
            ToolkitSettings.ReadINI();
            backgroundWorker1.ReportProgress(10, "Read INI Settings..");

            Language.ReadLanguageXML();

            //SystemClass.StartRenderForm("Model Viewer", 1024, 720, true, "Model", false, 0);
            MaterialData.Load();
        }
Пример #3
0
        private void HandleSDSMap(FileInfo info, bool forceBigEndian = false)
        {
            //make sure to load materials.
            MaterialData.Load();


            //we now build scene data from GameExplorer rather than d3d viewer.
            SceneData.ScenePath = info.DirectoryName;
            SceneData.BuildData(forceBigEndian);

            //d3d viewer expects data inside scenedata.
            D3DForm d3dForm = new D3DForm(info);

            d3dForm.Dispose();
        }
Пример #4
0
        static void Main(string[] args)
        {
            //begin form inits;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Log.DeleteOldLog();
            Log.CreateFile();

            //do vital inits;
            CheckINIExists();
            ToolkitSettings.ReadINI();

            Language.ReadLanguageXML();

            MaterialData.Load();

            Application.Run(new GameExplorer());
        }
Пример #5
0
        private void Button_Exit_Click(object sender, EventArgs e)
        {
            if (bIsFileEdited)
            {
                System.Windows.MessageBoxResult SaveChanges = System.Windows.MessageBox.Show("Save before closing?", "", System.Windows.MessageBoxButton.YesNoCancel);

                if (SaveChanges == System.Windows.MessageBoxResult.Yes)
                {
                    Save();
                    MaterialData.Load();
                    Dispose();
                }
                else if (SaveChanges == System.Windows.MessageBoxResult.No)
                {
                    MaterialData.Load();
                    Dispose();
                }
            }
            else
            {
                MaterialData.Load();
                Dispose();
            }
        }
Пример #6
0
 private void ExitButton_Click(object sender, EventArgs e)
 {
     MaterialData.Load();
     Dispose();
 }