Browse Source

Fixed command names not using attribute value in Add Command

master
chrisgregan 10 years ago
parent
commit
9342751051
  1. 2
      Assets/Fungus/Dialog/Commands/Say.cs
  2. 2
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs
  3. BIN
      Assets/Shuttle/NewDialog.unity

2
Assets/Fungus/Dialog/Commands/Say.cs

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace Fungus.Script
{
[CommandCategory("Dialog")]
[HelpText("Writes a line of story text to the dialog. A condition can be specified for when the story text should be shown.")]
[HelpText("Writes a line of story text to the dialog. A list of options can be specified for the player to choose from. Use a non-zero timeout to give the player a limited time to choose.")]
public class Say : FungusCommand
{
static public DialogController dialogController;

2
Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs

@ -156,7 +156,7 @@ namespace Fungus.Script
{
if (categoryAttr.Category == categoryName)
{
commandNames.Add(type.Name);
commandNames.Add(GetCommandName(type));
commandTypes.Add(type);
}
}

BIN
Assets/Shuttle/NewDialog.unity

Binary file not shown.
Loading…
Cancel
Save