Well I tried playing around with Quickie. And man, I had to say, you did a pretty impressive work on this.
I had some problems at first to get how the concept of IMGUIs. Didn't know about that. But reading at the code, and taking a look at the demo provided was actually very useful.
But I ran into a weird issue with the latest version of Quickie, (this commit).
For instance, let's create and draw some buttons.
Code: Select all
function love.load()
Ui = require 'Quickie'
end
function love.update(dt)
if Ui.Button ({text = "Button 1", pos = {150, 440}, size = {200, 50}}) then end
if Ui.Button ({text = "Button 2", pos = {150, 500}, size ={200, 50}}) then end
if Ui.Button ({text = "Button 3", pos = {450, 440}, size = {200, 50}}) then end
if Ui.Button ({text = "Button 4", pos = {450,500}, size = {200,50}}) then end
end
function love.draw()
Ui.core.draw()
end
Here it is. I'm hovering at the fourth button, and the first one remains highlited, no matter what.
In other words, anytime I attempt to add some buttons, the first one keep staying in 'hot' mode, like if the mouse was permanently hovering it...
I did tried the same snippet with a previous version (let's say, this commit). I had to tweak a little the code to match with the API's demands.
From what I could see, the difference between this commit and the latest one (above) is the changes you brought to the API.
Some methods where deleted, among them gui.core.disableKeyFocus(). Fact is, with the previous version, the issue I mentionned above could be easily fixed, using gui.core.disableKeyFocus().
So what are the odds ?
I opened an issue on Github, by the way.
And once again, that's a brilliant piece of work.
No I'll probably go get some sleep.