From 93427510510362579955dc1bb96ea0fa5c806f42 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 26 Aug 2014 17:34:42 +0100 Subject: [PATCH] Fixed command names not using attribute value in Add Command --- Assets/Fungus/Dialog/Commands/Say.cs | 2 +- .../FungusScript/Editor/FungusScriptEditor.cs | 2 +- Assets/Shuttle/NewDialog.unity | Bin 58844 -> 58844 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Dialog/Commands/Say.cs b/Assets/Fungus/Dialog/Commands/Say.cs index 50f939d1..dd8743ee 100644 --- a/Assets/Fungus/Dialog/Commands/Say.cs +++ b/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; diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs index e4b1be1d..3e00bea6 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs +++ b/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); } } diff --git a/Assets/Shuttle/NewDialog.unity b/Assets/Shuttle/NewDialog.unity index 3eb876d0ce69709a0a1a2c31b8e932b287255b93..f024d0efd266c7c8611c43aa64997a7a5387be09 100644 GIT binary patch delta 27 lcmV+$0ObGN%LClY1F#6ilW@}nvkb-k2LsYqLbD9b&=|pG4Hf_Z delta 27 jcmca}n)%LY<_#Q2Cx2*Q+01kFFFP{>1H)#Xvlk=)x;P8i