kopia lustrzana https://github.com/backface/turtlestitch
replaced checkboxes in custom block context menus with symbols
rodzic
e934f14745
commit
e34acb2653
|
@ -24,6 +24,7 @@
|
|||
* added new "serial ports" library
|
||||
* added jshint esversion tags
|
||||
* gui: unified palette: don't animate scrolling if delta is zero
|
||||
* byob: replaced checkboxes in custom block context menus with symbols
|
||||
|
||||
### 2021-07-04
|
||||
* fixed audio_comp library "plot sound" block to work with translations, thanks, Hans, for the report!
|
||||
|
|
13
src/byob.js
13
src/byob.js
|
@ -1081,10 +1081,17 @@ CustomCommandBlockMorph.prototype.userMenu = function () {
|
|||
menu;
|
||||
|
||||
function addOption(label, toggle, test, onHint, offHint) {
|
||||
var on = '\u2611 ',
|
||||
off = '\u2610 ';
|
||||
menu.addItem(
|
||||
(test ? on : off) + localize(label),
|
||||
[
|
||||
test ? new SymbolMorph(
|
||||
'checkedBox',
|
||||
MorphicPreferences.menuFontSize * 0.75
|
||||
) : new SymbolMorph(
|
||||
'rectangle',
|
||||
MorphicPreferences.menuFontSize * 0.75
|
||||
),
|
||||
localize(label)
|
||||
],
|
||||
toggle,
|
||||
test ? onHint : offHint
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue