src/main.zig:20:29: error: expected type 'bool', found 'i32'
if (raygui.GuiButton(.{ .x = 100, .y = 100, .width = 200, .height = 100 }, "press me!")) {
Zig expects bool type inside an if statement.
It would be great if raygui.GuiButton could return bool type.
Of course checking for 1 == raygui.GuiButton(...) would work, but always adding 1 == would be annoying.
Zig expects bool type inside an if statement.
It would be great if raygui.GuiButton could return bool type.
Of course checking for
1 == raygui.GuiButton(...)would work, but always adding1 ==would be annoying.