Open cassidyjames opened 4 months ago
What about not having a load sound block at all? Something like:
ogg
is a sound block, using as name a convertion from the file pathres://addons/block_code/examples/pong_game/assets/wall_hit.ogg
becomes the sound block "Wall Hit".What about not having a load sound block at all? Something like:
- The files in the project are traversed
- Any
ogg
is a sound block, using as name a convertion from the file path- In the current example
res://addons/block_code/examples/pong_game/assets/wall_hit.ogg
becomes the sound block "Wall Hit".
Thats actually a neat Idea Drag and Drop the ogg file in the window converting it to an audio block. So we can still have the load file block but also have a dedicated audio block that searches for all ogg, mp3 etc files independent of there location in the filesystem granted it may be a slow process for larger projects but it could be cached after the first search.
What Happened
I was following along with our own Block Coding pong tutorial on YouTube around 2:54, and noticed that file paths get really unwieldy when shown in blocks. I wonder if we could simplify their presentation a bit here.
For example, maybe we can truncate it to just the filename when normally displayed, and only show the full path as a tooltip/when focusing to edit the path.
How to Reproduce
res://addons/block_code/examples/pong_game/assets/wall_hit.ogg
Block Coding Plugin Version
v0.6.1
Godot Engine Version
v4.2.2.stable.flathub [15073afe3]
Operating System
Fedora Silverblue 40
Logs or command-line output
No response
Anything else?
No response