kopia lustrzana https://github.com/backface/turtlestitch
disable video motion detection by default
because it's still under constructionpull/89/head
rodzic
b8eaa514a7
commit
792cf22df4
|
@ -77,7 +77,10 @@
|
|||
* German
|
||||
* French
|
||||
|
||||
### 2019-05-02
|
||||
### 2019-05-06
|
||||
* Blocks, Objects, Threads, Video: New video motion detection feature by Josep Ferràndiz i Farré, under construction
|
||||
|
||||
### 2019-05-03
|
||||
* Blocks: reverted reordering MY block dropdown by data type - back to similarities
|
||||
* Blocks: added "compile / un-compile" options to HOF-prims
|
||||
* Objects: added relabelling options for HOF-prims
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script type="text/javascript" src="src/blocks.js?version=2019-05-07"></script>
|
||||
<script type="text/javascript" src="src/threads.js?version=2019-05-07"></script>
|
||||
<script type="text/javascript" src="src/objects.js?version=2019-05-07"></script>
|
||||
<script type="text/javascript" src="src/gui.js?version=2019-04-27"></script>
|
||||
<script type="text/javascript" src="src/gui.js?version=2019-05-07"></script>
|
||||
<script type="text/javascript" src="src/paint.js?version=2019-02-22"></script>
|
||||
<script type="text/javascript" src="src/lists.js?version=2019-04-27"></script>
|
||||
<script type="text/javascript" src="src/byob.js?version=2019-02-15"></script>
|
||||
|
|
19
src/gui.js
19
src/gui.js
|
@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2019-April-27';
|
||||
modules.gui = '2019-May-07';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -2855,6 +2855,20 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
'check to enable\ncamera support',
|
||||
true
|
||||
);
|
||||
addPreference(
|
||||
'Video support',
|
||||
function () {
|
||||
SpriteMorph.prototype.enableVideo =
|
||||
!SpriteMorph.prototype.enableVideo;
|
||||
myself.currentSprite.blocksCache.sensing = null;
|
||||
myself.currentSprite.paletteCache.sensing = null;
|
||||
myself.refreshPalette();
|
||||
},
|
||||
SpriteMorph.prototype.enableVideo,
|
||||
'uncheck to disable\nvideo motion detection features',
|
||||
'check for video motion\ndetection features',
|
||||
true
|
||||
);
|
||||
menu.addLine(); // everything visible below is persistent
|
||||
addPreference(
|
||||
'Blurred shadows',
|
||||
|
@ -3828,6 +3842,7 @@ IDE_Morph.prototype.newProject = function () {
|
|||
StageMorph.prototype.enableInheritance = true;
|
||||
StageMorph.prototype.enableSublistIDs = false;
|
||||
SpriteMorph.prototype.useFlatLineEnds = false;
|
||||
SpriteMorph.prototype.enableVideo = false;
|
||||
Process.prototype.enableLiveCoding = false;
|
||||
this.setProjectName('');
|
||||
this.projectNotes = '';
|
||||
|
@ -4318,6 +4333,7 @@ IDE_Morph.prototype.rawOpenProjectString = function (str) {
|
|||
StageMorph.prototype.enableInheritance = true;
|
||||
StageMorph.prototype.enableSublistIDs = false;
|
||||
Process.prototype.enableLiveCoding = false;
|
||||
SpriteMorph.prototype.enableVideo = false;
|
||||
if (Process.prototype.isCatchingErrors) {
|
||||
try {
|
||||
this.serializer.openProject(
|
||||
|
@ -4363,6 +4379,7 @@ IDE_Morph.prototype.rawOpenCloudDataString = function (str) {
|
|||
StageMorph.prototype.enableInheritance = true;
|
||||
StageMorph.prototype.enableSublistIDs = false;
|
||||
Process.prototype.enableLiveCoding = false;
|
||||
SpriteMorph.prototype.enableVideo = false;
|
||||
if (Process.prototype.isCatchingErrors) {
|
||||
try {
|
||||
model = this.serializer.parse(str);
|
||||
|
|
|
@ -166,6 +166,7 @@ SpriteMorph.prototype.isCachingPrimitives = true;
|
|||
|
||||
SpriteMorph.prototype.enableNesting = true;
|
||||
SpriteMorph.prototype.enableFirstClass = true;
|
||||
SpriteMorph.prototype.enableVideo = false;
|
||||
SpriteMorph.prototype.useFlatLineEnds = false;
|
||||
SpriteMorph.prototype.highlightColor = new Color(250, 200, 130);
|
||||
SpriteMorph.prototype.highlightBorder = 8;
|
||||
|
@ -2300,10 +2301,14 @@ SpriteMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push(watcherToggle('getTimer'));
|
||||
blocks.push(block('getTimer'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doSetVideo'));
|
||||
blocks.push(block('doSetVideoTransparency'));
|
||||
blocks.push(block('reportMotionOn'));
|
||||
blocks.push('-');
|
||||
|
||||
if (SpriteMorph.prototype.enableVideo) {
|
||||
blocks.push(block('doSetVideo'));
|
||||
blocks.push(block('doSetVideoTransparency'));
|
||||
blocks.push(block('reportMotionOn'));
|
||||
blocks.push('-');
|
||||
}
|
||||
|
||||
blocks.push(block('reportAttributeOf'));
|
||||
|
||||
if (SpriteMorph.prototype.enableFirstClass) {
|
||||
|
@ -7998,10 +8003,14 @@ StageMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push(watcherToggle('getTimer'));
|
||||
blocks.push(block('getTimer'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doSetVideo'));
|
||||
blocks.push(block('doSetVideoTransparency'));
|
||||
blocks.push(block('reportMotionOnStage'));
|
||||
blocks.push('-');
|
||||
|
||||
if (SpriteMorph.prototype.enableVideo) {
|
||||
blocks.push(block('doSetVideo'));
|
||||
blocks.push(block('doSetVideoTransparency'));
|
||||
blocks.push(block('reportMotionOnStage'));
|
||||
blocks.push('-');
|
||||
}
|
||||
|
||||
blocks.push(block('reportAttributeOf'));
|
||||
|
||||
if (SpriteMorph.prototype.enableFirstClass) {
|
||||
|
|
Ładowanie…
Reference in New Issue