Exemplo n.º 1
0
 public void SetPopUpDialogue(PopUpRenderComponent xPop)
 {
     this.xPopUpRenderComponent = xPop;
     this.iSkipDelayGuard = 90;
 }
Exemplo n.º 2
0
 public void EndDialogueFinal()
 {
     if (!this.bInDialogue)
     {
         return;
     }
     this.bInDialogue = false;
     this.xPopUpRenderComponent = null;
     this.iFadeCount = 0;
     this.xQuery = null;
     this.bInSkipMode = false;
     Game1 master = Program.GetTheGame();
     if (!master.xCutsceneMaster.bInCutscene)
     {
         master._Dialogue_EndWorldDialogue();
         master._Network_Client_SendGeneric(1, new float[0]);
         master.xLocalPlayer.xEntity.enTargetable = PlayerEntity.Targetable.Full;
     }
 }
Exemplo n.º 3
0
 public void ProgressDialogue()
 {
     if (this.iSkipDelayGuard > 0)
     {
         return;
     }
     if (this.xPopUpRenderComponent != null)
     {
         this.xPopUpRenderComponent.Close();
         return;
     }
     this.bCantSkipCurrentLine = false;
     this.xPopUpRenderComponent = null;
     Dialogue xCur = this.xCurrentDialogue;
     if (this.iDialogueProgress >= 0 && this.xCurrentLine.lsPostScripts != null)
     {
         foreach (string s in this.xCurrentLine.lsPostScripts)
         {
             Program.GetTheGame()._Dialogue_ParseEvent(s);
         }
     }
     if (this.xCurrentDialogue != xCur)
     {
         return;
     }
     this.iDialogueProgress++;
     this.bCurrentLineOnEnd = false;
     if (this.iDialogueProgress < this.xCurrentDialogue.lxDialogueLines.Count)
     {
         this.xCurrentLine = this.xCurrentDialogue.lxDialogueLines[this.iDialogueProgress];
         if (this.xCurrentLine.sSpeaker != "None")
         {
             this.xLineDisplay.SetNewLine(this.xCurrentLine.sUnparsedFullLine, DialogueSystem.fontText);
         }
         else
         {
             this.xLineDisplay.SetNewLineNoSpeaker(this.xCurrentLine.sUnparsedFullLine, DialogueSystem.fontText);
         }
         if (this.xCurrentLine.lsPreScripts != null)
         {
             foreach (string s2 in this.xCurrentLine.lsPreScripts)
             {
                 Program.GetTheGame()._Dialogue_ParseEvent(s2);
             }
         }
         this.xCharData = DialogueCharacterLoading.GetCharacterData(this.xCurrentLine.sSpeaker);
         this.sPortrait = this.xCurrentLine.sMood;
         return;
     }
     this.EndDialogue();
 }