ImGui LÖVE module

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ArchAngel075
Party member
Posts: 317
Joined: Mon Jun 24, 2013 5:16 am

Re: ImGui LÖVE module

Post by ArchAngel075 » Fri Mar 31, 2017 2:54 pm

Thanks Fenrir, the canvas works, though still not sure how to get the window created by imgui.Begin() to appear inside the other dock.

User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: ImGui LÖVE module

Post by Fenrir » Fri Mar 31, 2017 2:57 pm

ArchAngel075 wrote:
Fri Mar 31, 2017 2:54 pm
Thanks Fenrir, the canvas works, though still not sure how to get the window created by imgui.Begin() to appear inside the other dock.
Well I'm not sure if it's possible. As I said before, the dock support is not official and far from being as robust and well featured as the other parts of imgui.

User avatar
ArchAngel075
Party member
Posts: 317
Joined: Mon Jun 24, 2013 5:16 am

Re: ImGui LÖVE module

Post by ArchAngel075 » Fri Mar 31, 2017 3:05 pm

Fenrir wrote:
Fri Mar 31, 2017 2:57 pm
ArchAngel075 wrote:
Fri Mar 31, 2017 2:54 pm
Thanks Fenrir, the canvas works, though still not sure how to get the window created by imgui.Begin() to appear inside the other dock.
Well I'm not sure if it's possible. As I said before, the dock support is not official and far from being as robust and well featured as the other parts of imgui.
Guess ill drop docks and instead use a concealable window and render game behind the window.
Thanks.

alloyed
Citizen
Posts: 80
Joined: Thu May 28, 2015 8:45 pm
Contact:

Re: ImGui LÖVE module

Post by alloyed » Tue Apr 11, 2017 6:26 am

Tjakka5 wrote:
Fri Mar 31, 2017 1:02 pm
Hi!

Im trying to build Imgui for Ubuntu 14.04 LTS, but Im having some difficulty.

imgui.png

Any idea on what I'm doing wrong?
because love-imgui is only usable from within the love environment I added that dependency to make sure it didn't accidentally leak into your system's lua.
you can install it with loverocks instead, which will keep it self-contained to your game project:

Code: Select all

$ sudo luarocks install loverocks
$ cd my-game
$ loverocks install love-imgui
$ echo "\nif love.filesystem then require 'rocks'() end" >> conf.lua

User avatar
jack0088
Prole
Posts: 33
Joined: Fri Mar 22, 2013 4:59 am

Re: ImGui LÖVE module

Post by jack0088 » Fri Jun 09, 2017 4:30 pm

hey, sorry for reviving an old thread but I wanted to try this library and having issues with loading the compiled module.

I took the *.so file from your repo and dropped it straight into my project folder.
I then edited the package.cpath to conform.
Finally I required the module and got an error: dlsym(0x7fd11ae13e10, luaopen_libs_imgui): symbol not found

What could that be?
Bildschirmfoto 2017-06-09 um 18.26.08.png
Bildschirmfoto 2017-06-09 um 18.26.08.png (205.73 KiB) Viewed 4238 times

User avatar
bartbes
Sex machine
Posts: 4943
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: ImGui LÖVE module

Post by bartbes » Fri Jun 09, 2017 5:27 pm

jack0088 wrote:
Fri Jun 09, 2017 4:30 pm
I took the *.so file from your repo and dropped it straight into my project folder.
I then edited the package.cpath to conform.
Finally I required the module and got an error: dlsym(0x7fd11ae13e10, luaopen_libs_imgui): symbol not found
As you can see, the full module name ("libs.imgui") ends up being used, hence why it's looking for "luaopen_libs_imgui". If you change the cpath to include the libs dir and require "imgui" instead, it should look for "luaopen_imgui", which does (hopefully) exist.

User avatar
jack0088
Prole
Posts: 33
Joined: Fri Mar 22, 2013 4:59 am

Re: ImGui LÖVE module

Post by jack0088 » Fri Jun 09, 2017 9:38 pm

o___O it did work... sorry I did not see that the namespace was already used - thank you very much!

User avatar
nkorth
Prole
Posts: 15
Joined: Sun Sep 18, 2011 8:54 pm
Contact:

Re: ImGui LÖVE module

Post by nkorth » Sun Jun 18, 2017 9:02 pm

Fenrir wrote:
Thu Mar 02, 2017 12:43 pm
fxva wrote:
Wed Mar 01, 2017 3:10 pm
Hello guys.
I will speak from my heart with google translate(c)

How to change the default font?

here's what I found:

Code: Select all

Load .TTF file with:

ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels);
But it does not help me. :emo:
It's still not possible for now, it's part of what I need to include but I have no time for it currently... :/
I also wanted to change the font, so I made this patch: https://github.com/slages/love-imgui/pull/10

Great project btw! It's helped me a lot already.

User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: ImGui LÖVE module

Post by Fenrir » Mon Jun 19, 2017 8:05 am

I have a few pull requests pending, I'll try to have a look at it this week! I also want to update the imgui version as the 1.50 is now officially released, just need to find a bit of time for it! Anyway thanks a lot for helping me to improve this lib! :)

User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: ImGui LÖVE module

Post by Fenrir » Fri Jun 30, 2017 9:21 am

I merged all pending requests:

- You can specify a custom font with SetGlobalFontFromFileTTF(path, size_pixels, spacing_x, spacing_y, oversample_x, oversample_y)
- You can control dock initial ratio and floating size

And I updated it to the final version of imgui 1.50. I'll try to prepare releases as soon as I can!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests