first commit

This commit is contained in:
Chris
2025-03-12 14:22:16 -04:00
commit 0ad0c01249
1999 changed files with 189708 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using ParadoxNotion.Design;
using NodeCanvas.Framework;
using NodeCanvas.DialogueTrees;
using ParadoxNotion;
namespace NodeCanvas.Tasks.Actions
{
[Category("Dialogue")]
[Description("You can use a variable inline with the text by using brackets likeso: [myVarName] or [Global/myVarName].\nThe bracket will be replaced with the variable value ToString")]
[ParadoxNotion.Design.Icon("Dialogue")]
public class Say : ActionTask<IDialogueActor>
{
public Statement statement = new Statement("This is a dialogue text...");
protected override string info {
get { return string.Format("<i>' {0} '</i>", ( statement.text.CapLength(30) )); }
}
protected override void OnExecute() {
var tempStatement = statement.BlackboardReplace(blackboard);
DialogueTree.RequestSubtitles(new SubtitlesRequestInfo(agent, tempStatement, EndAction));
}
}
}