GOOi, an Android-Oriented GUI Library
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
Re: GÖÖi, an Android-Oriented GUI Library
Hi, just to let you know version 0.0.2 of GÖÖi has been released:
https://github.com/tavuntu/gooi/wiki/Change-Log
https://github.com/tavuntu/gooi/wiki/Change-Log
Re: GÖÖi, an Android-Oriented GUI Library
Nice! It'll take awhile to update all my code to accommodate the new API but it'll keep me busy :p.alberto_lara wrote:Hi, just to let you know version 0.0.2 of GÖÖi has been released:
https://github.com/tavuntu/gooi/wiki/Change-Log
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
Code: Select all
Raisedbutton = {
glass = false
}
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
Re: GÖÖi, an Android-Oriented GUI Library
I'll check that out, thanks!
EDIT: Could you please provide a .love file reproducing the issue?
EDIT: Could you please provide a .love file reproducing the issue?
Re: GÖÖi, an Android-Oriented GUI Library
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
-
- Prole
- Posts: 10
- Joined: Wed Jan 25, 2017 5:31 am
Re: GÖÖi, an Android-Oriented GUI Library
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
I've also thought about this. It'd be nice. Although you could just make a 3x3 panel with buttons organizes likeExtraTerrestrial 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!
so:
Code: Select all
0, 1, 0
1, 0, 1
0, 1, 0
Code: Select all
2, 1, 2
1, 0, 1
2, 1, 2
-- 2s are invisible buttons.
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
Re: GÖÖi, an Android-Oriented GUI Library
That pad would be possible, indeed with a 3x3 grid layout with 8 buttons, something like this: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!
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.
-
- Prole
- Posts: 10
- Joined: Wed Jan 25, 2017 5:31 am
Re: GÖÖi, an Android-Oriented GUI Library
I'm having a problem getting the joystick to work
The joystick won't move or the plane
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)
Re: GÖÖi, an Android-Oriented GUI Library
You need parentheses after a function for it to be called. gooi.update(dt)ExtraTerrestrial wrote: ↑Fri Feb 10, 2017 6:11 pm I'm having a problem getting the joystick to workThe joystick won't move or the planeCode: 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)
-
- Prole
- Posts: 10
- Joined: Wed Jan 25, 2017 5:31 am
Re: GÖÖi, an Android-Oriented GUI Library
Still won't work
Who is online
Users browsing this forum: No registered users and 1 guest