Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Puppygames GUI  (Read 1744 times)
0 Members and 1 Guest are viewing this topic.
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Posted 2006-03-06 19:22:14 »

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.

Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #1 - Posted 2006-03-07 12:15:02 »

And on LWJGL Smiley

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 Smiley

Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #2 - Posted 2006-03-07 13:09:55 »

Thanks.  Will see if he can take a look.

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Orangy Tang

JGO Kernel


Medals: 48
Projects: 11


Monkey for a head


« Reply #3 - Posted 2006-03-07 20:21:33 »

Er, I have:
1  
public class TextField extends Component implements Editor {


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

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #4 - Posted 2006-03-08 00:40:09 »

As a matter of fact we are  Grin

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.

Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #5 - Posted 2006-03-08 01:43:00 »

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

In Spaghetti, net.puppygames.gui.MousePointer
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
/**
 * 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:
1  
2  
The type MousePointer.AnimationDelegate must implement the inherited abstract method Animated.
 getLoop()


In SPGLExtra, com.shavenpuppy.jglib.sprites.IndexedSpriteEngine
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
   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:
1  
The method getScale() is undefined for the type Sprite


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

Offline Orangy Tang

JGO Kernel


Medals: 48
Projects: 11


Monkey for a head


« Reply #6 - Posted 2006-03-10 00:46:28 »

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.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #7 - Posted 2006-03-10 04:08:19 »

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

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (105 views)
2013-05-17 21:29:12

alaslipknot (114 views)
2013-05-16 21:24:48

gouessej (142 views)
2013-05-16 00:53:38

gouessej (138 views)
2013-05-16 00:17:58

theagentd (150 views)
2013-05-15 15:01:13

theagentd (135 views)
2013-05-15 15:00:54

StreetDoggy (178 views)
2013-05-14 15:56:26

kutucuk (201 views)
2013-05-12 17:10:36

kutucuk (202 views)
2013-05-12 15:36:09

UnluckyDevil (208 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.115 seconds with 20 queries.