Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {            
     res = new ME2BioConversation.EntryListReplyListStruct();
     res.Paraphrase = textBox1.Text;
     res.refParaphrase = Int32.Parse(textBox2.Text);
     res.CategoryValue = pcc.FindNameOrAdd(comboBox1.Text);
     res.Index = Int32.Parse(textBox4.Text);
     state = 1;
 }
Ejemplo n.º 2
0
 private void entrysReplyListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = treeView1.SelectedNode;
     if (t == null || t.Parent == null)
         return;
     TreeNode p = t.Parent;
     if (p.Parent != null && p.Index == 0)
     {
         ME2BioConversation.EntryListStuct el = Dialog.EntryList[p.Parent.Index];
         ME2BioConversation.EntryListReplyListStruct rpe0 = el.ReplyList[t.Index];
         ME2BioConversation.EntryListReplyListStruct rpe = new ME2BioConversation.EntryListReplyListStruct();
         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();
     }
 }
Ejemplo n.º 3
0
 private void entryListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = treeView1.SelectedNode;
     if (t == null || t.Parent != null)
         return;
     ME2BioConversation.EntryListStuct el0 = Dialog.EntryList[t.Index];
     ME2BioConversation.EntryListStuct el = new ME2BioConversation.EntryListStuct();
     el.ReplyList = new List<ME2BioConversation.EntryListReplyListStruct>();
     foreach (ME2BioConversation.EntryListReplyListStruct rpe0 in el0.ReplyList)
     {
         ME2BioConversation.EntryListReplyListStruct rpe = new ME2BioConversation.EntryListReplyListStruct();
         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.Ambient = el0.Ambient;
     el.CameraIntimacy = el0.CameraIntimacy;
     el.ConditionalFunc = el0.ConditionalFunc;
     el.ConditionalParam = el0.ConditionalParam;
     el.ExportID = el0.ExportID;
     el.FireConditional = el0.FireConditional;
     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();
 }