Fixed whitespace in ui.parts.LibraryPart

This commit is contained in:
Nathan Dinsmore 2014-06-24 14:43:55 -04:00
parent 3fd3298c81
commit 5a66cbffef

View file

@ -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) {