File tree Expand file tree Collapse file tree 5 files changed +56
-1
lines changed Expand file tree Collapse file tree 5 files changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ class BackdropLibrary extends React.Component {
32
32
bitmapResolution : item . bitmapResolution ,
33
33
skinId : null
34
34
} ;
35
+ if ( item . fromPenguinModLibrary ) {
36
+ vmBackdrop . fromPenguinModLibrary = true ;
37
+ vmBackdrop . libraryId = item . libraryFilePage ;
38
+ vmBackdrop . dataFormat = item . dataFormat ;
39
+ }
35
40
// Do not switch to stage, just add the backdrop
36
41
this . props . vm . addBackdrop ( item . md5ext , vmBackdrop ) ;
37
42
}
@@ -40,6 +45,7 @@ class BackdropLibrary extends React.Component {
40
45
< LibraryComponent
41
46
data = { getBackdropLibrary ( ) }
42
47
id = "backdropLibrary"
48
+ actor = "CostumeLibrary"
43
49
header = { "Backdrops" }
44
50
tags = { backdropTags }
45
51
title = { this . props . intl . formatMessage ( messages . libraryTitle ) }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class CostumeLibrary extends React.PureComponent {
36
36
vmCostume . fromPenguinModLibrary = true ;
37
37
vmCostume . libraryId = item . libraryFilePage ;
38
38
vmCostume . dataFormat = item . dataFormat ;
39
- } ;
39
+ }
40
40
this . props . vm . addCostumeFromLibrary ( item . md5ext , vmCostume ) ;
41
41
}
42
42
render ( ) {
Original file line number Diff line number Diff line change @@ -197,6 +197,11 @@ class CostumeTab extends React.Component {
197
197
bitmapResolution : item . bitmapResolution ,
198
198
skinId : null
199
199
} ;
200
+ if ( item . fromPenguinModLibrary ) {
201
+ vmCostume . fromPenguinModLibrary = true ;
202
+ vmCostume . libraryId = item . libraryFilePage ;
203
+ vmCostume . dataFormat = item . dataFormat ;
204
+ } ;
200
205
this . handleNewCostume ( vmCostume ) ;
201
206
}
202
207
handleCostumeUpload ( e ) {
Original file line number Diff line number Diff line change 190
190
"rotationCenterX" : 480 ,
191
191
"rotationCenterY" : 360
192
192
},
193
+ {
194
+ "name" : " Calm Night" ,
195
+ "tags" : [
196
+ " outdoors" ,
197
+ " lights" ,
198
+ " purple"
199
+ ],
200
+ "bitmapResolution" : 2 ,
201
+ "dataFormat" : " png" ,
202
+ "rotationCenterX" : 480 ,
203
+ "rotationCenterY" : 360 ,
204
+ "fromPenguinModLibrary" : true ,
205
+ "libraryFilePage" : " images/backdrops/calm_night.png"
206
+ },
193
207
{
194
208
"name" : " Canyon" ,
195
209
"tags" : [
Original file line number Diff line number Diff line change 6486
6486
"rotationCenterX" : 68 ,
6487
6487
"rotationCenterY" : 260
6488
6488
},
6489
+ {
6490
+ "name" : " Joe" ,
6491
+ "tags" : [
6492
+ " people" ,
6493
+ " crude" ,
6494
+ " drawing" ,
6495
+ " human"
6496
+ ],
6497
+ "bitmapResolution" : 1 ,
6498
+ "dataFormat" : " svg" ,
6499
+ "rotationCenterX" : 0 ,
6500
+ "rotationCenterY" : 0 ,
6501
+ "fromPenguinModLibrary" : true ,
6502
+ "libraryFilePage" : " images/Joe.svg"
6503
+ },
6489
6504
{
6490
6505
"name" : " Jordyn-a" ,
6491
6506
"tags" : [
9891
9906
"rotationCenterX" : 55 ,
9892
9907
"rotationCenterY" : 89
9893
9908
},
9909
+ {
9910
+ "name" : " Sleeping Dog" ,
9911
+ "tags" : [
9912
+ " dog" ,
9913
+ " animals" ,
9914
+ " realistic" ,
9915
+ " max"
9916
+ ],
9917
+ "bitmapResolution" : 2 ,
9918
+ "dataFormat" : " png" ,
9919
+ "rotationCenterX" : 225 ,
9920
+ "rotationCenterY" : 144 ,
9921
+ "fromPenguinModLibrary" : true ,
9922
+ "libraryFilePage" : " images/max.png"
9923
+ },
9894
9924
{
9895
9925
"name" : " Smiley-a" ,
9896
9926
"tags" : [
You can’t perform that action at this time.
0 commit comments