Browse Source

Added some missing command tooltips

master
chrisgregan 10 years ago
parent
commit
4cc04e5546
  1. 2
      Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs
  2. 2
      Assets/Fungus/Flowchart/Scripts/Block.cs
  3. 1
      Assets/Fungus/Flowchart/Scripts/Commands/If.cs
  4. 6
      Assets/Fungus/Narrative/Scripts/Commands/Menu.cs
  5. 1
      Assets/Fungus/Narrative/Scripts/Commands/Say.cs
  6. 2
      Assets/Fungus/Sprite/Scripts/Draggable2D.cs

2
Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs

@ -16,6 +16,7 @@ namespace Fungus
StopLoop, StopLoop,
ChangeVolume ChangeVolume
} }
[Tooltip("What to do to audio")] [Tooltip("What to do to audio")]
public controlType control; public controlType control;
@ -33,6 +34,7 @@ namespace Fungus
[Tooltip("Time to fade between current volume level and target volume level.")] [Tooltip("Time to fade between current volume level and target volume level.")]
public float fadeDuration; public float fadeDuration;
[Tooltip("Wait until this command has finished before executing the next command.")]
public bool waitUntilFinished = false; public bool waitUntilFinished = false;
public override void OnEnter() public override void OnEnter()

2
Assets/Fungus/Flowchart/Scripts/Block.cs

@ -34,12 +34,14 @@ namespace Fungus
public int itemId = -1; // Invalid flowchart item id public int itemId = -1; // Invalid flowchart item id
[FormerlySerializedAs("sequenceName")] [FormerlySerializedAs("sequenceName")]
[Tooltip("The name of the block node as displayed in the Flowchart window")]
public string blockName = "New Block"; public string blockName = "New Block";
[TextArea(2, 5)] [TextArea(2, 5)]
[Tooltip("Description text to display under the block node")] [Tooltip("Description text to display under the block node")]
public string description = ""; public string description = "";
[Tooltip("An optional Event Handler which can execute the block when an event occurs")]
public EventHandler eventHandler; public EventHandler eventHandler;
[HideInInspector] [HideInInspector]

1
Assets/Fungus/Flowchart/Scripts/Commands/If.cs

@ -11,7 +11,6 @@ namespace Fungus
[AddComponentMenu("")] [AddComponentMenu("")]
public class If : Condition public class If : Condition
{ {
[Tooltip("Variable to use in expression")] [Tooltip("Variable to use in expression")]
[VariableProperty(typeof(BooleanVariable), [VariableProperty(typeof(BooleanVariable),
typeof(IntegerVariable), typeof(IntegerVariable),

6
Assets/Fungus/Narrative/Scripts/Commands/Menu.cs

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

1
Assets/Fungus/Narrative/Scripts/Commands/Say.cs

@ -11,6 +11,7 @@ namespace Fungus
[AddComponentMenu("")] [AddComponentMenu("")]
public class Say : Command public class Say : Command
{ {
// Removed this tooltip as users's reported it obscures the text box
[TextArea(5,10)] [TextArea(5,10)]
public string storyText = ""; public string storyText = "";

2
Assets/Fungus/Sprite/Scripts/Draggable2D.cs

@ -22,7 +22,7 @@ namespace Fungus
[Tooltip("Time object takes to return to its starting position")] [Tooltip("Time object takes to return to its starting position")]
public float returnDuration = 1f; public float returnDuration = 1f;
Vector3 startingPosition; protected Vector3 startingPosition;
protected virtual void OnMouseDown() protected virtual void OnMouseDown()
{ {

Loading…
Cancel
Save