Skip to content

RayGui Example don't work #3

@jptrzy

Description

@jptrzy
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions