Exemple #1
0
        private void OnVoiceBankChanged(object sender, EventArgs e)
        {
            if (!ready)
            {
                return;
            }

            dialogue.VoiceBank = textBoxVoiceBank.Text;

            //document.SetDirty();
            document.SetPendingDirty();
        }
        //--------------------------------------------------------------------------------------------------------------
        // Events

        private void OnWorkstringChanged(object sender, EventArgs e)
        {
            if (!ready)
            {
                return;
            }

            RichTextBox textBox = sender as RichTextBox;

            dialogueNode.Choice = EditorHelper.SanitizeText(textBox.Text);

            document.RefreshTreeNode(treeNode);
            //document.SetDirty();
            document.SetPendingDirty();
        }
        private void OnCameraBlendTimeChanged(object sender, EventArgs e)
        {
            if (!ready)
            {
                return;
            }

            float Value = 0.0f;

            if (float.TryParse(textBoxCameraBlendTime.Text, out Value))
            {
                dialogue.CameraBlendTime = Value;
            }
            else if (textBoxCameraBlendTime.Text == "")
            {
                dialogue.CameraBlendTime = 0.0f;
            }

            document.SetPendingDirty();
        }
        private void OnWorkstringChanged(object sender, EventArgs e)
        {
            if (!ready)
            {
                return;
            }

            RichTextBox textBox = sender as RichTextBox;

            if (!isEditingWorkstring)
            {
                isEditingWorkstring = true;
                originalWorkstring  = dialogueNode.Sentence;
            }

            dialogueNode.Sentence = EditorHelper.SanitizeText(textBox.Text);

            RefreshWordCount();

            document.RefreshTreeNode(treeNode);
            //document.SetDirty();
            document.SetPendingDirty();
        }