Markus_Persson
|
 |
«
Posted
2003-09-29 20:16:47 » |
|
I started looking at java.awt.dnd (and java.awt.datatransfer), and I have to say.. This is FUN.
At first I didn't really see the point of all the listeners and so, but when I finally got it to work, I realized that I could now drag and drop ANYTHING. Even stuff from other applications. =D
Of course, that lead to me not doing anything productive for the rest of the day, but I had fun.
*goes back to dragging layers from photoshop into the inventory window in wurm*
|
|
|
|
Orangy Tang
|
 |
«
Reply #1 - Posted
2003-09-29 20:23:28 » |
|
I was tinkering with DnD last week getting a JTree to re-arrange itself in a nice and user friendly way. Seemed quite nice, although some stuff is totally non-intuitive (cursors for example) and the listeners are all a bit overwhelming. I also couldn't implement the Transferable interface properly (just trying to transfer a couple of tree paths and/or own objects). Unfortunatly I seemed to end up serialising all sorts of unneeded crap and gave up and hacked around it. Seems a bit silly to do all sorts of data exchange if its within the same VM. (unless anyone knows an easier way?). The result is nice though. You can pick up and drag nodes where you want them, its so simple you do it without even thinking 
|
|
|
|
Herkules
|
 |
«
Reply #2 - Posted
2003-09-29 20:27:04 » |
|
IIRC ...... used it a lot.....
Try to figure out wether you want to accept a drop while you are dragging not from the class/flavor but from the specific instance of the object dragged around.
THAT the point where thing really start to be fun!
(E.g. draggin an abstract collection that you can only accept if the objects contained are of a certain type!)
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Breakfast
|
 |
«
Reply #3 - Posted
2003-10-08 16:06:10 » |
|
I thought this was going to be confessions of dungeons and dragons players. I guess I move in the wrong circles...
|
|
|
|
Markus_Persson
|
 |
«
Reply #4 - Posted
2003-10-08 16:10:30 » |
|
Ooh, that's fun too, except in a creepy pseudo-social way.
|
|
|
|
Jeff
|
 |
«
Reply #5 - Posted
2003-11-01 04:58:25 » |
|
COnfession time: Been a DnD player for 25 years. Run games at cons. Curently my favorite computer game is NWN. (Though DnD is NOT my favorite RPG system.) How's THAT for geeky?? 
|
|
|
|
kevglass
|
 |
«
Reply #6 - Posted
2003-11-01 10:27:35 » |
|
Pretty good, even more so that you're proud of your geektisity.
Kev 'Geek' Glass
|
|
|
|
cfmdobbie
Senior Devvie    Medals: 1
Who, me?
|
 |
«
Reply #7 - Posted
2003-11-01 11:17:21 » |
|
|
Hellomynameis Charlie Dobbie.
|
|
|
Breakfast
|
 |
«
Reply #8 - Posted
2003-11-01 19:23:26 » |
|
Pseudo-geeks one and all. You are in the company of a Live Roleplayer, regularly voted most freakish of geek passtimes by the ignorant masses...
|
|
|
|
kevglass
|
 |
«
Reply #9 - Posted
2003-11-02 05:28:51 » |
|
** awed hush **
!! All bow down unto the uber geek !!
Kev
|
|
|
|
Games published by our own members! Check 'em out!
|
|
sma
|
 |
«
Reply #10 - Posted
2003-11-02 06:53:44 » |
|
I thought this was going to be confessions of dungeons and dragons players. I guess I move in the wrong circles... Isn't that called "the D20 system" nowadays?  I started 18 years ago with Midgard (a German RPG) and switched to RuneQuest and Elric! later, playing quite a few other RPGs in the meantime, too. (Though DnD is NOT my favorite RPG system.) Which is...? (if one may ask, mine should be decipherable from my signature  )
|
.: Truth Until Paradox!
|
|
|
cfmdobbie
Senior Devvie    Medals: 1
Who, me?
|
 |
«
Reply #11 - Posted
2003-11-02 10:22:49 » |
|
Pseudo-geeks one and all. You are in the company of a Live Roleplayer, regularly voted most freakish of geek passtimes by the ignorant masses... I've got a mate who even makes his own armour...! 
|
Hellomynameis Charlie Dobbie.
|
|
|
Markus_Persson
|
 |
«
Reply #12 - Posted
2003-11-02 10:27:17 » |
|
"When we get older and get jobs and our own apartments and so, we'll play RPGs every weekend! It's going to be soo cool!" But, of course, you never did.  I really miss it from times to times.
|
|
|
|
Jeff
|
 |
«
Reply #13 - Posted
2003-11-02 22:18:47 » |
|
Which is...? (if one may ask, mine should be decipherable from my signature  ) I have a few favorite systems for different things. For action and story-telling games, which go over particualrly well at Cons, I like TORG. It still does things no other system does. BUT its charchter creations sytem sucks and advancement is almost non-existant making it pretty useless for campiagn games. Also, its out of print  For campaign games i really like Hero System ( www.herogames.com). Its a world-building wonk's dream because you can create almost anything with it. Having said that, Im still playign with tools to make it easier to play by non-Hero System junkies as it can be hard to pick up. My DREAM product is an NWN style game that has the NWN map editor but Hero System rules and a Java scripting layer  If anyone ever cracks the NWN packet protocol i migh try writing a server that does just that...
|
|
|
|
cfmdobbie
Senior Devvie    Medals: 1
Who, me?
|
 |
«
Reply #14 - Posted
2003-11-03 07:18:54 » |
|
and a Java scripting layer  Obviously, you meant to say "and written entirely in Java", didn't you? 
|
Hellomynameis Charlie Dobbie.
|
|
|
Breakfast
|
 |
«
Reply #15 - Posted
2003-11-03 13:23:45 » |
|
I've got a mate who even makes his own armour...!:o
Hmmm... I have some armour I made myself. Not chainmail, mind, that stuff takes ages ( it is basicallly like knitting with metal washers ) but I have home made armour.
|
|
|
|
Jeff
|
 |
«
Reply #16 - Posted
2003-11-03 20:52:04 » |
|
Obviously, you meant to say "and written entirely in Java", didn't you?  As a GTG member I'd say "ofcourse." As a user of the product I don't really care as long as the level I'm coding to supports real Java 
|
|
|
|
Jeff
|
 |
«
Reply #17 - Posted
2003-11-03 20:55:05 » |
|
|
|
|
|
blahblahblahh
|
 |
«
Reply #18 - Posted
2003-12-07 21:30:56 » |
|
I also couldn't implement the Transferable interface properly (just trying to transfer a couple of tree paths and/or own objects). Unfortunatly I seemed to end up serialising all sorts of unneeded crap and gave up and hacked around it. Seems a bit silly to do all sorts of data exchange if its within the same VM. (unless anyone knows an easier way?).
Try the new 1.4 way of doing things; you can create Transferable's easily enough without going anywhere near making your data objects serializable - it uses some MIME type stuff to declare that an object is internal to the VM only, and all you have to do is provide the fully qualifed class name.
|
malloc will be first against the wall when the revolution comes...
|
|
|
|