RobLoach / raygui-container

Adds state to raygui, allowing for gamepad/keyboard-only support.
zlib License
2 stars 1 forks source link

Load rGuiLayout files #1

Open RobLoach opened 1 year ago

RobLoach commented 1 year ago

.rgl files? https://raylibtech.itch.io/rguilayout

konsumer commented 1 year ago

So, how would this work? Just translate all the text into a series of AddGuiButton/AddCheckBox/etc calls, in the order they appear in the file? Maybe I could do some geometry to get next/previous item, regardless of order in file, too. Is there any docs on .rgl format?

konsumer commented 1 year ago

Looks like you already do "find next/previous" stuff, like here. Perfect! So, I guess all that is needed is turning a .rgl file into a list of elements.

RobLoach commented 1 year ago

I think it would end up looking like...

GuiContainer LoadGuiContainerFromFile();

Unsure how we would grab the different elements tho.