Inheritance: UnityEngine.ScriptableObject
Esempio n. 1
0
        private void OnClickExport(object sender, EventArgs e)
        {
            string path     = Options.OutputPath;
            string fileName = Path.Combine(path, "Speech.csv");

            SpeechList.ExportToCSV(fileName);
            MessageBox.Show($"Speech saved to {fileName}", "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
        }
Esempio n. 2
0
        private void OnClickSave(object sender, EventArgs e)
        {
            dataGridView1.CancelEdit();
            string path     = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            string FileName = Path.Combine(path, "speech.mul");

            SpeechList.SaveSpeechList(FileName);
            dataGridView1.Invalidate();
            MessageBox.Show(String.Format("Speech saved to {0}", FileName), "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
            Options.ChangedUltimaClass["Speech"] = false;
        }
Esempio n. 3
0
        private void OnClickSave(object sender, EventArgs e)
        {
            dataGridView1.CancelEdit();
            string path     = Options.OutputPath;
            string fileName = Path.Combine(path, "speech.mul");

            SpeechList.SaveSpeechList(fileName);
            dataGridView1.Invalidate();
            MessageBox.Show($"Speech saved to {fileName}", "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
            Options.ChangedUltimaClass["Speech"] = false;
        }
 void Awake()
 {
     gm                    = FindObjectOfType <GameManager>();
     speechList            = gm.molenchonSpeechList;
     molenchonMesh         = GetComponentInChildren <MeshRenderer>();
     baseMeshColor         = molenchonMesh.material.color;
     baseBubbleBgColor     = speechBubble.background.color;
     baseEmissiveColor     = molenchonMesh.material.GetColor("_EmissionColor");
     baseScale             = molenchonMesh.transform.localScale;
     speechBubbleBaseScale = speechBubble.GetComponent <RectTransform>().localScale;
     hologramBubble.gameObject.SetActive(false);
 }
Esempio n. 5
0
        private void OnClickImport(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog
            {
                Multiselect     = false,
                Title           = "Choose csv file to import",
                CheckFileExists = true,
                Filter          = "csv files (*.csv)|*.csv"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                Options.ChangedUltimaClass["Speech"] = true;
                SpeechList.ImportFromCSV(dialog.FileName);
                _source.DataSource = SpeechList.Entries;
                dataGridView1.Invalidate();
            }
            dialog.Dispose();
        }