diff options
Diffstat (limited to 'featureClass')
-rw-r--r-- | featureClass/class.js | 7 | ||||
-rw-r--r-- | featureClass/featureManager.js | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/featureClass/class.js b/featureClass/class.js index 1cfdd8b..11b3492 100644 --- a/featureClass/class.js +++ b/featureClass/class.js @@ -94,6 +94,13 @@ class Feature { return theEvent } + registerActionBar(criteria, func){ + let theEvent = this.FeatureManager.registerActionBar(criteria, func, this) + + this.customEvents[theEvent.id] = theEvent + + return theEvent + } registerStep(isFps, interval, func){ let theEvent = this.FeatureManager.registerStep(isFps, interval, func, this) diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index 99f5483..d323397 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -224,6 +224,15 @@ class FeatureManager { return event } + + registerActionBar(criteria, func, context){ + + let event = this.registerCustom("actionBar", func, context) + + event.trigger.setChatCriteria(criteria) + + return event + } registerCommand(commandName, func, context){ let event = this.registerCustom("command", func, context) |