Exemplo n.º 1
0
 public void SetDialogue(string sDialogueToBegin)
 {
     this.xQuery = null;
     if (sDialogueToBegin == "")
     {
         this.xCurrentDialogue = DialogueSystem.xEmptyDialogue;
     }
     else
     {
         DialogueGod xOverride = Program.GetTheGame().xDialogueGod_Override;
         DialogueGod xDefault = Program.GetTheGame().xDialogueGod_Default;
         if (xOverride != null && xOverride.dsxDialogueCollections.ContainsKey(this.sCurrentSet) && xOverride.dsxDialogueCollections[this.sCurrentSet].dsxDialogues.ContainsKey(sDialogueToBegin))
         {
             this.xCurrentDialogue = xOverride.dsxDialogueCollections[this.sCurrentSet].dsxDialogues[sDialogueToBegin];
         }
         else
         {
             this.xCurrentDialogue = xDefault.dsxDialogueCollections[this.sCurrentSet].dsxDialogues[sDialogueToBegin];
         }
     }
     this.InitializeCurrentDialogue();
 }
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 SetCustomLineDialogue(string sLine)
 {
     this.xQuery = null;
     this.xCurrentDialogue = DialogueSystem.xEmptyDialogue;
     this.xCurrentDialogue = new Dialogue();
     this.xCurrentDialogue.lxDialogueLines.Add(new DialogueLine());
     this.xCurrentDialogue.lxDialogueLines[0].sUnparsedFullLine = sLine;
     this.InitializeCurrentDialogue();
 }