forked from snozbot/fungus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added requested feature: Narrative Log not registering empty Say dial…
…og entries
- Loading branch information
Showing
8 changed files
with
469 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace Fungus | ||
{ | ||
[CommandInfo("Narrative", | ||
"Clear Narrative Log", | ||
"Clear the Narrative Log, erasing all entries")] | ||
public class ClearNarrativeLog : Command | ||
{ | ||
public override void OnEnter() | ||
{ | ||
// This should lead to the UI clearing all the entries; it should do so as a response | ||
// to the Narrative Log clearing its own history | ||
base.OnEnter(); | ||
var manager = FungusManager.Instance; | ||
var narrLog = manager.NarrativeLog; | ||
|
||
narrLog.Clear(); | ||
|
||
Continue(); | ||
} | ||
|
||
public override Color GetButtonColor() | ||
{ | ||
return new Color32(184, 210, 235, 255); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.