Subversion Repositories f9daq

Rev

Rev 193 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 193 Rev 267
Line 50... Line 50...
50
  return [code, Blockly.JavaScript.ORDER_NONE];
50
  return [code, Blockly.JavaScript.ORDER_NONE];
51
};
51
};
52
 
52
 
53
Blockly.JavaScript['simple_analysis'] = function(block) {
53
Blockly.JavaScript['simple_analysis'] = function(block) {
54
  var number_neve = block.getFieldValue('neve');
54
  var number_neve = block.getFieldValue('neve');
-
 
55
  var number_first = block.getFieldValue('first');
55
  var dropdown_datasource = block.getFieldValue('datasource');
56
  var dropdown_datasource = block.getFieldValue('datasource');
56
  var value_list = Blockly.JavaScript.valueToCode(block, 'list', Blockly.JavaScript.ORDER_ATOMIC);
57
  var value_list = Blockly.JavaScript.valueToCode(block, 'list', Blockly.JavaScript.ORDER_ATOMIC);
57
  // TODO: Assemble JavaScript into code variable.
58
  // TODO: Assemble JavaScript into code variable.
58
  var code = 'simple_analysis(' + ' neve ' + number_neve +  ' datasource ' + dropdown_datasource + ' list ' + value_list + ')\n';
59
  var code = 'simple_analysis(' + ' neve ' + number_neve ' + ' first ' + number_first  +  ' datasource ' + dropdown_datasource + ' list ' + value_list + ')\n';
59
  //var code = '...';
60
  //var code = '...';
60
  return code;
61
  return code;
61
};
62
};
62
 
63
 
63
Blockly.JavaScript['particle_mass_fix'] = function(block) {
64
Blockly.JavaScript['particle_mass_fix'] = function(block) {