Exemple #1
0
        public void AddStep(GM.DataCache.DialogueInfo steph)
        {
            DialogueStepData step = new DialogueStepData(steph);

            //Steps.Insert(3, step);
            if (step.StepId > Steps.Length || step.StepId < 1)
            {
                EB.Debug.LogError("Dialogue stepsnum is Illigal  id={0}", DialogueId);
                return;
            }
            Steps[step.StepId - 1] = step;
        }
Exemple #2
0
 public DialogueStepData(GM.DataCache.DialogueInfo steph)
 {
     DialogueId  = steph.DialogueId;
     StepId      = steph.StepId;
     Icon        = steph.Icon;
     SpeakName   = EB.Localizer.GetTableString(string.Format("ID_guide_dialogue_{0}_{1}_name", steph.DialogueId, steph.StepId), steph.Name);       //;
     Layout      = steph.Layout;
     Context     = EB.Localizer.GetTableString(string.Format("ID_guide_dialogue_{0}_{1}_context", steph.DialogueId, steph.StepId), steph.Context); //;
     Shade       = steph.Shade;
     ShakeTime   = (int)steph.CameraShake;
     StayTime    = 600;
     StepNum     = steph.StepNum;
     FontSize    = steph.FontSize;
     LobbyCamera = SetCameraData(steph.LobbyCamera);
 }