We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9be7d2e + 3af3947 commit ab25a08Copy full SHA for ab25a08
src/scratch/ScratchSprite.as
@@ -450,6 +450,8 @@ public class ScratchSprite extends ScratchObj {
450
451
public function menu(evt:MouseEvent):Menu {
452
var m:Menu = new Menu();
453
+ m.addItem('info', showDetails);
454
+ m.addLine();
455
m.addItem('duplicate', duplicateSprite);
456
m.addItem('delete', deleteSprite);
457
m.addLine();
@@ -487,6 +489,12 @@ public class ScratchSprite extends ScratchObj {
487
489
}
488
490
491
492
+ public function showDetails():void {
493
+ var app:Scratch = Scratch.app;
494
+ app.selectSprite(this);
495
+ app.libraryPart.showSpriteDetails(true);
496
+ }
497
+
498
public function unusedSpriteName(baseName:String):String {
499
var stg:ScratchStage = parent as ScratchStage;
500
return stg ? stg.unusedSpriteName(baseName) : baseName;
0 commit comments