aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-22 23:57:15 +0800
committerGitHub <noreply@github.com>2022-06-22 23:57:15 +0800
commit73471a72ae85900114cc5f69bf8cdd28e4a53e6a (patch)
tree457fb4cd6d2b0787492810089649c84f8010db9d
parentc184757736e0f293ad70c923f57de368646e721a (diff)
downloadSoopyV2-73471a72ae85900114cc5f69bf8cdd28e4a53e6a.tar.gz
SoopyV2-73471a72ae85900114cc5f69bf8cdd28e4a53e6a.tar.bz2
SoopyV2-73471a72ae85900114cc5f69bf8cdd28e4a53e6a.zip
added register soundplay
as title
-rw-r--r--featureClass/featureManager.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js
index 991f549..41ba671 100644
--- a/featureClass/featureManager.js
+++ b/featureClass/featureManager.js
@@ -382,6 +382,14 @@ class FeatureManager {
return event
}
+ registerSoundPlay(criteria, func, context) {
+ let event = this.registerCustom("soundPlay", func, context)
+
+ event.trigger.setCriteria(criteria)
+
+ return event
+ }
+
registerActionBar(criteria, func, context) {
let event = this.registerCustom("actionBar", func, context)
@@ -624,4 +632,4 @@ if (!global.soopyv2featuremanagerthing) {
global.soopyv2featuremanagerthing = undefined
})
}
-export default global.soopyv2featuremanagerthing \ No newline at end of file
+export default global.soopyv2featuremanagerthing