Added MediaInfo.forBackpack

This commit is contained in:
Nathan Dinsmore 2014-06-30 09:38:09 -04:00
parent 415d48b6c4
commit 6deda071e3

View file

@ -60,6 +60,7 @@ public class MediaInfo extends Sprite {
public var owner:ScratchObj; // object owning a sound or costume in MediaPane; null for other cases
public var isBackdrop:Boolean;
public var forBackpack:Boolean;
private var frame:Shape; // visible when selected
private var thumbnail:Bitmap;
@ -201,6 +202,7 @@ public class MediaInfo extends Sprite {
//------------------------------
public function updateLabelAndInfo(forBackpack:Boolean):void {
this.forBackpack = forBackpack;
setText(label, (forBackpack ? backpackTitle() : objName));
label.x = ((frameWidth - label.textWidth) / 2) - 2;