diff options
| author | jmoenig <jens@moenig.org> | 2013-07-30 13:48:12 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-07-30 13:48:12 +0200 |
| commit | 15914663173d092dba5498a693c921d94e1aa562 (patch) | |
| tree | f7afd57f52544775d4ffd7dd8591a6bc0b64d9a2 /blocks.js | |
| parent | 20c1d4d14f3dfb6a50d6d1be3dc47a4ca9cf5921 (diff) | |
| download | snap-byow-15914663173d092dba5498a693c921d94e1aa562.tar.gz snap-byow-15914663173d092dba5498a693c921d94e1aa562.zip | |
PAUSE primitive command block
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1196,6 +1196,16 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { new Point() : this.embossing; part.drawNew(); break; + case '%pause': + part = new SymbolMorph('pause'); + part.size = this.fontSize; + part.color = new Color(160, 80, 0); + part.isProtectedLabel = true; // doesn't participate in zebraing + part.shadowColor = this.color.darker(this.labelContrast); + part.shadowOffset = MorphicPreferences.isFlat ? + new Point() : this.embossing; + part.drawNew(); + break; default: // nop(); } |
