Blocks: minor tooltip changes.

This commit is contained in:
Jonathan Protzenko 2015-10-16 14:49:42 -07:00
Родитель e76ad12257
Коммит 0dbd9df216
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -634,10 +634,10 @@ Blockly.Blocks['controls_simple_for'] = {
init: function () {
this.setHelpUrl('https://live.microbit.co.uk/functions/note');
this.setColour(230);
this.appendDummyInput().appendField(x+" note");
this.appendDummyInput().appendField(x == "1" ? "one whole note" : x+" note");
this.setInputsInline(true);
this.setOutput(true, "Number");
this.setTooltip(x == "1" ? "A whole note" : "A "+x+"th note");
this.setTooltip((x == "1" ? "A whole note." : "A "+x+"th note.") + " Set the variable \"whole note\" to change the default tempo.");
}
};
});
@ -648,9 +648,11 @@ Blockly.Blocks['device_play_note'] = {
this.setHelpUrl('https://live.microbit.co.uk/functions/play-note');
this.setColour(160);
this.appendDummyInput()
.appendField("play note");
.appendField("play");
this.appendValueInput("note")
.setCheck("Number");
this.appendDummyInput()
.appendField("for");
this.appendValueInput("duration")
.setCheck("Number");
this.setInputsInline(true);