Raylib-CSharp-Vinculum
Raylib-CSharp-Vinculum copied to clipboard
RayGUI GuiTextBox override method ref missing
I can't seem to get the override method to work. Every draw cycle it just overwrites the text with what's in the text string:
int RayGui.GuiTextBox(Rectangle bounds, string? text, int textSize, bool editMode)
All other controls where you can actually edit the values by keyboard have a "ref int" parameter such as GuiValueBox and GuiSpinner. Shouldn't the string here also be "ref string text"? It works as expected if I use the pointer version:
int RayGui.GuiTextBox(Rectangle bounds, sbyte* text, int textSize, bool editMode)
Which makes sense because, well, it points to a string in memory. However it is bloody annoying to work with pointers in order to just add a default starting value into the textbox.
Edit: Same problem with the GuiMessageBox.