FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.49k stars 339 forks source link

Add icons for widgets in World Viewer #585

Open mrDIMAS opened 5 months ago

mrDIMAS commented 5 months ago

UI editor does not have icons for widgets and it is hard to quickly understand to which widget you're looking at. It would be nice to have icons for widgets in here.

Icons

To do that, go to editor/src/ui_scene/utils.rs, find fn icon_of(..) { .. } method and add icons there like it is done in editor/src/world/graph/mod.rs icon_of method. All you need to do is to check the actual type of widget and return a respective icon image. This task also involves some searching for icons, you can use any icon with permissive license (CC0, CC BY-SA, etc).