|
From: <tre...@us...> - 2007-11-27 13:00:10
|
Revision: 607
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=607&view=rev
Author: trevorolio
Date: 2007-11-27 05:00:14 -0800 (Tue, 27 Nov 2007)
Log Message:
-----------
Added a help message to the viewer applet. It is displayed at start and can be shown again with /help.
Third party apps can set their own help messages via javascript.
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-11-27 01:55:25 UTC (rev 606)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-11-27 13:00:14 UTC (rev 607)
@@ -12,6 +12,12 @@
var spaceDiv = null;
var signinURL = "signin.html";
+var viewerHelpMessage = "Movement: Click in the 3D view and use your arrow keys to explore.<br/>";
+viewerHelpMessage += "Chat: Click in the text field below, type a chat message, then press \"return\".<br/>";
+viewerHelpMessage += "Camera: Drag your mouse to pan the camera left, right, up and down. ESC to reset.<br/>"
+viewerHelpMessage += "Zoom: Use your scroll wheel to zoom the camera in and out.<br/>";
+viewerHelpMessage += "<br/>Type \"/help\" to see this message again.";
+
function handleSpaceDoc(xml){
if(xml == null){
spaceDiv.innerHTML = "That space is not public or does not exist.";
@@ -90,6 +96,9 @@
html += "<param name='serviceURI' value='" + serviceURI + "' />";
html += "<param name='spaceID' value='" + locationParameters['spaceID'] + "' />";
html += "<param name='image' value='" + appletLoadingImagePath + "' />";
+ if(viewerHelpMessage != null){
+ html += "<param name='helpMessage' value='" + escapeHTML(viewerHelpMessage) + "' />";
+ }
html += "<param name='showChat' value='" + showChat + "' />";
if(startX != 0){
html += "<param name='x' value='" + startX + "' />";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|