mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -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
|
if (spr.costumes.length > 1) spr.costumes.shift(); // remove default costume
|
||||||
spr.showCostumeNamed(list[0].costumeName);
|
spr.showCostumeNamed(list[0].costumeName);
|
||||||
app.addNewSprite(spr);
|
app.addNewSprite(spr);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var lib:MediaLibrary = new MediaLibrary(app, 'sprite', addSprite);
|
var lib:MediaLibrary = new MediaLibrary(app, 'sprite', addSprite);
|
||||||
|
@ -385,7 +384,7 @@ public class LibraryPart extends UIPart {
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// New Backdrop Operations
|
// New Backdrop Operations
|
||||||
//------------------------------
|
//------------------------------
|
||||||
|
|
||||||
private function backdropFromCamera(b:IconButton):void {
|
private function backdropFromCamera(b:IconButton):void {
|
||||||
function savePhoto(photo:BitmapData):void {
|
function savePhoto(photo:BitmapData):void {
|
||||||
addBackdrop(new ScratchCostume(Translator.map('photo1'), photo));
|
addBackdrop(new ScratchCostume(Translator.map('photo1'), photo));
|
||||||
|
@ -393,7 +392,7 @@ public class LibraryPart extends UIPart {
|
||||||
}
|
}
|
||||||
app.openCameraDialog(savePhoto);
|
app.openCameraDialog(savePhoto);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function backdropFromComputer(b:IconButton):void {
|
private function backdropFromComputer(b:IconButton):void {
|
||||||
var lib:MediaLibrary = new MediaLibrary(app, 'backdrop', addBackdrop);
|
var lib:MediaLibrary = new MediaLibrary(app, 'backdrop', addBackdrop);
|
||||||
lib.importFromDisk();
|
lib.importFromDisk();
|
||||||
|
@ -407,7 +406,7 @@ public class LibraryPart extends UIPart {
|
||||||
private function paintBackdrop(b:IconButton):void {
|
private function paintBackdrop(b:IconButton):void {
|
||||||
addBackdrop(ScratchCostume.emptyBitmapCostume(Translator.map('backdrop1'), true));
|
addBackdrop(ScratchCostume.emptyBitmapCostume(Translator.map('backdrop1'), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function addBackdrop(costumeOrList:*):void {
|
private function addBackdrop(costumeOrList:*):void {
|
||||||
var c:ScratchCostume = costumeOrList as ScratchCostume;
|
var c:ScratchCostume = costumeOrList as ScratchCostume;
|
||||||
if (c) {
|
if (c) {
|
||||||
|
|
Loading…
Reference in a new issue