Search found 192 matches

by trubblegum
Sat Dec 15, 2012 10:43 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

Um .. no thanks.
by trubblegum
Sat Dec 15, 2012 6:56 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

Karai17 wrote:separate love-like instances
What is this I don't even.
by trubblegum
Sat Dec 15, 2012 9:01 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

I might do something like : require("Gspot") love.load = function() state = { common = {gui = Gspot()}, menu = { gui = Gspot(), update = function(this, dt) state.common.gui:update(dt) this.gui:update(dt) end, draw = function() // you get the idea .. end }, world = {gui = Gspot(), // these ...
by trubblegum
Thu Dec 13, 2012 12:29 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

I won't be adding to Gspot in the foreseeable future. The scrollgroup bug was a pretty glaring issue, so I fixed it (get the latest from github), but I'm not really working on this any more. I realise that that there are a few thing about it that are less than ideal, and when I get some time (and in...
by trubblegum
Tue Dec 11, 2012 11:39 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

It's pretty unclear what the problem is. Try this? scrollgroup.scrollv.values.max = scrollgroup:getmaxh() - scrollgroup.pos.h Or destroy and replace the text object, or append a new text object using, assuming you may want to add and remove text. Honestly, scrollgroups are a bit finicky, and it's so...
by trubblegum
Sat Dec 01, 2012 1:13 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

Looks good to me (just that errant quote, but I'm sure you caught it)
All the best
by trubblegum
Sat Dec 01, 2012 12:32 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - retained GUI lib

Well, there are at least a couple of ways you can work it. One, which I recommend, is to create a new instance for each gamestate. I used something like state[currentstate].gui:update(dt) and state[currentstate].gui:draw() The key here is to only update and draw the relevant GUI. Another way to go a...
by trubblegum
Fri Nov 30, 2012 10:18 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - formerly Yet another stateful GUI

You could override input.focus() Out of the box, the inherited focus() function (in Gspot.util) is : element.focus = function(this) this.Gspot:setfocus(this) end .. so you could override that right after you include the lib, or use something like: myfocusfunc = function(this) this.Gspot.util.focus(t...
by trubblegum
Sun Oct 21, 2012 12:15 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 177912

Re: Gspöt - formerly Yet another stateful GUI

Spritebatch is kinda wacky, and I can't make sense of it, so it's unlikely to happen. If the documentation improves to a point where you can actually tell what it does and how to do it, I might look at it. I don't know about other GUI libs. Apologies to the fellow with the scrollgroup problem .. I d...
by trubblegum
Tue Apr 24, 2012 6:21 am
Forum: Support and Development
Topic: Platformer Collsion With Maps
Replies: 5
Views: 3742

Re: Platformer Collsion With Maps

A grid-locked object is always aligned with the grid. That means its location is normally exactly equal to that of one of the grid squares, so all you have to do is find which grid space has the same co-ordinates as the player. If you've been smart about it, you can find the map square at the player...