This is extremely impressive, nice work
inb4 recreates steam chat perfectly
Gspöt - retained GUI lib
- trubblegum
- Party member
- Posts: 192
- Joined: Wed Feb 22, 2012 10:40 pm
Re: Gspöt - formerly Yet another stateful GUI
I love steam .. if I could get the rest of my OS to look like that, I'd feel truly at one with the cosmos
Update :
- added colour and font overrides (the natural progression would seem to be custom draw functions)
- added enter(this) and leave(this) behaviours, without the need for hax - because I löve you, of course
- added keypress(this, key, code) behaviour, which allows any element which has focus to respond to keypress events. The only element which receives focus out of the box is input, but the example code shows you how to set focus.
Focus is automatically cleared when you click off the element, and a done(this) event is sent to the element if it has focus and the enter key is pressed.
Note that only the input element displays its focus state.
It might be worth mentioning a couple of bonus features, because I know what you crazy lövers are like
- radius element uses an additional parameter r in its pos table.
- gui.withinradius(pos{x, y, ...}, rad{x, y, r, ...}) returns true if pos is within rad.r of rad.x, rad.y
- gui.withinrect(point, rect) does what you'd expect, provided two standard gui pos type args
I do believe you now have a lib which you can write an entire bullethellplatformscrooter with
If I can ask for a sort of general show of hands, who wants speech bubbles?
Update :
- added colour and font overrides (the natural progression would seem to be custom draw functions)
- added enter(this) and leave(this) behaviours, without the need for hax - because I löve you, of course
- added keypress(this, key, code) behaviour, which allows any element which has focus to respond to keypress events. The only element which receives focus out of the box is input, but the example code shows you how to set focus.
Focus is automatically cleared when you click off the element, and a done(this) event is sent to the element if it has focus and the enter key is pressed.
Note that only the input element displays its focus state.
It might be worth mentioning a couple of bonus features, because I know what you crazy lövers are like
- radius element uses an additional parameter r in its pos table.
- gui.withinradius(pos{x, y, ...}, rad{x, y, r, ...}) returns true if pos is within rad.r of rad.x, rad.y
- gui.withinrect(point, rect) does what you'd expect, provided two standard gui pos type args
I do believe you now have a lib which you can write an entire bullethellplatformscrooter with
If I can ask for a sort of general show of hands, who wants speech bubbles?
Re: Gspöt - formerly Yet another stateful GUI
I can imagine someone else wanting that. (BTW "finished" my transparent compatible rounded corners code).trubblegum wrote: who wants speech bubbles?
Nice additions. Noticed that dragging a "custom goodness" element over the "group scrollbar" make mouse ocasionally micro-focus in "group scrolbar" even that I didn't drop the "custom goodness".
- trubblegum
- Party member
- Posts: 192
- Joined: Wed Feb 22, 2012 10:40 pm
Re: Gspöt - formerly Yet another stateful GUI
That's the element lagging behind the mouse .. not much I can do about that, unfortunately, other than maybe some optimization.
Uploaded with another demo project, so you can see what I mean about making a game out of the gui alone (with a little vector maths helper thrown in .. you won't hold that against me, will you?)
Uploaded with another demo project, so you can see what I mean about making a game out of the gui alone (with a little vector maths helper thrown in .. you won't hold that against me, will you?)
Re: Gspöt - formerly Yet another stateful GUI
Ah pity that lag, it's a effect too random, hard to even reproduce again. Maybe you are turning something on before turning off anything. I had the feeling it's something related to pop up tooltiptrubblegum wrote:That's the element lagging behind the mouse .. not much I can do about that, unfortunately, other than maybe some optimization.
Of course not. Go ahead.trubblegum wrote:Uploaded with another demo project, so you can see what I mean about making a game out of the gui alone (with a little vector maths helper thrown in .. you won't hold that against me, will you?)
Tried to download it but attachment was gone.
- trubblegum
- Party member
- Posts: 192
- Joined: Wed Feb 22, 2012 10:40 pm
Re: Gspöt - formerly Yet another stateful GUI
I was updating it .. figured y'all might like some hints for the controls.
Re: Gspöt - formerly Yet another stateful GUI
Hey! A GUI becoming a game! Pow! That's too much versatility for a UI! Oof! That was really pathetic! Ouch!trubblegum wrote:I was updating it .. figured y'all might like some hints for the controls.
Re: Gspöt - formerly Yet another stateful GUI
This is awesome. You röck!
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Gspöt - formerly Yet another stateful GUI
I was playing Gewter:
- trubblegum
- Party member
- Posts: 192
- Joined: Wed Feb 22, 2012 10:40 pm
Re: Gspöt - formerly Yet another stateful GUI
Many thanks.
Caught and updating now ..
Caught and updating now ..
Who is online
Users browsing this forum: Google [Bot] and 2 guests