Example #1
0
        private static IEnumerator Avgstart(int id)
        {
            while (AVGPlayer == null)
            {
                yield return(null);
            }

            Libretto.PlayNode(id);
        }
Example #2
0
 public void NextNode()
 {
     if (captions.NextPage())
     {
         //表示还有下一条
     }
     else
     {
         //、没有下一条显示下个节点
         Libretto.NextNode();
     }
 }
Example #3
0
    public void Load()
    {
        UI_Choice ch = UIManager.GetUI<UI_Choice>();

        UI_Choice_Context con = new UI_Choice_Context();
        con.OptionList = new List<iLabel>();

        for (int i = 0; i < GameManager.Save.File.Length; i++)
        {
            con.OptionList.Add(new Label()
            {
                ID = i,
                Name = @"["+Writing.Get(100027) + (i + 1) + "]:" + 
                Writing.Get(Libretto.GetNode(GameManager.Save.File[i]).Sentences.First().Value.DialogueID),
            });
        }

        con.Callback = this.LoadCallbacek;
        ch.Use(con);
        ch.SetFront();
    }
Example #4
0
    private void PlayNodeTypeOption(iNode _node)
    {
        UIManager.GetUI<UI_Game>().NoNext = true;
        UI_Choice _c = UIManager.GetUI<UI_Choice>();
        _c.SetFront();

        UI_Choice_Context con = new UI_Choice_Context();
        con.OptionList = new List<iLabel>();
        foreach (var item in _node.Sentences)
        {
            Label l = new Label() { ID = item.Key, Name = Writing.Get(item.Value.DialogueID) };
            con.OptionList.Add(l);
        }

        con.Callback = (res, uichoice) =>
        {
            GameManager.Save.ChoiceResult[_node.ID] = res;
            uichoice.UseDone();
            Libretto.NextNode();
        };

        _c.Use(con);
    }
Example #5
0
 private void LoadCallbacek(int arg1, UI_Choice arg2)
 {
     arg2.UseDone();
     UIManager.GetUI<UI_Game>().SetFront();  
     Libretto.PlayNode(GameManager.Save.File[arg1]);
 }
Example #6
0
 public void LastNode()
 {
      Libretto.LastNode();
 }