OK guys I've made a new release with Image and ImageButton widgets support! You just need to pass a LOVE Texture object to it (so an Image or a Canvas):
require "imgui"
local image = love.graphics.newImage("test.png")
function love.update(dt)
imgui.NewFrame()
end
function love.draw()
love.graphics.clear(100, 100, 100, 255)
imgui.Image(image, 400, 225)
imgui.Render()
end
...
So now the bindings are quite complete I think for most usages, the only feature I would like to add is support for custom fonts, but it can definitely wait.
As always I've made pre-built binaries for Windows (32bit) and Linux, and a MacOSX version is still welcome if possible (I should soon get a Mac so it won't be a problem anymore).
AnRu wrote:Hi, i already have troubles with setting dock layout for panels. How to set panel DockStyle or something like this?
Not sure what you're looking for but you can probably control the docks style with the PushStyleColor/PopStyleColor and PushStyleVar/PopStyleVar functions.
AnRu wrote:Hi, i already have troubles with setting dock layout for panels. How to set panel DockStyle or something like this?
Not sure what you're looking for but you can probably control the docks style with the PushStyleColor/PopStyleColor and PushStyleVar/PopStyleVar functions.
I mean dock placement, like Left, Top, RIght and Bottom
AnRu wrote:Hi, i already have troubles with setting dock layout for panels. How to set panel DockStyle or something like this?
Not sure what you're looking for but you can probably control the docks style with the PushStyleColor/PopStyleColor and PushStyleVar/PopStyleVar functions.
I mean dock placement, like Left, Top, RIght and Bottom
Fenrir wrote:
Not sure what you're looking for but you can probably control the docks style with the PushStyleColor/PopStyleColor and PushStyleVar/PopStyleVar functions.
I mean dock placement, like Left, Top, RIght and Bottom
AnRu wrote:
Thank you, I just didn't understand how enums are binded before
that
Yep all enums are binded to their simple name without their type:
ImGuiWindowFlags_NoTitleBar => "NoTitleBar"
ImGuiCol_PlotLines => "PlotLines"
ImGuiDockSlot_Tab => "Tab"
...
AnRu wrote:
Thank you, I just didn't understand how enums are binded before
that
Yep all enums are binded to their simple name without their type:
ImGuiWindowFlags_NoTitleBar => "NoTitleBar"
ImGuiCol_PlotLines => "PlotLines"
ImGuiDockSlot_Tab => "Tab"
...
Apart from that I can't stop anymore doing new debug windows for the game
Hey, can you please make an extra big example love file with most of usable features?
It's very difficult for someone to use as documentation from C++ headers, someone really don't know C++.
And big amount of examples will help to understand exactly Lua syntax for creating GUI