private void ReplaceStringToKey_Say(int nDialogID, SHDialogSay dialogSay) { m_nSaySelectID++; dialogSay.text = "DIALOG_SAY_TEXT_" + nDialogID.ToString() + "_" + m_nSaySelectID.ToString(); foreach (SHDialogSelect dialogSelect in dialogSay.dataList) { ReplaceStringToKey_Select(nDialogID, dialogSelect); } }
private void AddStringSay(SHDialog dialog, SHDialogSay dialogSay, ref SHStringXml DialogString) { m_nSaySelectID++; string szKey = "DIALOG_SAY_TEXT_" + dialog.id.ToString() + "_" + m_nSaySelectID; AddString(szKey, dialogSay.text, ref DialogString); foreach (SHDialogSelect dialogSelect in dialogSay.dataList) { AddStringSelect(dialog, dialogSelect, ref DialogString); } }
private void ReplaceKeyToString_Say(int nDialogID, SHDialogSay dialogSay, SHStringXml DialogString) { m_nSaySelectID++; string szKey = "DIALOG_SAY_TEXT_" + nDialogID.ToString() + "_" + m_nSaySelectID.ToString(); if (DialogString.IsValid(szKey)) { dialogSay.text = DialogString[szKey].ToString(); } foreach (SHDialogSelect dialogSelect in dialogSay.dataList) { ReplaceKeyToString_Select(nDialogID, dialogSelect, DialogString); } }