Lightweight controller library for JavaScript.
Go to file
2011-01-24 23:24:52 -08:00
.gitignore Added gitignore for textmate project 2011-01-23 13:30:07 -08:00
controller.boolean.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
controller.function.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
controller.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
controller.number.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
controller.string.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
demo.css updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
gui-bare.css updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
gui.css updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
gui.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
index.html updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
README updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00
slider.js updated gh-pages to be able to merge from master 2011-01-24 23:24:52 -08:00

GUI-DAT
=======

Usage:
------

    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");

    }