ImGui LÖVE module
- ArchAngel075
- Party member
- Posts: 319
- Joined: Mon Jun 24, 2013 5:16 am
Re: ImGui LÖVE module
Thanks Fenrir, the canvas works, though still not sure how to get the window created by imgui.Begin() to appear inside the other dock.
Re: ImGui LÖVE module
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.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.
- ArchAngel075
- Party member
- Posts: 319
- Joined: Mon Jun 24, 2013 5:16 am
Re: ImGui LÖVE module
Guess ill drop docks and instead use a concealable window and render game behind the window.Fenrir wrote: ↑Fri Mar 31, 2017 2:57 pmWell 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.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.
Thanks.
Re: ImGui LÖVE module
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
Re: ImGui LÖVE module
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?
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?
Blog herrsch.de
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: ImGui LÖVE module
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.
Re: ImGui LÖVE module
o___O it did work... sorry I did not see that the namespace was already used - thank you very much!
Blog herrsch.de
Re: ImGui LÖVE module
I also wanted to change the font, so I made this patch: https://github.com/slages/love-imgui/pull/10Fenrir wrote: ↑Thu Mar 02, 2017 12:43 pmIt's still not possible for now, it's part of what I need to include but I have no time for it currently... :/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:But it does not help me.Code: Select all
Load .TTF file with: ImGuiIO& io = ImGui::GetIO(); io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels);
Great project btw! It's helped me a lot already.
Re: ImGui LÖVE module
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!
Re: ImGui LÖVE module
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!
- 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!
Who is online
Users browsing this forum: Google [Bot] and 9 guests