Exemple #1
0
 private void DataGridViewCellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.ColumnIndex == 1)
     {
         iForm iForm = new ShowTxt();
         if (iForm != null)
         {
             iForm.NeedSave = false;
             iForm.Data     = Convert.ToString(this.grid3.Rows[e.RowIndex].Cells[1].Value);
             iForm.SetText();
             iForm.ShowDialog();
         }
     }
 }
    /// <summary>
    /// 抓取文本并设置
    /// </summary>
    private void TalkShow(SynopsisSystem _sy, TalkSystem talkSystem)
    {
        if (isFirst)
        {
            //设置剧情系统正在对话中
            _sy.SetTalkState(TalkState.Talking);
            talkTxt.GetTxt(_sy.currentNpc.NpcState, _sy.currentNpc.NpcID, talkSystem);
            isFirst = false;
        }
        ShowTxt showTxt = talkSystem.ShowTxts();

        //********************************
        if (showTxt != null)
        {
            Talk(showTxt.name, showTxt.txt);
        }
    }