-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In the C version of raygui, some functions like GuiPanel and GuiScrollPanel allow passing NULL for the text parameter, in which case it won't draw the title bar of the panel.
I'd like to use gui_scroll_panel in the V version without a title bar but the text parameter is a string so it doesn't seem possible. Passing an empty string draws an empty title bar instead of not drawing it at all.
My current workaround is to create a new function:
fn gui_scroll_panel_no_title(bounds raylib.Rectangle, content raylib.Rectangle, scroll &raylib.Vector2, view &raylib.Rectangle) int {
return C.GuiScrollPanel(bounds, &char(0), content, scroll, view)
}
Is there a better way to do it?
Metadata
Metadata
Assignees
Labels
No labels