Exemplo n.º 1
0
 public override void EnterMenu()
 {
     base.EnterMenu();
     this.iAppearCounter = 1;
     this.xRenderComponent = new FishMenuRenderComponent(this);
     this.master.xRenderMaster.RegisterGUIRenderComponent(this.xRenderComponent);
     this.xCharData = DialogueCharacterLoading.GetCharacterData("Haddock");
     this.CheckForFishies();
     this.SetDialogue("neutral", "Mosmannen fan tjena jaaa eee en liten BOV! Hej hej! {c=blue}BLUE!{/}");
 }
Exemplo n.º 2
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();
 }