kopia lustrzana https://github.com/backface/turtlestitch
added hidden preference option for APL-scalars in the settings menu
rodzic
276c95f6f0
commit
2a86245aae
|
@ -10,7 +10,7 @@
|
|||
<script src="src/blocks.js?version=2020-06-20"></script>
|
||||
<script src="src/threads.js?version=2020-06-22"></script>
|
||||
<script src="src/objects.js?version=2020-06-20"></script>
|
||||
<script src="src/gui.js?version=2020-06-08"></script>
|
||||
<script src="src/gui.js?version=2020-06-22"></script>
|
||||
<script src="src/paint.js?version=2020-05-17"></script>
|
||||
<script src="src/lists.js?version=2020-05-18"></script>
|
||||
<script src="src/byob.js?version=2020-06-08"></script>
|
||||
|
|
26
src/gui.js
26
src/gui.js
|
@ -78,7 +78,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Note*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2020-June-08';
|
||||
modules.gui = '2020-June-22';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -3437,6 +3437,30 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
'check to enable\nusing operators on lists and tables',
|
||||
false
|
||||
);
|
||||
if (Process.prototype.enableHyperOps) {
|
||||
addPreference(
|
||||
'APL-style scalars',
|
||||
() => {
|
||||
Process.prototype.enableAPLscalars =
|
||||
!Process.prototype.enableAPLscalars;
|
||||
if (Process.prototype.enableAPLscalars) {
|
||||
Process.prototype.hyperDyadic =
|
||||
Process.prototype.hyperDyadicAPL;
|
||||
Process.prototype.hyperZip =
|
||||
Process.prototype.hyperZipAPL;
|
||||
} else {
|
||||
Process.prototype.hyperDyadic =
|
||||
Process.prototype.hyperDyadicSimple;
|
||||
Process.prototype.hyperZip =
|
||||
Process.prototype.hyperZipSimple;
|
||||
}
|
||||
},
|
||||
Process.prototype.enableAPLscalars,
|
||||
'uncheck to disable treating (nested)\nsingle-itemlists as scalars',
|
||||
'check to treat (nested)\nsingle-itemlists as scalars',
|
||||
true
|
||||
);
|
||||
}
|
||||
addPreference(
|
||||
'Persist linked sublist IDs',
|
||||
() => StageMorph.prototype.enableSublistIDs =
|
||||
|
|
Ładowanie…
Reference in New Issue