mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Added MediaInfo.forBackpack
This commit is contained in:
parent
415d48b6c4
commit
6deda071e3
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue