Gspöt - retained GUI lib

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Gspöt - formerly Yet another stateful GUI

Post 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 ;-).
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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.
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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.
User avatar
teh8bits
Citizen
Posts: 52
Joined: Fri Mar 09, 2012 9:18 pm
Location: The Matrix
Contact:

Re: Gspöt - formerly Yet another stateful GUI

Post by teh8bits »

I cant seem to figure out how to select a map and start the game ;P
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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)
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post by trubblegum »

Aaand now that I've hit push, all that was promised can be delivered :oops:
User avatar
teh8bits
Citizen
Posts: 52
Joined: Fri Mar 09, 2012 9:18 pm
Location: The Matrix
Contact:

Re: Gspöt - formerly Yet another stateful GUI

Post 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
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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
User avatar
trubblegum
Party member
Posts: 192
Joined: Wed Feb 22, 2012 10:40 pm

Re: Gspöt - formerly Yet another stateful GUI

Post 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.
Post Reply

Who is online

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