public override void Setup()
        {
            items.Clear();
            int counter = 0;

            for (int i = 0; i < paths.Count; i++)
            {
                InteractionPath p     = paths[i];
                bool            check = true;
                if (QuestData.QuestDatabase.ContainsKey(questTags[i]))
                {
                    if (questInts[i] != QuestData.QuestDatabase[questTags[i]].CheckStatus())
                    {
                        check = false;
                    }
                }
                if (check)
                {
                    items.Add(new UIButton(0, -100 - counter * 21, 30, 10, 2, TextureManager.TextureNames.textBox)
                    {
                        displayLabel = new UIText(0, -98 - counter++ *21, .5f, 1, p.pathName),
                        buttonAction = () => {
                            Windows.InteractionWindow.InsertNodes(p.items);
                            nextNode.Invoke();
                        }
                    });
                }
            }
            if (immediateMode)
            {
                Windows.InteractionWindow.InsertNodes(paths[0].items);
                nextNode.Invoke();
            }
        }
Beispiel #2
0
        public override void Setup()
        {
            items.Clear();
            int counter = 0;

            for (int i = 0; i < paths.Count; i++)
            {
                InteractionPath p = paths[i];
                items.Add(new UIButton(0, -100 - counter * 21, 30, 10, 2, TextureManager.TextureNames.textBox)
                {
                    displayLabel = new UIText(0, -98 - counter++ *21, .5f, 1, p.pathName),
                    buttonAction = () => {
                        Windows.InteractionWindow.InsertNodes(p.items);
                        nextNode.Invoke();
                    }
                });
            }
        }