@@ -563,6 +563,27 @@ popup.on('submit', (spriteItems) => {
563
563
Entry .container .addObject (object, 0 );
564
564
}
565
565
}
566
+
567
+ popup .show ({ type: ' sprite' }, {
568
+ sidebar: {
569
+ entrybot_friends: {
570
+ id: " aa" ,
571
+ name: " 엔트리봇" ,
572
+ value: " entrybot_friends" ,
573
+ sub: {
574
+ all: {" id" : " " ," name" : " 전체" ," value" : " all" }
575
+ }
576
+ }
577
+ },
578
+ data: {
579
+ data: [
580
+ {
581
+ " id" : " 오브젝트 고유id" ,
582
+ ... 샘플데이터
583
+ }
584
+ ]
585
+ }
586
+ })
566
587
` ` `
567
588
568
589
#### 샘플 데이터 : spriteItem
@@ -735,6 +756,27 @@ popup.on('submit', (soundItems) => {
735
756
// 'play' 이벤트로 재생되던 소리를 중지
736
757
Entry .Utils .forceStopSounds ();
737
758
}
759
+
760
+ popup .show ({ type: ' sprite' }, {
761
+ sidebar: {
762
+ people: {
763
+ id: " aa" ,
764
+ name: " 사람" ,
765
+ value: " people" ,
766
+ sub: {
767
+ all: {" id" : " " ," name" : " 전체" ," value" : " all" }
768
+ }
769
+ },
770
+ },
771
+ data: {
772
+ data: [
773
+ {
774
+ " id" : " 오브젝트 고유id" ,
775
+ ... 샘플데이터
776
+ }
777
+ ]
778
+ }
779
+ })
738
780
` ` `
739
781
740
782
#### 샘플 데이터 : soundItem
@@ -1416,44 +1458,44 @@ const removeAllEventListener = Entry.removeAllEventListener.bind(Entry);
1416
1458
// '오브젝트 추가하기' 클릭시 dispatch
1417
1459
removeAllEventListener('openSpriteManager');
1418
1460
addEventListener('openSpriteManager', () => {
1419
- this.popup.show('sprite');
1461
+ this.popup.show({ type: 'sprite' } );
1420
1462
});
1421
1463
// '모양 추가하기' 클릭시 dispatch
1422
1464
removeAllEventListener('openPictureManager');
1423
1465
addEventListener('openPictureManager', () => {
1424
- this.popup.show('picture');
1466
+ this.popup.show({ type: 'picture' } );
1425
1467
});
1426
1468
// '소리 추가하기' 클릭시 dispatch
1427
1469
removeAllEventListener('openSoundManager');
1428
1470
addEventListener('openSoundManager', () => {
1429
- this.popup.show('sound');
1471
+ this.popup.show({ type: 'sound' } );
1430
1472
});
1431
1473
// '인공지능 블록 불러오기' 클릭시 dispatch
1432
1474
removeAllEventListener('openAIUtilizeBlockManager');
1433
1475
addEventListener('openAIUtilizeBlockManager', () => {
1434
1476
// Object.values(Entry.AI_UTILIZE_BLOCK_LIST)
1435
1477
const blocks = this.popup.aiUtilizeBlocks;
1436
- this.popup.show('aiUtilize', blocks);
1478
+ this.popup.show({ type: 'aiUtilize' } , blocks);
1437
1479
});
1438
1480
// '확장 블록 불러오기' 클릭시 dispatch
1439
1481
removeAllEventListener('openExpansionBlockManager');
1440
1482
addEventListener('openExpansionBlockManager', () => {
1441
1483
// Object.values(Entry.EXPANSION_BLOCK_LIST)
1442
1484
const blocks = this.popup.expansionBlocks;
1443
- this.popup.show('expansion', blocks);
1485
+ this.popup.show({ type: 'expansion' } , blocks);
1444
1486
});
1445
1487
// '모양 가져오기' 클릭시 dispatch
1446
1488
removeAllEventListener('openPictureImport');
1447
1489
addEventListener('openPictureImport', () => {
1448
- this.popup.show('paint');
1490
+ this.popup.show({ type: 'paint' } );
1449
1491
});
1450
1492
1451
1493
// 하드웨어 '브라우저로 연결하기' 클릭시 dispatch
1452
1494
removeAllEventListener('openHardwareLiteBlockManager');
1453
1495
addEventListener('openHardwareLiteBlockManager', () => {
1454
1496
// Object.values(Entry.HARDWARE_LITE_LIST)
1455
1497
const blocks = this.popup.hardwareLiteBlocks;
1456
- this.popup.show('hardwareLite', blocks);
1498
+ this.popup.show({ type: 'hardwareLite' } , blocks);
1457
1499
});
1458
1500
` ` ` `
1459
1501
0 commit comments