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

GUI Text disappears when using a .rgs style file. #148

Open
an-Iceberg opened this issue Jan 25, 2023 · 4 comments
Open

GUI Text disappears when using a .rgs style file. #148

an-Iceberg opened this issue Jan 25, 2023 · 4 comments

Comments

@an-Iceberg
Copy link

an-Iceberg commented Jan 25, 2023

I have a small sample project that works normally as expected but when i use a .rgs style file using raylib.gui_load_style() all the text from all GUI elements disappear. The GUI elements themselves keep working fine and are rendered correctly (colors and everything). I have used the .rgs files from the official raygui repo. I don't know why this happens or what i am doing wrong. I am using MINGW64 as my GCC toolchain, other than that i have installed everything the recommended way (Rust and raylib and whatnot) and am working on Windows.

It's especially puzzling, considering that the fonts are supposed to be baked into the .rgs files.

default style
lavander (custom style)

@Leandro-C-Reis
Copy link

I had same problem, but in linux

@raysan5
Copy link

raysan5 commented Apr 29, 2023

raygui has changed a lot in the last years, afaik, .rgs styles on raygui repo are aligned with latest raygui and rGuiStyler, maybe the bindings are not up to date?

@Leandro-C-Reis
Copy link

I managed to use a more updated version with the fork in: https://github.com/litten2up/raylib-rs

@an-Iceberg
Copy link
Author

For anyone who wants a working alternative, try out egui-macroquad. It uses egui as the GUI and macroquad as the canvas of pixels you can manipulate. Compiles for both desktop and the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants