GOOi, an Android-Oriented GUI Library

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
alberto_lara
Party member
Posts: 327
Joined: Wed Oct 30, 2013 8:59 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by alberto_lara » Mon Jan 30, 2017 6:21 pm

Hi, just to let you know version 0.0.2 of GÖÖi has been released:
https://github.com/tavuntu/gooi/wiki/Change-Log
LÖVE Projects: GOOi, Süsse, Dyzön and Katsudö
Thanks for taking the time and read this

trelemar
Prole
Posts: 22
Joined: Fri Dec 16, 2016 12:21 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by trelemar » Mon Jan 30, 2017 11:41 pm

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
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

Code: Select all

Raisedbutton = {
  glass = false
}
it still uses glass mode. I'll post again if I figure it out, but it just doesn't seem right.

User avatar
alberto_lara
Party member
Posts: 327
Joined: Wed Oct 30, 2013 8:59 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by alberto_lara » Tue Jan 31, 2017 1:05 am

I'll check that out, thanks!

EDIT: Could you please provide a .love file reproducing the issue?
LÖVE Projects: GOOi, Süsse, Dyzön and Katsudö
Thanks for taking the time and read this

trelemar
Prole
Posts: 22
Joined: Fri Dec 16, 2016 12:21 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by trelemar » Tue Jan 31, 2017 2:19 pm

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

ExtraTerrestrial
Prole
Posts: 10
Joined: Wed Jan 25, 2017 5:31 am

Re: GÖÖi, an Android-Oriented GUI Library

Post by ExtraTerrestrial » Wed Feb 01, 2017 12:53 am

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!

trelemar
Prole
Posts: 22
Joined: Fri Dec 16, 2016 12:21 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by trelemar » Wed Feb 01, 2017 1:52 am

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:

Code: Select all

0, 1, 0
1, 0, 1
0, 1, 0
Or if you wanted an 8 way dpad:

Code: Select all

2, 1, 2
1, 0, 1
2, 1, 2
-- 2s are invisible buttons.

User avatar
alberto_lara
Party member
Posts: 327
Joined: Wed Oct 30, 2013 8:59 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by alberto_lara » Wed Feb 01, 2017 3:38 pm

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")
Image

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.
LÖVE Projects: GOOi, Süsse, Dyzön and Katsudö
Thanks for taking the time and read this

ExtraTerrestrial
Prole
Posts: 10
Joined: Wed Jan 25, 2017 5:31 am

Re: GÖÖi, an Android-Oriented GUI Library

Post by ExtraTerrestrial » 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)
	
	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

trelemar
Prole
Posts: 22
Joined: Fri Dec 16, 2016 12:21 pm

Re: GÖÖi, an Android-Oriented GUI Library

Post by trelemar » Mon Feb 13, 2017 5:15 pm

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)

ExtraTerrestrial
Prole
Posts: 10
Joined: Wed Jan 25, 2017 5:31 am

Re: GÖÖi, an Android-Oriented GUI Library

Post by ExtraTerrestrial » Wed Feb 22, 2017 4:11 am

Still won't work

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests