Skip to content
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

Custom Icons #50

Open
bb1950328 opened this issue Jul 29, 2021 · 1 comment
Open

Custom Icons #50

bb1950328 opened this issue Jul 29, 2021 · 1 comment
Labels
💡 new feature A new feature or idea

Comments

@bb1950328
Copy link
Owner

bb1950328 commented Jul 29, 2021

In the future, I want some buttons or other things with custom icons. All icons should be saved in individual files and then baked into one big file using a script. There are two options:

Option 1: A font

When I can create a font with all the icons and then import it into ImGui correctly, This section of the Dear ImGui docs demonstrate the usage of colorful emojis so it should work. I also want to be able to use the icons somewhere else (like in a 2d_overlay) so there must be a possibility to get the texture ID of the ImGui font atlas and the UV coords of a specific glyph.
This is the preferred way.

Option 2: A separate texture

Write a python script to bake all icons into one texture, generate code for their coordinates and use it like this. Only works if there's a possibility to make a ImageButton with text and image.

@bb1950328 bb1950328 mentioned this issue Jul 29, 2021
@bb1950328 bb1950328 added the 💡 new feature A new feature or idea label Jul 29, 2021
@bb1950328
Copy link
Owner Author

bb1950328 commented Aug 27, 2021

Maybe useful for option 1: https://github.com/mnesarco/bawr/blob/main/ImGui.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 new feature A new feature or idea
Projects
None yet
Development

No branches or pull requests

1 participant