raylib-rs icon indicating copy to clipboard operation
raylib-rs copied to clipboard

GUI Text disappears when using a .rgs style file.

Open an-Iceberg opened this issue 2 years ago • 4 comments

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)

an-Iceberg avatar Jan 25 '23 16:01 an-Iceberg

I had same problem, but in linux

Leandro-C-Reis avatar Apr 29 '23 17:04 Leandro-C-Reis

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?

raysan5 avatar Apr 29 '23 18:04 raysan5

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

Leandro-C-Reis avatar May 01 '23 23:05 Leandro-C-Reis

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.

an-Iceberg avatar May 07 '23 10:05 an-Iceberg