Puppygames GUI

I pulled this out of sourceforge, but it has a problem that I can’t resolve. The class net.puppygames.gui.TextField extends Screen. However, I can’t find Screen in the GUI or in SPGL or in LWJGL. Anyone know where it is?

ps Puppygames forums are down, so I asked here.

And on LWJGL :slight_smile:

Orangytang’s your best bet, he took on the GUI stuff and has managed to use it for some pretty decent things. I sort of have no idea where it’s at any more!

Cas :slight_smile:

Thanks. Will see if he can take a look.

Er, I have:

public class TextField extends Component implements Editor {

in the latest version (revision 1.4). Are we looking at different files…?

As a matter of fact we are ;D

I checked out Puppygames GUI. I guess I should have checked out Spaghetti instead. I will go get Spaghetti and try that.

Thanks for your help.

Ok. I checked out all the SPGL modules. There are 2 files with problems.

In Spaghetti, net.puppygames.gui.MousePointer


/**
 * Renders a mouse pointer at the current absolute mouse location.
 * @author cas
 */
public class MousePointer extends Resource implements GLRenderable {

	/** The animation delegate */
	private final AnimationDelegate animationDelegate = new AnimationDelegate();

	/** Animation is delegated here */
	private class AnimationDelegate implements Animated {
...

I get the following error:


The type MousePointer.AnimationDelegate must implement the inherited abstract method Animated.
 getLoop()

In SPGLExtra, com.shavenpuppy.jglib.sprites.IndexedSpriteEngine


	private void writePositionBuffers(Sprite s)
	{
		final SpriteImage image = s.getImage();
		assert (image != null);
		
		final int w = image.getWidth();
		final int h = image.getHeight();

		final int scale = s.getScale(); // 8 bits fraction
		s.getOffset(offset);
		final int x = s.getX();
		final int y = s.getY();
		final int z = s.getZ();

I get the error:


The method getScale() is undefined for the type Sprite

I don’t know enough about this library to fix these myself yet.

Looks like some of the core SPGL classes have been changed, I’ve only just noticed this so I’ll need to update the GUI stuff. However as it’s new stuff thats not used you can just stub out the required methods (and IndexedSpriteEngine isn’t used in the GUI anyway). I’ll try and find time to upgrade things this weekend.

Ok. Thanks. Now I just have to figure out how it works. ;D