Page 5 of 17

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 2:45 am
by josefnpat
Very nice.

Awesome on the zlib too.

What if you make the keyrepeat a boolean in a config file config of some kind?

edit: also, github/bitbucket maybe?

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 9:40 am
by coffee
josefnpat wrote:edit: also, github/bitbucket maybe?
At least start to versioning the file name would help easily track, delete and compare versions.
Also perhaps your could merge your shooter bonus to regular demo.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 11:06 am
by trubblegum
I'm very reluctant to add config files etc, for ease-of-use reasons, but I hope I've done one better by asking for element.keyrepeat when setting focus. This change means that you must use gui:focus(id) and gui:unfocus() to set and clear focus. Lookup focus is still at gui.focus
Naturally, Gspot returns to any keyrepeat state set outside of itself when it clears focus.

Also added optional element.updateinterval, which sets a delay for element:update() calls.

The naming convention has me a bit consterned, as I'd rather have element.keyinterval, but consistency with love convention would seem to make for better user-friendly-bility.

Re repository : I think it would be a pretty good idea, but believe it or not, I've never used one before .. would anyone recommend one over the other?

I'm not sure about adding the shooter to the demo .. it's just a silly experiment, really, and I think it would distract from the main purpose of the lib.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 12:24 pm
by coffee
trubblegum wrote: I'm not sure about adding the shooter to the demo .. it's just a silly experiment, really, and I think it would distract from the main purpose of the lib.
Well, could appear be silly but that don't show exactly how flexible the gui is? Distract of main purpose? I thought you would let people have free choice how to use the library. Or you are saying "you have here a convertible car but you can only use with top on"? I'm pretty sure that if people see a character among all that windows won't forget for what the library was done. :D

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 2:06 pm
by trubblegum
I will consider your words .. for now, enjoy the shiny github goodness, which is my top priority on this project for now.

josefnpat, you are my hero, thank you for showing me the way :)

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 3:31 pm
by SiENcE
Nice to have another gui library.

But what does it better? Whats the difference to EGS, Goo, Gwee, quickie, lQueryUI ?

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 4:22 pm
by josefnpat
trubblegum wrote:I will consider your words .. for now, enjoy the shiny github goodness, which is my top priority on this project for now.

josefnpat, you are my hero, thank you for showing me the way :)
Yay, GitHub. Github Github Github Github...
SiENcE wrote:Nice to have another gui library.

But what does it better? Whats the difference to EGS, Goo, Gwee, quickie, lQueryUI ?
One Gui to rule them all? Nothing wrong with a variation, but I don't think it's up to him to compare them all. It might be refreshing if someone took all the gui libs, and wrote a comparative chart on them.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 4:27 pm
by coffee
SiENcE wrote:Nice to have another gui library.

But what does it better? Whats the difference to EGS, Goo, Gwee, quickie, lQueryUI ?
I think it's hard to say each one is better. All are usually well done, but some have components not avaliable in others. Best way to choose each one is better is test it all and see each one fits better to our desires. It's a question of taste and needs really.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 4:39 pm
by trubblegum
SiENcE wrote: But what does it better? Whats the difference to EGS, Goo, Gwee, quickie, lQueryUI ?
It is completely unique in that it works the way I want it to :P
Take a look at the write-up I just completed over on github, and decide for yourself.

Or, to put it another way : What they said.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 4:47 pm
by trubblegum
Just a quick note re something thrown up by the way-back machine
I'm not sure the updateinterval would be used enough to warrant its own per-element setting, especially since there would almost always be an alternate solution using dt.
I've gone ahead and included it anyway, as it's a nice little way to do some quick optimising (limited in scope though it may be) dev-side, and I've seen a couple of questions relating to timers and how to create and use one, so why not throw in the functionality?
An example of its use would be a blinking button, or an enemy in Gewter which runs its AI every second instead of every frame.