Re: GOOi, an Android-Oriented GUI Library
Posted: Sun Feb 25, 2018 4:57 am
Yes.alberto_lara wrote: ↑Sun Feb 25, 2018 4:57 am I see, you mean something to give the impression it's being clicked, right?
Thank you very much, I will look into such functions.alberto_lara wrote: ↑Mon Feb 26, 2018 4:48 pm I see, well, you may want to see gooi.glass(), gooi.mode3d() and gooi.shadow() if you want to see different styles in action. For transparency, you just have to set bgColor like {255, 0, 0, 127}, for instance (for a red transparent color). If you want a totally transparent background with a solid border then just play with the corresponding properties.
As for the image set with :setBGImage(), there's not way of setting transparency for that, but there should be, I could add that functionality on the next version of GOOi (or you could add a PR for that )
not really, but this could be added in future versions of GOOi, please feel free to make a PR or a feature request.I could not find a way to build buttons like this. Is this possible?
No independent padding either (this is easier to implement than the button thing though)but I miss more features like independent padding in any cell of the grid, or did I miss it?
you can use the onPress() and onRelease() callbacks (not really practical but it's how it can be done right now):how can I change the background of a button when it's getting clicked?
Code: Select all
btn = gooi.newButton({text = "my button"})
:onPress(function(c) c:bg(alternativeColor); end)
:onRelease(function(c) c:bg(initialColor); end)
I think it's possible to do it, here you can see the code which does that. There's no example (currently) for that in the Wiki, I'll keep it in mind while I fix some stuff here and there (like the lost images). I'll try to have some updates in a few days or a couple of weeks.In modals confirm, allow texts "okay" and "cancel" be modifiable, or just provide a way to make dialogue box.