Page 6 of 17

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 5:00 pm
by SiENcE
trubblegum wrote:
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.
Ok. I just thought you evaluated all existing guis before doing a new/different one ;-).

Re: Gspöt - formerly Yet another stateful GUI

Posted: Mon Mar 12, 2012 5:05 pm
by trubblegum
See this?
It's me not falling for it.

Like I said :
It is completely unique in that it works the way I want it to.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Wed Mar 14, 2012 9:17 am
by trubblegum
New commit.
Added function newimage(element), which attempts to load a new image if element.img is a string, and resize the element if element.type == 'image'
Could be used as :

Code: Select all

element.mouseenter = function(this)
   this.img = 'new.png'
   this.Gspot.newimage(this)
end
+ other minor improvements and optimizations

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 12:55 pm
by trubblegum
Here's a semi-related project I've been working on for the last couple of days : https://github.com/trubblegum/Gscrooter
Considered posting in YellowAfterlife's platform engine thread, but decided it would probably be bad form.

In a nutshell, it loads maps and levels, and has a couple of objects and levels.
Pretty smooth, but I'm getting some glitching with the physics (in Gscrooter.lua). If anyone has the time, I'd love a pointer or two.

I'm dithering on adding modular .. y'know .. modules :brows:
Would probably need to clean up the object class code some .. it works well, but not the most elegant thing in the world ever.

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 6:31 pm
by teh8bits
I cant seem to figure out how to select a map and start the game ;P

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 6:44 pm
by trubblegum
teh8bits wrote:I cant seem to figure out how to select a map and start the game ;P
Hit the "Load Map" button :P

You might want the latest version (a couple of minutes old), which has the latest version of Gspot (with shiny new dblclick event)

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 6:53 pm
by trubblegum
Aaand now that I've hit push, all that was promised can be delivered :oops:

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 7:29 pm
by teh8bits
Ohhh you press load map again ^_^
I just played it, the coding impresses me although being honest the game could be better ;P

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 7:41 pm
by coffee
teh8bits wrote:I just played it, the coding impresses me although being honest the game could be better ;P
BTW I wanted to see if your game also "could be better" but you locked your Forest Sword! in a sign-only forum! :D

Re: Gspöt - formerly Yet another stateful GUI

Posted: Thu Mar 15, 2012 8:16 pm
by trubblegum
teh8bits wrote:Ohhh you press load map again ^_^
I just played it, the coding impresses me although being honest the game could be better ;P
There can be no game without an engine - all in good time.
What's there is just to keep me amused and give an idea of how it's coming along.

You can also double-click a map in the list to load, which leads me to Gspot's latest shiny-as-hell double-click event (thanks to coffee for insisting) which now exists, along with a Gspot.mousedt which you can use for whatever you see fit, including checking for double-clicks outside of Gspot.