|
From: <tre...@us...> - 2007-10-22 11:43:45
|
Revision: 535
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=535&view=rev
Author: trevorolio
Date: 2007-10-22 04:43:50 -0700 (Mon, 22 Oct 2007)
Log Message:
-----------
Added a /help command which lists camera controls.
Fixed a sitting bug when switching straight from one seat to another.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-10-22 11:43:45 UTC (rev 534)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-10-22 11:43:50 UTC (rev 535)
@@ -192,10 +192,21 @@
if(commandValue == null || trim(commandValue).length == 0){
return;
}
+ form.commandInput.value = "";
+ if(commandValue == "/help"){
+ displayChatMessage(getHelpMessage());
+ return;
+ }
document.viewer.sendChatMessage(commandValue);
- form.commandInput.value = "";
}
+function getHelpMessage(){
+ var helpMessage = "Help: Drag the mouse up/down and left/right to move your camera.<br/>";
+ helpMessage += "Press the \"escape\" key resets your camera.<br/>"
+ helpMessage += "PageUp/PageDown tilts the camera.";
+ return helpMessage;
+}
+
function initSpaceUI(){
spaceDiv = document.getElementById('spaceDiv');
chatHistory = document.getElementById('chatHistory');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|