Thanks mate. Prolly gonne use this lib. or atleast test it out first.alberto_lara wrote:You're welcome, and yes, GÖÖi works in LÖVE 0.10.1 and in desktop environments.
Nice work
Thanks mate. Prolly gonne use this lib. or atleast test it out first.alberto_lara wrote:You're welcome, and yes, GÖÖi works in LÖVE 0.10.1 and in desktop environments.
Code: Select all
gooi.alert("The background has changed!")
Code: Select all
gooi.confirm("Change background?", function()
gr.setBackgroundColor(r2(), r2(), r2())
end)
Code: Select all
gooi.newButton({icon = "icon.png"})
Code: Select all
gooi.newButton("button"):setIcon("icon.png")
Code: Select all
btn = gooi.newButton()
btn:setIcon("icon.png")
I'm not sure what you're asking, can you please repeat that?Some stupid question - can i make a button in already created grid always enabled after press? Fount some sort of using (setEnabled()), it works, but works always (i can't press already pressed button:))
Code: Select all
overIt()
Code: Select all
if theRadioBtn:overIt() then
--do stuff
end
Code: Select all
function love.load()
canvas = love.graphics.newCanvas(320, 240)
gooi.setCanvas(canvas)
gooi.newButton("A button")
end
function love.update(dt)
gooi.update(dt)
end
function love.draw()
love.graphics.setCanvas(canvas)
-- Draw you canvas stuff
love.graphics.setCanvas()
-- Draw gooi in the same canvas:
gooi.draw()
end
Code: Select all
function love.mousepressed(x, y, button) gooi.pressed() end
function love.mousereleased(x, y, button) gooi.released() end
Code: Select all
function love.touchpressed(id, x, y) gooi.pressed(id, x, y) end
function love.touchreleased(id, x, y) gooi.released(id, x, y) end
function love.touchmoved(id, x, y) gooi.moved(id, x, y) end
I'm guessing this is a typo? Shouldn't the above be like this or am I misunderstanding something?alberto_lara wrote:Code: Select all
function love.draw() love.graphics.setCanvas(canvas) -- Draw you canvas stuff love.graphics.setCanvas() -- Draw gooi in the same canvas: gooi.draw() end
Code: Select all
function love.draw()
love.graphics.setCanvas(canvas)
-- Draw you canvas stuff
-- Draw gooi in the same canvas:
gooi.draw()
love.graphics.setCanvas()
end
Users browsing this forum: Google [Bot] and 2 guests