public override void OnEnter() { var menuDialog = MenuDialog.GetMenuDialog(); if (menuDialog != null && targetBlock != null) { menuDialog.ShowTimer(_duration.Value, targetBlock); } Continue(); }
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(); }
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(); }
/// <summary> /// Returns the current menu dialog /// </summary> public virtual MenuDialog GetMenuDialog() { return(MenuDialog.GetMenuDialog()); }
/// <summary> /// Sync the active menu dialog with what Lua things the MenuDialog should be /// </summary> public virtual void SetMenuDialog(MenuDialog menuDialog) { MenuDialog.ActiveMenuDialog = menuDialog; }