Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 1919 times)
0 Members and 1 Guest are viewing this topic.
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


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.

Online princec

JGO Kernel


Medals: 339
Projects: 3
Exp: 16 years


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: 12
Projects: 2
Exp: 14 years


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!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel


Medals: 56
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: 12
Projects: 2
Exp: 14 years


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: 12
Projects: 2
Exp: 14 years


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: 56
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: 12
Projects: 2
Exp: 14 years


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.

 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (37 views)
2014-07-18 06:55:21

Zero Volt (35 views)
2014-07-17 23:47:54

danieldean (28 views)
2014-07-17 23:41:23

MustardPeter (31 views)
2014-07-16 23:30:00

Cero (46 views)
2014-07-16 00:42:17

Riven (47 views)
2014-07-14 18:02:53

OpenGLShaders (36 views)
2014-07-14 16:23:47

Riven (36 views)
2014-07-14 11:51:35

quew8 (32 views)
2014-07-13 13:57:52

SHC (69 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!