Lightweight controller library for JavaScript.
Go to file
Mr.doob 3b4f6e3944 Changed GUI to be instanceable (rather than just one GUI per project). GUI.start() is now var gui = new GUI();
Included prettify.js in the repo so people checking the demo localy doesn't need the internets.
Changed way of hidding the panel (controllerContainer.style.height rather than this.domElement.stylemarginTop).
2011-01-29 00:38:58 +00:00
controllers Changed GUI to be instanceable (rather than just one GUI per project). GUI.start() is now var gui = new GUI(); 2011-01-29 00:38:58 +00:00
demo Changed GUI to be instanceable (rather than just one GUI per project). GUI.start() is now var gui = new GUI(); 2011-01-29 00:38:58 +00:00
.gitignore Added gitignore for textmate project 2011-01-23 13:30:07 -08:00
gui-bare.css Added gui-bare.css and split controllers into seperate files. 2011-01-24 12:38:52 -07:00
gui.css Added 'it gives you this' 2011-01-27 14:24:25 -07:00
gui.js Changed GUI to be instanceable (rather than just one GUI per project). GUI.start() is now var gui = new GUI(); 2011-01-29 00:38:58 +00:00
gui.min.js Version 0.1 2011-01-26 19:45:34 -07:00
index.html Changed GUI to be instanceable (rather than just one GUI per project). GUI.start() is now var gui = new GUI(); 2011-01-29 00:38:58 +00:00
README changed README 2011-01-26 19:58:33 -07:00

    var controllableObject = 
    	{	
    		numberProperty: 20,
    		anotherNumberProperty: 0,
    		textProperty: "a string",
    		booleanProperty: false,
    		functionProperty: function() {
    			alert("I am a function!");
    		}
    	};

    window.onload = function() {

    	GUI.start();

    	// Creates a number box
    	GUI.add(controllableObject, "numberProperty");

    	// Creates a slider (min, max)
    	GUI.add(controllableObject, "anotherNumberProperty", -100, 100);

    	// Creates a text field
    	GUI.add(controllableObject, "textProperty");

    	// Creates a checkbox
    	GUI.add(controllableObject, "booleanProperty");

    	// Creates a button
    	GUI.add(controllableObject, "functionProperty");

    }