Esempio n. 1
0
        public override void OnEnter()
        {
            var menuDialog = MenuDialog.GetMenuDialog();

            if (menuDialog != null &&
                targetBlock != null)
            {
                menuDialog.ShowTimer(_duration.Value, targetBlock);
            }

            Continue();
        }
Esempio n. 2
0
        public override void OnEnter()
        {
            var menuDialog = MenuDialog.GetMenuDialog();

            //if we shuffle every time or we haven't shuffled yet
            if (shuffleMode == Mode.Every || seed == -1)
            {
                seed = Random.Range(0, 1000000);
            }

            if (menuDialog != null)
            {
                menuDialog.Shuffle(new System.Random(seed));
            }

            Continue();
        }
Esempio n. 3
0
        public override void OnEnter()
        {
            if (setMenuDialog != null)
            {
                // Override the active menu dialog
                MenuDialog.ActiveMenuDialog = setMenuDialog;
            }

            bool hideOption = (hideIfVisited && targetBlock != null && targetBlock.GetExecutionCount() > 0) || hideThisOption.Value;

            var menuDialog = MenuDialog.GetMenuDialog();

            if (menuDialog != null)
            {
                menuDialog.SetActive(true);

                var    flowchart   = GetFlowchart();
                string displayText = flowchart.SubstituteVariables(text);

                menuDialog.AddOption(displayText, interactable, hideOption, targetBlock);
            }

            Continue();
        }
Esempio n. 4
0
 /// <summary>
 /// Returns the current menu dialog
 /// </summary>
 public virtual MenuDialog GetMenuDialog()
 {
     return(MenuDialog.GetMenuDialog());
 }
Esempio n. 5
0
 /// <summary>
 /// Sync the active menu dialog with what Lua things the MenuDialog should be
 /// </summary>
 public virtual void SetMenuDialog(MenuDialog menuDialog)
 {
     MenuDialog.ActiveMenuDialog = menuDialog;
 }