|
|
|
@ -9,20 +9,24 @@ namespace Fungus
|
|
|
|
|
{ |
|
|
|
|
[CommandInfo("Narrative", |
|
|
|
|
"Menu", |
|
|
|
|
"Displays a multiple choice menu")] |
|
|
|
|
"Displays a button in a multiple choice menu")] |
|
|
|
|
[AddComponentMenu("")] |
|
|
|
|
public class Menu : Command |
|
|
|
|
{ |
|
|
|
|
[Tooltip("Text to display on the menu button")] |
|
|
|
|
public string text = "Option Text"; |
|
|
|
|
|
|
|
|
|
[Tooltip("Notes about the option text for other authors, localization, etc.")] |
|
|
|
|
public string description = ""; |
|
|
|
|
|
|
|
|
|
[FormerlySerializedAs("targetSequence")] |
|
|
|
|
[Tooltip("Block to execute when this option is selected")] |
|
|
|
|
public Block targetBlock; |
|
|
|
|
|
|
|
|
|
[Tooltip("Hide this option if the target block has been executed previously")] |
|
|
|
|
public bool hideIfVisited; |
|
|
|
|
|
|
|
|
|
[Tooltip("A custom Menu Dialog to use to display this menu. All subsequent Menu commands will use this dialog.")] |
|
|
|
|
public MenuDialog setMenuDialog; |
|
|
|
|
|
|
|
|
|
protected static bool eventSystemPresent; |
|
|
|
|