Chris Gregan
9 years ago
3 changed files with 51 additions and 1 deletions
@ -0,0 +1,38 @@
|
||||
using UnityEngine; |
||||
using System.Collections; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
|
||||
[CommandInfo("Narrative", |
||||
"Clear Menu", |
||||
"Clears the options from a menu dialogue")] |
||||
public class ClearMenu : Command |
||||
{ |
||||
[Tooltip("Menu Dialog to clear the options on")] |
||||
public MenuDialog menuDialog; |
||||
|
||||
public override void OnEnter() |
||||
{ |
||||
menuDialog.Clear(); |
||||
|
||||
Continue(); |
||||
} |
||||
|
||||
public override string GetSummary() |
||||
{ |
||||
if (menuDialog == null) |
||||
{ |
||||
return "Error: No menu dialog object selected"; |
||||
} |
||||
|
||||
return menuDialog.name; |
||||
} |
||||
|
||||
public override Color GetButtonColor() |
||||
{ |
||||
return new Color32(184, 210, 235, 255); |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 430ab3c61eef444b2aec02aee7f809bf |
||||
timeCreated: 1445258294 |
||||
licenseType: Free |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
Loading…
Reference in new issue