Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {            
     res = new ME3BioConversation.EntryListReplyListStruct();
     res.Paraphrase = textBox1.Text;
     res.refParaphrase = Int32.Parse(textBox2.Text);
     res.CategoryType = pcc.FindNameOrAdd("EReplyCategory");
     res.CategoryValue = pcc.FindNameOrAdd(comboBox1.Text);
     res.Index = Int32.Parse(textBox4.Text);
     state = 1;
 }
Esempio n. 2
0
 private void entrysReplyListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = entryListTreeView.SelectedNode;
     if (t == null || t.Parent == null)
         return;
     TreeNode p = t.Parent;
     if (p.Parent != null && p.Index == 0)
     {
         ME3BioConversation.EntryListStuct el = Dialog.EntryList[p.Parent.Index];
         ME3BioConversation.EntryListReplyListStruct rpe0 = el.ReplyList[t.Index];
         ME3BioConversation.EntryListReplyListStruct rpe = new ME3BioConversation.EntryListReplyListStruct();
         rpe.CategoryType = rpe0.CategoryType;
         rpe.CategoryValue = rpe0.CategoryValue;
         rpe.Index = rpe0.Index;
         rpe.Paraphrase = "" + rpe0.Paraphrase;
         rpe.refParaphrase = rpe0.refParaphrase;
         el.ReplyList.Add(rpe);
         Dialog.EntryList[p.Parent.Index] = el;
         Dialog.Save();
     }
 }
Esempio n. 3
0
 private void entryListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = entryListTreeView.SelectedNode;
     if (t == null || t.Parent != null)
         return;
     ME3BioConversation.EntryListStuct el0 = Dialog.EntryList[t.Index];
     ME3BioConversation.EntryListStuct el = new ME3BioConversation.EntryListStuct();
     el.ReplyList = new List<ME3BioConversation.EntryListReplyListStruct>();
     foreach (ME3BioConversation.EntryListReplyListStruct rpe0 in el0.ReplyList)
     {
         ME3BioConversation.EntryListReplyListStruct rpe = new ME3BioConversation.EntryListReplyListStruct();
         rpe.CategoryType = rpe0.CategoryType;
         rpe.CategoryValue = rpe0.CategoryValue;
         rpe.Index = rpe0.Index;
         rpe.Paraphrase = "" + rpe0.Paraphrase;
         rpe.refParaphrase = rpe0.refParaphrase;
         el.ReplyList.Add(rpe);
     }
     el.SpeakerList = new List<int>();
     foreach (int i in el0.SpeakerList)
         el.SpeakerList.Add(i);
     el.AlwaysHideSubtitle = el0.AlwaysHideSubtitle;
     el.Ambient = el0.Ambient;
     el.CameraIntimacy = el0.CameraIntimacy;
     el.ConditionalFunc = el0.ConditionalFunc;
     el.ConditionalParam = el0.ConditionalParam;
     el.ExportID = el0.ExportID;
     el.FireConditional = el0.FireConditional;
     el.GUIStyleType = el0.GUIStyleType;
     el.GUIStyleValue = el0.GUIStyleValue;
     el.IgnoreBodyGestures = el0.IgnoreBodyGestures;
     el.ListenerIndex = el0.ListenerIndex;
     el.NonTextline = el0.NonTextline;
     el.refText = el0.refText;
     el.ScriptIndex = el0.ScriptIndex;
     el.Skippable = el0.Skippable;
     el.SpeakerIndex = el0.SpeakerIndex;
     el.StateTransition = el0.StateTransition;
     el.StateTransitionParam = el0.StateTransitionParam;
     el.Text = "" + el0.Text;
     Dialog.EntryList.Add(el);
     Dialog.Save();
 }