Adds Textures as Image Icons in ContentBrowserPanel
Adds ImGui.ImageButton instead of ImGui.Button for Texture in SpriteRendererComponent in Properties Panel. To remove texture right-click on Image Button then click Remove Texture
A short description of what this fix is and how it fixed the issue you described.
Additional context
[x] Currently if Texture file was deleted or modified, we won't be able to erase it from std.unordered_map cache. Possible solution is to use filewatcher
[ ] Now for textures that take longer than 0.02 seconds to load completely on directory will result in black thumbnails
Describe the issue (if no issue has been made)
ContentBrowserPanel
for Texture Files, it is represented by Standard File IconSpriteRendererComponent
in Properties Panel, there is onlyTexture
drag/drop button and not an Image Button IconPR impact (Make sure to add closing keywords)
List of related issues/PRs this will solve:
ContentBrowserPanel
Adds
ImGui.ImageButton
instead ofImGui.Button
for Texture inSpriteRendererComponent
in Properties Panel. To remove texture right-click on Image Button then click Remove TextureProposed fix (Make sure you've read on how to contribute to Hazel)
A short description of what this fix is and how it fixed the issue you described.
Additional context
std.unordered_map
cache. Possible solution is to use filewatcher