kopia lustrzana https://github.com/backface/turtlestitch
Correct and translate to Portuguese (Portugal) the pixels-module library
Warning: The "show picture" block had an error: the scaling was wrong. Hence, this is not simply a translation.pull/89/head
rodzic
8eff16dc1f
commit
51ebac0781
|
@ -1 +1 @@
|
|||
<blocks app="Snap! 5.0, http://snap.berkeley.edu" version="1"><block-definition s="show picture %'bitmap'" type="command" category="looks"><comment w="88" collapsed="false">display the given bitmap in a copy of the current costume (so you can switch back to the original costume again)</comment><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doSwitchToCostume"><block s="reportNewCostumeStretched"><block var="bitmap"/><block s="reportGetImageAttribute"><l><option>width</option></l><l><option>current</option></l></block><block s="reportGetImageAttribute"><l><option>height</option></l><l><option>current</option></l></block></block></block></script></block-definition><block-definition s="$camera snap" type="reporter" category="sensing"><comment x="0" y="0" w="216" collapsed="false">takes a snapshot with the webcam and reports it as a new costume, or zero if the user cancels</comment><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>test</l><l>pic</l></list></block><block s="doSetVar"><l>test</l><block s="evaluate"><block s="reportJSFunction"><list></list><l>var camDialog,
 result = false;

camDialog = new CamSnapshotDialogMorph(
 this.parentThatIsA(IDE_Morph),
 this,
 function () {result = null; },
 function (costume) {
 result = costume;
 this.close();
 }
);

camDialog.key = 'camera';
camDialog.popUp(this.world());
return function () {return result; };</l></block><list></list></block></block><block s="doWaitUntil"><block s="evaluate"><block s="reifyScript"><script><block s="doSetVar"><l>pic</l><block s="evaluate"><block var="test"/><list></list></block></block><block s="doReport"><block s="reportNot"><block s="reportEquals"><block var="pic"/><block s="reportBoolean"><l><bool>false</bool></l></block></block></block></block></script><list></list></block><list></list></block></block><block s="doReport"><block var="pic"/></block></script></block-definition></blocks>
|
||||
<blocks app="Snap! 5.0, http://snap.berkeley.edu" version="1"><block-definition s="show picture %'bitmap'" type="command" category="looks"><comment w="88" collapsed="false">display the given bitmap in a copy of the current costume (so you can switch back to the original costume again)</comment><header></header><code></code><translations>pt:mostra a imagem _
</translations><inputs><input type="%l"></input></inputs><script><block s="doSwitchToCostume"><block s="reportNewCostumeStretched"><block var="bitmap"/><block s="reportProduct"><block s="reportQuotient"><block s="reportGetImageAttribute"><l><option>width</option></l><l><option>current</option></l></block><block s="reportGetImageAttribute"><l><option>width</option></l><block var="bitmap"/></block></block><l>100</l></block><block s="reportProduct"><block s="reportQuotient"><block s="reportGetImageAttribute"><l><option>height</option></l><l><option>current</option></l></block><block s="reportGetImageAttribute"><l><option>height</option></l><block var="bitmap"/></block></block><l>100</l></block></block></block></script></block-definition><block-definition s="$camera snap" type="reporter" category="sensing"><comment w="216" collapsed="false">takes a snapshot with the webcam and reports it as a new costume, or zero if the user cancels</comment><header></header><code></code><translations>pt:$camera a imagem actual do vídeo
</translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>test</l><l>pic</l></list></block><block s="doSetVar"><l>test</l><block s="evaluate"><block s="reportJSFunction"><list></list><l>var camDialog,
 result = false;

camDialog = new CamSnapshotDialogMorph(
 this.parentThatIsA(IDE_Morph),
 this,
 function () {result = null; },
 function (costume) {
 result = costume;
 this.close();
 }
);

camDialog.key = 'camera';
camDialog.popUp(this.world());
return function () {return result; };</l></block><list></list></block></block><block s="doWaitUntil"><block s="evaluate"><block s="reifyScript"><script><block s="doSetVar"><l>pic</l><block s="evaluate"><block var="test"/><list></list></block></block><block s="doReport"><block s="reportNot"><block s="reportEquals"><block var="pic"/><block s="reportBoolean"><l><bool>false</bool></l></block></block></block></block></script><list></list></block><list></list></block></block><block s="doReport"><block var="pic"/></block></script></block-definition></blocks>
|
Ładowanie…
Reference in New Issue