git @ Cat's Eye Technologies Cyclobots / 50db2e3
Select visuals with dropdown. Chris Pressey 3 years ago
1 changed file(s) with 4 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
113113 function makeVisualsPanel(container) {
114114 var panel = makeDiv(container);
115115 makeSelect(panel, "Visuals:", [
116 {
117 text: "Classic",
118 value: function() {
119 removeVisuals(c);
120 setClassicVisuals(c);
121 }
122 },
123 {
124 text: "Blurred",
125 value: function() {
126 removeVisuals(c);
127 setBlurredVisuals(c);
128 }
129 },
116 { text: "Classic", value: "1", setVisuals: setClassicVisuals },
117 { text: "Blurred", value: "2", setVisuals: setBlurredVisuals }
130118 ], function(selection) {
131 selection.value();
119 removeVisuals(c);
120 selection.setVisuals(c);
132121 });
133 makeButton(panel, "Classic", function(e) { setVisuals(c); });
134 makeButton(panel, "Remove", function(e) { });
135122 }
136123
137124 var controlPanel = makeDiv(config.container);