-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented Texture Icons/Thumbnails #595
Open
PrakarshPanwar
wants to merge
9
commits into
TheCherno:master
Choose a base branch
from
PrakarshPanwar:thumbnails
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Earlier textures were represented by Standard File Icon - Now only .png will be presented as texture in Content Browser Panel
…operties panel - Now on clicking on Entity will show texture in a button
- Also removed some previous methods and made default texture in SceneHierarchyPanel const - Editor crashes when adding new textures in asset directory
- This will help in distinguish Scene names
- This issue is still open to some extent - This can happen due to OpenGL unable to load multiple textures at once - This issue will gone after switching to Vulkan
- Reason for this issue was that the texture didn't load fully on the directory which resulted in black textures - Adding `std.this_thread.sleep_for` gave time for directory to load textures properly - However for large assets that can take longer than 0.02s to load on directory this method will not work
# Conflicts: # Hazelnut/src/Panels/ContentBrowserPanel.cpp
- To do this right-click on Image Button in SpriteRendererComponent then click Remove Texture
PrakarshPanwar
force-pushed
the
thumbnails
branch
from
March 19, 2023 09:13
b9da860
to
d6b6f06
Compare
- Now instead of taking `this` it only takes default texture
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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