mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 13:11:12 -05:00
Fixed whitespace in ui.parts.LibraryPart
This commit is contained in:
parent
3fd3298c81
commit
5a66cbffef
1 changed files with 3 additions and 4 deletions
|
@ -374,7 +374,6 @@ public class LibraryPart extends UIPart {
|
|||
if (spr.costumes.length > 1) spr.costumes.shift(); // remove default costume
|
||||
spr.showCostumeNamed(list[0].costumeName);
|
||||
app.addNewSprite(spr);
|
||||
|
||||
}
|
||||
}
|
||||
var lib:MediaLibrary = new MediaLibrary(app, 'sprite', addSprite);
|
||||
|
@ -385,7 +384,7 @@ public class LibraryPart extends UIPart {
|
|||
// -----------------------------
|
||||
// New Backdrop Operations
|
||||
//------------------------------
|
||||
|
||||
|
||||
private function backdropFromCamera(b:IconButton):void {
|
||||
function savePhoto(photo:BitmapData):void {
|
||||
addBackdrop(new ScratchCostume(Translator.map('photo1'), photo));
|
||||
|
@ -393,7 +392,7 @@ public class LibraryPart extends UIPart {
|
|||
}
|
||||
app.openCameraDialog(savePhoto);
|
||||
}
|
||||
|
||||
|
||||
private function backdropFromComputer(b:IconButton):void {
|
||||
var lib:MediaLibrary = new MediaLibrary(app, 'backdrop', addBackdrop);
|
||||
lib.importFromDisk();
|
||||
|
@ -407,7 +406,7 @@ public class LibraryPart extends UIPart {
|
|||
private function paintBackdrop(b:IconButton):void {
|
||||
addBackdrop(ScratchCostume.emptyBitmapCostume(Translator.map('backdrop1'), true));
|
||||
}
|
||||
|
||||
|
||||
private function addBackdrop(costumeOrList:*):void {
|
||||
var c:ScratchCostume = costumeOrList as ScratchCostume;
|
||||
if (c) {
|
||||
|
|
Loading…
Reference in a new issue