changing README styles

This commit is contained in:
jonobr1 2011-01-28 17:21:55 -07:00
parent 8d3f8c0dd9
commit 5e066f4477

View File

@ -33,7 +33,8 @@
+ ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control. + ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control.
+ The properties must be public, i.e. defined by `this.prop = value`. + The properties must be public, i.e. defined by `this.prop = value`.
\#\# Monitor variable changes <i>outside</i> of the GUI Monitor variable changes <i>outside</i> of the GUI
--------------------------------------------------
Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method
GUI.add(obj, "propName").listen(); GUI.add(obj, "propName").listen();
## Fire a function when someone uses a control ## Fire a function when someone uses a control