category_factory: Add pause, stop and continue audio feature#161
Conversation
| b.statement = ( | ||
| """ | ||
| var __sound_node = get_node({name}) | ||
| __sound_node.stream_paused = true |
There was a problem hiding this comment.
I wonder if we can follow the property setter/getter as returned by the static func property_to_blocklist() here, something like:
- Set sound Stream Paused to [True/False] (statement block)
- sound Stream Paused (parameter block)
This is to be closer to what GDScript does. See how Node "visible" property is handled, it is under "Graphics | Visibility" category.
In the future we should decide if we want to move the audio blocks to belong only to AudioStreamPlayer2D nodes only. Like the AnimationPlayer blocks.
There was a problem hiding this comment.
Good think! However, it needs to move all #region Sounds into get_built_in_blocks() which breaks the ABI. Because, it needs an AudioStreamPlayer node first. If we want to break the ABI in this release, I can do it.
Another easy way, like "animationplayer_play" block, have a parameter for selecting "Pause"/"Continue". I can modify the commit in this way first.
There was a problem hiding this comment.
Good think! However, it needs to move all
#region Soundsintoget_built_in_blocks()which breaks the ABI. Because, it needs an AudioStreamPlayer node first. If we want to break the ABI in this release, I can do it.
Yes, I don't see why not, we are constantly breaking the format as this is still in early stage.
Another easy way, like "animationplayer_play" block, have a parameter for selecting "Pause"/"Continue". I can modify the commit in this way first.
OK!
0183ef9 to
fc8f192
Compare
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], move the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks in GDScripts flavor, including setting the property's value. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have audio blocks in both types of general script and GDScript flavor. [1]: #161 (comment)
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment)
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have audio blocks in both types of general script and GDScript flavor. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have sound blocks in both types of general script and GDScript flavor. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have sound blocks in both types of general script and GDScript flavor. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], stream_paused is AudioStreamPlayer's a property. Use it as property flavor to generate blocks automatically. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have sound blocks in both types of general script and GDScript flavor. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have sound blocks in both types of general script and GDScript flavor. [1]: endlessm#161 (comment) https://phabricator.endlessm.com/T35609
https://phabricator.endlessm.com/T35582