/// <summary>
 /// 根据现有数据创建控件
 /// </summary>
 private void CreateControlByData()
 {
     int[] dialogueConditionIDs = dialogueAnalysisData.GetDialogueConditionAllID;
     foreach (int dialogueConditionID in dialogueConditionIDs)
     {
         DialogueCondition dialogueCondition = dialogueAnalysisData.GetDialogueConditionIDByID(dialogueConditionID);
         if (dialogueCondition == null)
         {
             continue;
         }
         DialogueConditionControl dialogueConditionControl = CreateNewTopNode(dialogueCondition, false);
         DialoguePoint            dialoguePoint            = dialogueCondition.topPoint;
         CreateControlByData(dialogueConditionControl, dialoguePoint);
         ResetControlRect(dialogueConditionControl.Parent);
         dialogueConditionControl.Parent.Refresh();
     }
     ResetBackRect();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 通过对话id获取直接包含该id的可用条件
 /// </summary>
 /// <param name="dialogueValueID">对话id</param>
 /// <returns></returns>
 public DialogueCondition SearchDialogueConditionByID(int dialogueValueID)
 {
     return(dialogueAnalysisData.GetDialogueConditionIDByID(dialogueValueID));
 }