You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Drag a "load file" block onto the canvas
Drag/copy+paste the path to an asset, like the one in res://addons/block_code/examples/pong_game/assets/wall_hit.ogg
See how wide the block looks!
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
The text was updated successfully, but these errors were encountered:
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
Drag/copy+paste the path to an asset, like the one inres://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
The text was updated successfully, but these errors were encountered: