slages / love-imgui

imgui module for the LÖVE game engine
MIT License
318 stars 61 forks source link

README examples not working #37

Open Midnoclose opened 5 years ago

Midnoclose commented 5 years ago

Whenever I try to run either of the examples in the README, I get an error similar to this:

Error

main.lua:18: bad argument #1 to 'NewFrame' (string expected, got table)

Traceback

[C]: in function 'NewFrame'
main.lua:18: in function 'update'
[C]: in function 'xpcall'
flamendless commented 5 years ago

Yes, this happens with the 0.9 release version. I am also looking at this issue

Moonstrous commented 5 years ago

Any luck ?

Hperigo commented 4 years ago

Hi, just in case somebody needs help:

I'm on MacOs and using the released bin from github gave me the same error. But building the library worked

nullset2 commented 3 years ago

I am trying to cross-reference patrickriordan's imgui_lua_bindings, which I believe this is based off of, and I'm trying to use the Drawlist from lua to no avail:

    imgui.DrawList_AddLine(
        imgui.DrawList_AddLine(0, 0, 100, 100, 0xFF0000FF, 2));

I'm trying to come up with an example as to how to use the drawlist but nothing has come up. An example in this repo would also be nice.

nexovec commented 2 years ago

Is this a project no longer maintained? I'm getting the same issue.

flamendless commented 2 years ago

Use the mikuauah fork for updated one

https://github.com/MikuAuahDark/love-imgui