godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.05k stars 21.18k forks source link

Put filename instead of image for script on inspector #7483

Closed eon-s closed 7 years ago

eon-s commented 7 years ago

I don't know how will be with visual script but for GDScript makes no sense to have a miniature of the code when one only need to know the script file name.

Currently, I have to put the cursor over it and wait a bit for the tooltip to be able to read the file name of the script.

So, I would prefer to have the file name (not full path, just the name) instead of that image on script section (for text based scripts, at least).

RayKoopa commented 7 years ago

Since this is marked "discussion": I totally agree. Those zoomed-out textual previews never helped me. At least show the first lines in a readable size if you really wanna go for a thumbnail.

CodeDoes commented 7 years ago

Alternatively. make a procedural image for each script?

Zylann commented 7 years ago

I'm ok for zoomed-out icons in the file explorer because the file name is visible anyways (that's the best you can do IMHO, apart from showing a GD icon) but in the inspector it's especially inconvenient due to the fact we don't see that name.

chanon commented 7 years ago

Yes, I agree that showing the images of the scripts isn't useful. However #7133 needs to be fixed also or it will still require a mouseover for tooltip in most cases to see the filename.

eon-s commented 7 years ago

Implemented on https://github.com/godotengine/godot/pull/8358 and https://github.com/godotengine/godot/pull/8359