From b50e86c7a0bc9aea2afe6d135c882c7628510b0d Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Mon, 31 Jan 2011 20:24:30 -0500 Subject: [PATCH 1/2] typo --- gui.js | 3 --- index.html | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/gui.js b/gui.js index f87afab..4d47fe1 100644 --- a/gui.js +++ b/gui.js @@ -438,7 +438,6 @@ var GUI = function() { }, 0); if (GUI.scrollTop > -1) { - console.log("hey"); document.body.scrollTop = GUI.scrollTop; } resizeTo = openHeight; @@ -470,11 +469,9 @@ GUI.scrollTop = -1; // TODO: Not working in FF. GUI.load = function(saveString) { - console.log(saveString); //GUI.savedAppearanceVars = []; var vals = saveString.split(","); - console.log(vals); var numGuis = parseInt(vals[0]); GUI.scrollTop = parseInt(vals[1]); for (var i = 0; i < numGuis; i++) { diff --git a/index.html b/index.html index 1a2578b..9941152 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

Basic Usage

-<script type="text/javascript" src="demo/demo.js"></script>
+<script type="text/javascript" src="gui.min.js"></script>
 <script type="text/javascript">
 
 window.onload = function() {
@@ -210,7 +210,7 @@ gui.add(GUI, "showSaveString");

Clicking the "showSaveString" button bring up an alert with a string. Copy and paste that string into the method GUI.load() before you instantiate any gui objects.

-// Replace COPIED STRING with the value you got from 
+// Replace COPIED STRING with the value you got from showSaveString()
 GUI.load("COPIED STRING");
 
 var gui = new GUI();
@@ -219,7 +219,7 @@ var gui = new GUI();
 gui.add(someObject, "someProperty");
 gui.add(someObject, "someOtherProperty");
-

Save strings won't work if you change the order in which you've added properties to your gui objects. If you want to add more parameters to your gui and use an old save string, make sure they're added after the properties whose values you've saved.

+

Save strings won't work if you change the order in which you've added properties to your gui objects, or the order of the gui objects themselves.. If you want to add more parameters to your gui and use an old save string, make sure they're added after the properties whose values you've saved.

@@ -290,7 +290,7 @@ document.getElementById("my-gui-container").appendChild( gui.domElement );

Pro tips.

    -
  1. gui-dat panels are resizeable. Drag the toggle button.
  2. +
  3. gui-dat panels are resizeable. Drag the show/hide button.
  4. Press H to make panels invisible. Then press H to show them again.
From ea51f26d587b8c0a3bbec417998c9df49bec6e63 Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Mon, 31 Jan 2011 20:42:22 -0500 Subject: [PATCH 2/2] typo --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 9941152..00632bf 100644 --- a/index.html +++ b/index.html @@ -292,7 +292,7 @@ document.getElementById("my-gui-container").appendChild( gui.domElement );
  1. gui-dat panels are resizeable. Drag the show/hide button.
  2. -
  3. Press H to make panels invisible. Then press H to show them again.
  4. +
  5. Pro tip #2 forthcoming.