示例#1
0
        public bool Inspect()
        {
            bool changed = false;

            conditions.enter_Inspect_AsList(ref _inspectedItems, 1).nl_ifNotEntered(ref changed);

            if (icon.Hint.enter(text.GetNameForInspector(), ref _inspectedItems, 2))
            {
                text.Nested_Inspect();
            }
            else if (_inspectedItems == -1)
            {
                MultilanguageSentence.LanguageSelector_PEGI().nl();
            }

            "Results".enter_List(ref results, ref inspectedResult, ref _inspectedItems, 3, ref changed).SetLastUsedTrigger();

            pegi.nl_ifNotEntered();

            if (_inspectedItems == 4)
            {
                MultilanguageSentence.LanguageSelector_PEGI().nl();
            }

            "After choice texts".enter_Inspect(text2, ref _inspectedItems, 4).nl_ifNotEntered(ref changed);

            if (_inspectedItems == -1)
            {
                if (!nextOne.IsNullOrEmpty() && icon.Delete.Click("Remove any followups"))
                {
                    nextOne = "";
                }

                if (nextOne.IsNullOrEmpty())
                {
                    if ("Go To".Click())
                    {
                        nextOne = "UNSET";
                    }
                }
                else
                {
                    "Go To".select_iGotDisplayName(60, ref nextOne, Interaction.inspectedList).nl();
                }
            }
            return(changed);
        }
示例#2
0
        public bool Inspect()
        {
            var changed = false;

            if (_inspectedItems == -1)
            {
                var n = ReferenceName;

                if (n.IsNullOrEmpty() && "Add Reference name".Click())
                {
                    ReferenceName = "Rename Me";
                }

                if (!n.IsNullOrEmpty())
                {
                    if (renameLinkedReferences)
                    {
                        if ("Ref".editDelayed(50, ref n))
                        {
                            ReferenceName = n;
                        }
                    }
                    else if ("Ref".edit(50, ref n))
                    {
                        ReferenceName = n;
                    }

                    pegi.toggle(ref renameLinkedReferences, icon.Link, icon.UnLinked,
                                "Will all the references to this Interaction be renamed as well.").changes(ref changed);
                }

                pegi.FullWindow.DocumentationClickOpen(() =>
                                                       "You can use reference to link end of one interaction with the start of another. But the first text of it will be skipped. First sentence is the option user picks to start an interaction. Like 'Lets talk about ...' " +
                                                       "which is not needed if the subject is currently being discussed from interaction that came to an end.", "About option referance"
                                                       );
            }

            pegi.nl();

            if (_inspectedItems == 1)
            {
                MultilanguageSentence.LanguageSelector_PEGI().nl();
            }

            conditions.enter_Inspect_AsList(ref _inspectedItems, 4).nl(ref changed);

            "Texts".enter_Inspect(texts, ref _inspectedItems, 1).nl_ifNotEntered(ref changed);

            "Choices".enter_List(ref choices, ref _inspectedChoice, ref _inspectedItems, 2).nl_ifNotEntered(ref changed);

            "Final Results".enter_List(ref finalResults, ref _inspectedResult, ref _inspectedItems, 3, ref changed).SetLastUsedTrigger();

            if (_inspectedItems == -1)
            {
                pegi.FullWindow.DocumentationClickOpen("Results that will be set the moment any choice is picked, before the text that goes after it", "About Final Results");
            }

            pegi.nl_ifNotEntered();

            return(false);
        }