Closed BinarySpike closed 2 years ago
This is expected, the call to imgui.love.RenderDrawLists()
works like any other LÖVE draw call and is affected by the current colour. Some people may want to be able to affect the colour (for example to dim everything, UI included) so I'm not planning on changing that.
If you want to avoid tinting the UI you can do something like this:
local oldcolor = {love.graphics.getColor()}
love.graphics.setColor(1,0,0)
imgui.love.RenderDrawLists()
love.graphics.setColor(oldcolor)
If you call love.graphics.setColor it will affect the color that cimgui-love renders on the next frame.
See line 13 of the below code: