-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add media custom option #4218
add media custom option #4218
Conversation
suggested changes work only in Author Mode |
took the liberty of having the selected sound play once (on both author mode when choosing default, and in user mode) |
Fixes WeakAuras#1102 Signed-off-by: Allen Faure <[email protected]>
Fixes WeakAuras#2598 Signed-off-by: Allen Faure <[email protected]>
I pushed two things to this branch now: a) PlaySound playing on the master channel, because that works even if the sound is muted and is something we do for Actions/Conditions b) A bigger rework of how FramTick/TimerTick work. |
--- @field Notify fun(self: SubscribableObject, event: type, ...: any) | ||
--- @field HasSubscribers fun(self: SubscribableObject, event: string): boolean | ||
--- @type SubscribableObject | ||
local SubscribableObject = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless im mistaken, this feels like it's also some groundwork for #3875?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, I'm not actually sure if it will be. It does tick some boxes, but also quite a few things are different from what they would need to be.
For TimerTick sub elements and the region itself now subscribe to the TimerTick event. The first to subscribe/last to unsubscribe causes the region to install/remove an OnUpdate handler. The high priority flag gurantees that the region gets the TimerTick first, even though I'm unsure whether that's actually required, but it keeps the same behaviour. A better system for ordering subscribers will be needed at some point. For FrameTicks the system has now two layers. The base is Private.FrameTick, which if there are any subscribers installs an OnUpdate handler. Each region subscribes to Private.FrameTick if there are subscribers to their FrameTick. Also factor out the code into a separate file.
@emptyrivers any last words? |
Fixes #1102