diff --git a/lib/generate_functions.py b/lib/generate_functions.py index 0cee1c1..4e38f16 100755 --- a/lib/generate_functions.py +++ b/lib/generate_functions.py @@ -300,6 +300,7 @@ def parse_header(header_name: str, output_file: str, ext_file: str, prefix: str, ("rlLoadShaderBuffer", "data"), ("rlLoadShaderCode", "vsCode"), ("rlLoadShaderCode", "fsCode"), + ("GuiTextInputBox", "secretViewActive") ] zig_type = ziggify_type(arg_name, arg_type, func_name) diff --git a/lib/raygui.zig b/lib/raygui.zig index e5590a3..c80ff97 100644 --- a/lib/raygui.zig +++ b/lib/raygui.zig @@ -710,7 +710,7 @@ pub fn guiMessageBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const } /// Text Input Box control, ask for text, supports secret -pub fn guiTextInputBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const u8, buttons: [:0]const u8, text: [:0]u8, textMaxSize: i32, secretViewActive: *bool) i32 { +pub fn guiTextInputBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const u8, buttons: [:0]const u8, text: [:0]u8, textMaxSize: i32, secretViewActive: ?*bool) i32 { return @as(i32, cdef.GuiTextInputBox(bounds, @as([*c]const u8, @ptrCast(title)), @as([*c]const u8, @ptrCast(message)), @as([*c]const u8, @ptrCast(buttons)), @as([*c]u8, @ptrCast(text)), @as(c_int, textMaxSize), @as([*c]bool, @ptrCast(secretViewActive)))); }