Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (532)
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  
  GUI Demo  (Read 1554 times)
0 Members and 1 Guest are viewing this topic.
Offline DavidYazel

Junior Member




Java games rock!


« Posted 2003-12-16 03:22:57 »

Since a lot of people have been using the Xith3D GUI stuff, I put together a complete test of the gui.  Download the following and extract it somwhere.  If you don't have xith3d installed in /xith3d then edit runtest.bat and change the line that says set xith3d=/xith3d to whereever you have it.

This is the code right out of the magicosm project, including the gui artwork which is stored in cosm-default-skin.jar.  I have no issues with this code being dispersed since we are allowing our players to build new skins, but the code is our copyright and so is the artwork.

http://www.magicosm.net/xith3d/xith3d-gui-demo.zip

The main frame is an alpha bordered window and you can see that the edges are slightly indented from the corners.

Every line of code for the demo is included, excepting the code in Xith3d which you already have.  99 percent of the magic of the GUI is just swing tricks and is unrelated to Xith3D gui.  The skinning system reads an XML file and sets up the graphic skin components with the right bitmaps.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2003-12-16 05:02:46 »

David,

Thank you very much for sharing your code!  That is really impressive work.

Do you mind if I add a link to it on http://xith.org/demo if I also link to your post so people are made aware of your copyright wishes?

It's great to have some examplar code - especially for us who havn't done too much tricky Swing stuff before (let along swing with Xith3D).

Thanks again,

Will.

Offline shochu

Junior Member




Java games rock!


« Reply #2 - Posted 2003-12-16 05:44:52 »

Thanks David!
   THis will help a lot!!  You rock!!  Grin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jens

Senior Member




Java for games!


« Reply #3 - Posted 2003-12-16 06:52:15 »

Awesome stuff! Thanks a lot David.  Smiley

The demo always runs fine with the xith3d.jar you provided with your download. If I use the CVS version of Xith3D it occasionally crashes when scrolling down vertically.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline elias

Senior Member





« Reply #4 - Posted 2003-12-16 07:28:03 »

Fetching the zip file and a freshly checked out xith3d I get the following exception:

Hit SPACE to toggle projection policy, or ESC to exit
mapped com.magicosm.skins.SkinRaisedPanel to com.magicosm.skins.styles.ControlSt
yle
mapped com.magicosm.skins.SkinSmallPrompt to com.magicosm.skins.styles.ControlSt
yle
mapped com.magicosm.skins.SkinInternalPanel to com.magicosm.skins.styles.Control
Style
mapped com.magicosm.skins.SkinButton to com.magicosm.skins.styles.ControlStyle
mapped com.magicosm.skins.SkinTabbedPane to com.magicosm.skins.styles.ControlSty
le
mapped com.magicosm.skins.SkinPanel to com.magicosm.skins.styles.ControlStyle
mapped com.magicosm.skins.SkinCheckBox to com.magicosm.skins.styles.ControlStyle

mapped com.magicosm.skins.SkinCheckBox to com.magicosm.skins.styles.ControlStyle

mapped com.magicosm.skins.SkinCheckBox to com.magicosm.skins.styles.ControlStyle

mapped com.magicosm.skins.SkinPanel to com.magicosm.skins.styles.ControlStyle
mapped com.magicosm.skins.SkinScrollPane to com.magicosm.skins.styles.ControlSty
le
mapped com.magicosm.skins.SkinScrollbar to com.magicosm.skins.styles.ScrollbarSt
yle
size is 15
mapped com.magicosm.skins.SkinScrollbar to com.magicosm.skins.styles.ScrollbarSt
yle
size is 15
Exception in thread "main" java.lang.NoSuchMethodError: TestWindow.setPosition(I
I)V
       at Xith3DGuiTest.init(Xith3DGuiTest.java:209)
       at Xith3DGuiTest.main(Xith3DGuiTest.java:252)

- elias

Offline elias

Senior Member





« Reply #5 - Posted 2003-12-16 07:28:30 »

Same exception in linux btw.

- elias

Offline DavidYazel

Junior Member




Java games rock!


« Reply #6 - Posted 2003-12-16 10:30:37 »

Ah, my bad.  CVS should be up to date now. Let me know if there are any other issues.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
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.

pw (15 views)
2014-07-24 01:59:36

Riven (14 views)
2014-07-23 21:16:32

Riven (13 views)
2014-07-23 21:07:15

Riven (15 views)
2014-07-23 20:56:16

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

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

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

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

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

Riven (50 views)
2014-07-14 18:02:53
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!