|
From: <tre...@us...> - 2007-10-18 18:57:22
|
Revision: 513
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=513&view=rev
Author: trevorolio
Date: 2007-10-18 11:57:24 -0700 (Thu, 18 Oct 2007)
Log Message:
-----------
Two thirds of the way to sitting:
Added a "Sit Here" context menu item for things made from templates with seat metadata.
Bound the avatar renderable to the seat thing renderable's transform group (hello, flying sofa).
If an avatar moves or teleports while seated, it stands.
Tried to be somewhat good about progressive loading, showing standing avatars before things and then sitting avatars.
Not yet done:
Call the sit animation.
Add seat metadata UI to the template editor HTML.
Make a flying Le Corbusier sofa with info panel controls.
Modified Paths:
--------------
maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
Modified: maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
===================================================================
--- maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-10-18 18:57:19 UTC (rev 512)
+++ maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-10-18 18:57:24 UTC (rev 513)
@@ -314,10 +314,6 @@
public void disconnected() {
addChatMessage("Disconnected.");
- //removeAll();
- //validate();
- //add(new ErrorPanel("Unfortunately, I lost the connection to the server."), BorderLayout.CENTER);
- //validate();
}
public void receivedChatMessage(String username, String message) {
@@ -369,6 +365,8 @@
JMenuItem moveItem = null;
+ JMenuItem seatItem = null;
+
Thing thing = null;
long startTime;
@@ -380,6 +378,15 @@
nonce = theNonce;
startTime = System.currentTimeMillis();
+ if(theThing.getTemplate().isASeat()){
+ seatItem = add("Sit Here");
+ seatItem.addActionListener(new ActionListener(){
+ public void actionPerformed(ActionEvent e){
+ spaceClient.userRequestedSeat(thing);
+ }
+ });
+ }
+
moveItem = add("Move");
moveItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|