| 198 | } |
| 199 | |
| 200 | function generateOperationSelect(id, operation) { |
| 201 | |
| 202 | var html = '<select onchange="changeOperation(this, '+id+')">'; |
| 203 | for (var i = 0; i < operations.length; i++ ) { |
| 204 | if ( operation == operations[ i ] ) |
| 205 | html+= '<option selected="selected" value="' + operations[ i ]+ '">' + operations[ i ] + '</option>'; |
| 206 | else |
| 207 | html+= '<option value="' + operations[ i ]+ '">' + operations[ i ] + '</option>'; |
| 208 | } |
| 209 | |
| 210 | html+='</select>'; |
| 211 | return html; |
| 212 | |
| 213 | |
| 214 | } |
| 215 | |
| 216 | |
| 217 | TGUI.Texture = function() { |