Ejemplo n.º 1
0
        private void OnVoiceBankChanged(object sender, EventArgs e)
        {
            if (!ready)
            {
                return;
            }

            dialogue.VoiceBank = textBoxVoiceBank.Text;

            //document.SetDirty();
            document.SetPendingDirty();
        }
Ejemplo n.º 2
0
        //--------------------------------------------------------------------------------------------------------------
        // 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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }