Lightweight controller library for JavaScript.
Go to file
George Michael Brower b716dc8225 Merged
2011-01-23 15:37:28 -07:00
proto created proto folder with draggable-button demo 2011-01-23 13:24:02 -08:00
.gitignore Added gitignore for textmate project 2011-01-23 13:30:07 -08:00
demo.html Updated README and fleshed out gui.js 2011-01-23 15:35:19 -07:00
gui.js Merged 2011-01-23 15:37:28 -07:00
README Updated README and fleshed out gui.js 2011-01-23 15:35:19 -07:00

GUI-DAT is a controller library for JavaScript.

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

}