using UnityEngine;
namespace Fungus
{
///
/// Presents multiple choice buttons to the players.
///
public interface IMenuDialog
{
///
/// Sets the active state of the Menu Dialog gameobject.
///
void SetActive(bool state);
///
/// Adds the option to the list of displayed options.
/// Will cause the Menu dialog to become visible if it is not already visible.
///
/// true, if the option was added successfully.
/// The option text to display on the button.
/// If false, the option is displayed but is not selectable.
/// Block to execute when the option is selected.
bool AddOption(string text, bool interactable, Block targetBlock);
///
/// Show a timer during which the player can select an option.
///
/// The duration during which the player can select an option.
/// Block to execute if the player does not select an option in time.
void ShowTimer(float duration, Block targetBlock);
///
/// Returns true if the Menu Dialog is currently displayed.
///
bool IsActive();
///
/// Returns the number of currently displayed options.
///
int DisplayedOptionsCount { get; }
}
}