slages / love-imgui

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

I can't change the colors of the themes after the new update. #26

Closed Multifruta closed 6 years ago

Multifruta commented 6 years ago

So, the title says everything. After the last update, i'm not able to change the colors using the function imgui.PushStyleColor("ButtonHovered", 0.20, 0.38, 0.04, 1.00) anymore

I tried changing the string that defines the object that i'm modifing ("ButtonHovered" >"ImGuiCol_ButtonHovered") but nothing happens.

What i "discovered" is that now the parametters for that function only reads the first value ingresed From this: imgui.PushStyleColor("ChildWindowBg", 0.13, 0.13, 0.13, 1.00)

Only returns this: imgui.PushStyleColor("ChildWindowBg", 0.13)

And even if i try to modify all the colors from the theme, the program simply does not respond. Leaving me with some sort of black and unresponsive menu.

Is this some kind of bug? Or there is a new way to apply colors to the theme and this way is deprecated?

slages commented 6 years ago

I corrected it on the repo, I'll soon make a release and the pre-buil binaries with it.