pull/68/head
Michael Aschauer 2018-10-29 17:27:22 +01:00
rodzic 782f2edeb6
commit d1849e33d6
2 zmienionych plików z 35 dodań i 7 usunięć

Wyświetl plik

@ -9,7 +9,7 @@
*/
tempDict = {
// UI
// UI stuff
'About Snap!...':
'\u00dcber Snap!...',
'About TurtleStitch...':
@ -42,14 +42,12 @@ tempDict = {
'Ang/Amerik. Einheiten',
'Turtle':
'Schildkr\u00f6te',
'Login':
'Anmelden',
'Create an account':
'Benutzerkonto anlegen',
'Reset Password...':
'Passwort zur\u00fccksetzen',
'Export as SVG':
'Exportieren als SVG',
'Export as PNG':
@ -71,6 +69,7 @@ tempDict = {
'Ignore colors during export':
'Ignoriere Farben beim Export',
// new blocks
'move %n steps by %n steps':
'gehe %n Schritte in %n er Schritten',
'move %n steps in %n':
@ -84,11 +83,13 @@ tempDict = {
'reset':
'zur\u00fccksetzen',
// warnings
' are too long! (will get clamped)':
'sind zu lang! (werden geklammert)',
' is too long! (will get clamped)':
'Stich ist zu lang! (wird geklammert)',
// pen and color setting
'pen size':
'Stiftdicke',
'pen down?':
@ -127,12 +128,20 @@ tempDict = {
'absolute Helligkeit',
'change hue by %n':
'\u00e4ndere Farbton um %n',
// new categories
'Embroidery':
'Stickerei',
'Colors':
'Farben',
// embroidery stuff
'running by %n':
'Steppstich mit %n',
'jump stitch %b':
'Sprungstich %b',
'tie stitch':
'Riegelstich',
'draw text: %s scale: %n font: %n':

Wyświetl plik

@ -320,6 +320,15 @@ SpriteMorph.prototype.jumpStitch = function (on = true) {
this.isDown = !on;
}
SpriteMorph.prototype.tieStitch = function () {
var myself = this;
var penState = myself.isDown;
myself.isDown = true;
myself.forward(2);
myself.forward(-4);
myself.forward(2);
myself.isDown = penState;
}
SpriteMorph.prototype.origForward = SpriteMorph.prototype.forward;
SpriteMorph.prototype.forward = function (steps) {
@ -1765,11 +1774,19 @@ SpriteMorph.prototype.initBlocks = function () {
{
only: SpriteMorph,
type: 'command',
spec: 'running length %n adjust %b',
spec: 'running by %n steps',
category: 'embroidery',
defaults: [12, true]
defaults: [12]
};
this.blocks.tieStitch =
{
only: SpriteMorph,
type: 'command',
spec: 'tie stitch',
category: 'embroidery',
};
this.blocks.jumpStitch =
{
only: SpriteMorph,
@ -2017,6 +2034,8 @@ SpriteMorph.prototype.blockTemplates = function (category) {
blocks.push('-');
blocks.push(block('runningStitch'));
blocks.push(block('jumpStitch'));
blocks.push(block('tieStitch'));
} else if (cat === 'colors') {
blocks.push(block('setColor'));