Page 8 of 14
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Mon Jan 30, 2017 6:21 pm
by alberto_lara
Hi, just to let you know version 0.0.2 of GÖÖi has been released:
https://github.com/tavuntu/gooi/wiki/Change-Log
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Mon Jan 30, 2017 11:41 pm
by trelemar
Nice! It'll take awhile to update all my code to accommodate the new API but it'll keep me busy :p.
After playing around a bit I can't seem to figure out why glass mode is on for one of my styles. I know it defaults to false, and even if I explicitly state
it still uses glass mode. I'll post again if I figure it out, but it just doesn't seem right.
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Tue Jan 31, 2017 1:05 am
by alberto_lara
I'll check that out, thanks!
EDIT: Could you please provide a .love file reproducing the issue?
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Tue Jan 31, 2017 2:19 pm
by trelemar
Maybe something went wrong when I overrided my old gooi files. I'll try again when I get home. Should have spent more time messing with it
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Wed Feb 01, 2017 12:53 am
by ExtraTerrestrial
Would a four way directional pad like the plus directional pads on old NES be possible or maybe a setup in game layout where four buttons are arranged like that. Love it by the way thanks!
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Wed Feb 01, 2017 1:52 am
by trelemar
ExtraTerrestrial wrote:Would a four way directional pad like the plus directional pads on old NES be possible or maybe a setup in game layout where four buttons are arranged like that. Love it by the way thanks!
I've also thought about this. It'd be nice. Although you could just make a 3x3 panel with buttons organizes like
so:
Or if you wanted an 8 way dpad:
Code: Select all
2, 1, 2
1, 0, 1
2, 1, 2
-- 2s are invisible buttons.
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Wed Feb 01, 2017 3:38 pm
by alberto_lara
ExtraTerrestrial wrote:Would a four way directional pad like the plus directional pads on old NES be possible or maybe a setup in game layout where four buttons are arranged like that. Love it by the way thanks!
That pad would be possible, indeed with a 3x3 grid layout with 8 buttons, something like this:
Code: Select all
panel = gooi.newPanel(100, 100, 100, 100, "grid 3x3")
panel:add(gooi.newButton(""), "1,1")
panel:add(gooi.newButton(""), "1,2")
panel:add(gooi.newButton(""), "1,3")
panel:add(gooi.newButton(""), "2,1")
panel:add(gooi.newButton(""), "2,3")
panel:add(gooi.newButton(""), "3,1")
panel:add(gooi.newButton(""), "3,2")
panel:add(gooi.newButton(""), "3,3")
It would be somehow uncomfortable to use that though, because in a NES you only kinda move your wrist, always touching the pad (similar to a joystick) but in that panel you'd need to release the click/touch and press another button to change the direction.
I could add a function to joysticks to force them in 4 or 8 directions like the one
these guys used. It would return strings like "l", "r", "u", "d", "ur" and so on. How about that? Feel free to add a request issue in the repo.
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Fri Feb 10, 2017 6:11 pm
by ExtraTerrestrial
I'm having a problem getting the joystick to work
Code: Select all
. joyPlane=gooi.newJoy(700,350,100)
trigger=gooi.newButton("shoot",700,20)
end
function love.update(dt)
gooi.update
player.x=(player.x+joyPlane:xValue()*player.speed)
player.y=(player.y+joyPlane:yValue()*player.speed)
The joystick won't move or the plane
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Mon Feb 13, 2017 5:15 pm
by trelemar
ExtraTerrestrial wrote: ↑Fri Feb 10, 2017 6:11 pm
I'm having a problem getting the joystick to work
Code: Select all
. joyPlane=gooi.newJoy(700,350,100)
trigger=gooi.newButton("shoot",700,20)
end
function love.update(dt)
--you need to call gooi.update()
gooi.update
player.x=(player.x+joyPlane:xValue()*player.speed)
player.y=(player.y+joyPlane:yValue()*player.speed)
The joystick won't move or the plane
You need parentheses after a function for it to be called.
gooi.update(dt)
Re: GÖÖi, an Android-Oriented GUI Library
Posted: Wed Feb 22, 2017 4:11 am
by ExtraTerrestrial
Still won't work