diff --git a/bower.json b/bower.json index b11e20859..23b735024 100644 --- a/bower.json +++ b/bower.json @@ -6,7 +6,7 @@ "node" ], "dependencies": { - "entry-hw": "https://github.com/entrylabs/entry-hw.git#1.6.10", + "entry-hw": "https://github.com/entrylabs/entry-hw.git#master", "literallycanvas": "https://github.com/entrylabs/literallycanvas.git#master", "socket.io-client": "~1.4.5", "react": "~15.2.0", diff --git a/src/renderer/resource_map/sprites.json b/src/renderer/resource_map/sprites.json index 60aff61af..db6138314 100644 --- a/src/renderer/resource_map/sprites.json +++ b/src/renderer/resource_map/sprites.json @@ -286,7 +286,7 @@ {"_id":"56a710cadc0559aa32de1805","user":"53eef21dce8dd2c54f0cb721","name":"별장","__v":0,"specials":[],"created":"2016-01-26T06:23:06.022Z","sounds":[],"pictures":[{"_id":"56a70e0c13c7a3aa480a7462","filename":"fabf490fc5f96a0e36a7dfc9e6410bc6","name":"별장_1","dimension":{"width":260,"height":124},"label":{"vn":"별장_1","en":"Villa_1","ko":"별장_1"}}],"type":"_system_","category":{"main":"architect","sub":"architect_building"},"label":{"ko":"별장","en":"Villa"}}, {"_id":"55eaeb05e443a90e6afe6056","user":"53eef21dce8dd2c54f0cb721","name":"태블릿","__v":0,"specials":[],"created":"2015-09-05T13:15:49.619Z","sounds":[],"pictures":[{"_id":"53e72ac4065556133b249525","filename":"b1d2739e2a728cb77a2fa1bc6b02b53b","name":"태블릿_1","dimension":{"height":198,"width":256},"label":{"en":"Tablet_1","ko":"태블릿_1"}}],"type":"_system_","category":{"main":"interface"},"label":{"ko":"태블릿","en":"Tablet"}}, {"_id":"56cb37d5fc051ddf4ba60feb","__v":0,"name":"감나무","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T16:31:17.929Z","sounds":[],"pictures":[{"_id":"56ca1499fc051ddf4ba60e04","filename":"d0ccb62f7ea88d33a52afad723ee451b","name":"감나무_1","dimension":{"height":243,"width":234},"label":{"en":"Persimmon Tree_1","ko":"감나무_1","vn":"감나무_1"}}],"type":"_system_","category":{"main":"plant","sub":"plant_tree"},"label":{"ko":"감나무","en":"Persimmon Tree"}}, -{"_id":"56554620b8f8f8bf0de2937a","user":"5458c25ad9c27d816141f8d5","name":"노란LED","__v":0,"specials":[],"created":"2015-11-25T05:24:48.727Z","sounds":[],"pictures":[{"_id":"54ab3659a30591ac5078497a","filename":"fb6f0ca9c144adceb89f06ed501823e5","name":"노란LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"노란LED켜진","en":"YellowLED_on","ko":"노란LED_켜짐"}},{"_id":"54ab364ca30591ac50784979","filename":"b1bf449185cfb08cce024b8c7762e498","name":"노란LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"노란LED꺼진","en":"YellowLED_off","ko":"노란LED_꺼짐"}}],"type":"_system_","category":{"main":"environment","sub":"environment_others"},"label":{"ko":"노란LED","en":"Yellow LED"}}, +{"_id":"56554620b8f8f8bf0de2937a","user":"5458c25ad9c27d816141f8d5","name":"노란LED","__v":0,"specials":[],"created":"2015-11-25T05:24:48.727Z","sounds":[],"pictures":[{"_id":"54ab3659a30591ac5078497a","filename":"fb6f0ca9c144adceb89f06ed501823e5","name":"노란LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"노란LED켜진","en":"YellowLED_on","ko":"노란LED_켜짐"}},{"_id":"54ab364ca30591ac50784979","filename":"b1bf449185cfb08cce024b8c7762e498","name":"노란LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"노란LED꺼진","en":"YellowLED_off","ko":"노란LED_꺼짐"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_others"},"label":{"ko":"노란LED","en":"Yellow LED"}}, {"_id":"56c1676b20eaaec70f32b49f","user":"53eef21dce8dd2c54f0cb721","name":"우유1L","__v":0,"specials":[],"created":"2016-02-15T05:51:39.376Z","sounds":[],"pictures":[{"_id":"56c15a770859691e4f9cc337","filename":"d32590456ba1a17c7643f957683230fe","name":"우유1L_1","dimension":{"width":114,"height":202},"label":{"vn":"우유900ml_1","en":"Milk1L_1","ko":"우유1L_1"}}],"type":"_system_","category":{"main":"food","sub":"food_drink"},"label":{"ko":"우유1L","en":"Milk1L"}}, {"_id":"55eea4da797ec6181f53b37a","user":"5458c25ad9c27d816141f8d5","name":"세계지도 - 아시아","__v":1,"specials":[],"created":"2015-09-08T09:05:30.228Z","sounds":[],"pictures":[{"_id":"55eea2e26d6f47a12f17b42c","filename":"b2a2380413d1bbe226108a64d31ade86","name":"세계지도 - 아시아_1","dimension":{"width":560,"height":332},"label":{"vn":"세계지도-아시아_1","en":"World Map - Asia_1","ko":"세계지도 - 아시아_1"}},{"_id":"55eea2e36d6f47a12f17b42d","filename":"9a5ce045361cd1defce490e496f68abb","name":"세계지도 - 아시아_2","dimension":{"width":560,"height":332},"label":{"vn":"세계지도-아시아_2","en":"World Map - Asia_2","ko":"세계지도 - 아시아_2"}},{"_id":"56dfd149620af2ed4e008f3b","filename":"4d2a9b71168a0562c8d3ec878aa5e803","name":"세계지도 - 아시아_3","dimension":{"width":560,"height":332},"label":{"vn":"세계지도-아시아_3","en":"World Map - Asia_3","ko":"세계지도 - 아시아_3"}}],"type":"_system_","category":{"main":"environment","sub":"environment_others"},"label":{"ko":"세계지도 - 아시아","en":"World Map - Asia"}}, {"_id":"55e93a7be443a90e6afe5f21","user":"53eef21dce8dd2c54f0cb721","name":"약병","__v":0,"specials":[],"created":"2015-09-04T06:30:19.211Z","sounds":[],"pictures":[{"_id":"53f335717414ccbd1641f76b","filename":"9640b561119eb4fd2c3e424f5ecdff58","name":"약병_1","dimension":{"height":322,"width":158},"label":{"en":"Pill Container_1","ko":"약병_1"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_living"},"label":{"ko":"약병","en":"Pill Container"}}, @@ -319,7 +319,7 @@ {"_id":"56cb4d59fc051ddf4ba610be","__v":0,"name":"과자집","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T18:03:05.152Z","sounds":[],"pictures":[{"_id":"56ca21c5fc051ddf4ba60f04","filename":"a75396156131b149060cd8cccd2427aa","name":"과자집_1","dimension":{"height":244,"width":241},"label":{"en":"Gingerbread House_1","ko":"과자집_1","vn":"헨젤과그"}}],"type":"_system_","category":{"main":"fantasy"},"label":{"ko":"과자집","en":"Gingerbread House"}}, {"_id":"55eac16fe443a90e6afe5fbb","user":"53eef21dce8dd2c54f0cb721","name":"방","__v":0,"specials":[],"created":"2015-09-05T10:18:23.415Z","sounds":[],"pictures":[{"_id":"534560c119e9dc00001a39c8","filename":"bf548e4e6b8c58b45900ae5167b9ef3c","name":"방_1","dimension":{"height":475,"width":960},"label":{"en":"Room_1","ko":"방_1"}}],"type":"_system_","category":{"main":"background","sub":"background_indoor"},"label":{"ko":"방","en":"Room"}}, {"_id":"55eaaaeae443a90e6afe5f4e","user":"53eef21dce8dd2c54f0cb721","name":"교탁","__v":0,"specials":[],"created":"2015-09-05T08:42:18.743Z","sounds":[],"pictures":[{"_id":"53f3359b7414ccbd1641f877","filename":"bc50147a2b9c343301d94a33a14e3a00","name":"교탁_1","dimension":{"height":215,"width":265},"label":{"en":"Lecture Desk_1","ko":"교탁_1"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_others"},"label":{"ko":"교탁","en":"Lecture Desk"}}, -{"_id":"56554635b8f8f8bf0de2937c","user":"5458c25ad9c27d816141f8d5","name":"빨간LED","__v":0,"specials":[],"created":"2015-11-25T05:25:09.507Z","sounds":[],"pictures":[{"_id":"54ab363aa30591ac50784977","filename":"eeaa63731e36342cbe7121eabdf1d878","name":"빨간LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"빨간LED켜진","en":"RedLED_on","ko":"빨간LED_켜짐"}},{"_id":"54ab3643a30591ac50784978","filename":"fd9613efcdae10d6b171c6e057994e9b","name":"빨간LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"빨간LED꺼진","en":"RedLED_off","ko":"빨간LED_꺼짐"}}],"type":"_system_","category":{"main":"environment","sub":"environment_others"},"label":{"ko":"빨간LED","en":"Red LED"}}, +{"_id":"56554635b8f8f8bf0de2937c","user":"5458c25ad9c27d816141f8d5","name":"빨간LED","__v":0,"specials":[],"created":"2015-11-25T05:25:09.507Z","sounds":[],"pictures":[{"_id":"54ab363aa30591ac50784977","filename":"eeaa63731e36342cbe7121eabdf1d878","name":"빨간LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"빨간LED켜진","en":"RedLED_on","ko":"빨간LED_켜짐"}},{"_id":"54ab3643a30591ac50784978","filename":"fd9613efcdae10d6b171c6e057994e9b","name":"빨간LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"빨간LED꺼진","en":"RedLED_off","ko":"빨간LED_꺼짐"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_others"},"label":{"ko":"빨간LED","en":"Red LED"}}, {"_id":"55e90200e443a90e6afe5e96","user":"53eef21dce8dd2c54f0cb721","name":"문어(1)","__v":0,"specials":[],"created":"2015-09-04T02:29:20.580Z","sounds":[],"pictures":[{"_id":"53de2dd115de34cd1163718b","filename":"42aeb50697c14d85bab10af7302197d2","name":"문어(1)_1","dimension":{"height":533,"width":490},"label":{"en":"Octopus(1)_1","ko":"문어(1)_1"}},{"_id":"53f335627414ccbd1641f706","filename":"cbcbc04c456904b2554f68ff7d639d59","name":"문어(1)_2","dimension":{"height":320,"width":160},"label":{"en":"Octopus(1)_2","ko":"문어(1)_2"}},{"_id":"53f3356f7414ccbd1641f762","filename":"f994ae761580e118085c873e62123da7","name":"문어(1)_3","dimension":{"height":267,"width":160},"label":{"en":"Octopus(1)_3","ko":"문어(1)_3"}}],"type":"_system_","category":{"main":"animal","sub":"animal_water"},"label":{"ko":"문어(1)","en":"Octopus(1)"}}, {"_id":"5846164810f42806f3165233","user":"53eef21dce8dd2c54f0cb721","name":"시계 판","__v":0,"specials":[],"created":"2016-12-06T01:37:12.504Z","sounds":[],"pictures":[{"_id":"584614fef43ddd6a84b75d1a","filename":"90e3c08e9b8f590eec341ddfee5c6cf0","name":"시계 판_1","dimension":{"width":236,"height":236},"label":{"vn":"시계 판_1.png","en":"Clock Board_1","ko":"시계 판_1"}},{"_id":"584614fef43ddd6a84b75d1b","filename":"1d8fbe0fa6f57552bbcb1ad580889d28","name":"시계 판_2","dimension":{"width":222,"height":222},"label":{"vn":"시계 판_2.png","en":"Clock Board_2","ko":"시계 판_2"}},{"_id":"584614fef43ddd6a84b75d1c","filename":"fa2740c36d002a4bee516b12852a58e3","name":"시계 판_3","dimension":{"width":228,"height":228},"label":{"vn":"시계 판_3.png","en":"Clock Board_3","ko":"시계 판_3"}},{"_id":"584614fef43ddd6a84b75d1d","filename":"93e4efbc275dfc51b5b2307a538135f4","name":"시계 판_4","dimension":{"width":220,"height":220},"label":{"vn":"시계 판_4.png","en":"Clock Board_4","ko":"시계 판_4"}},{"_id":"584614fef43ddd6a84b75d22","filename":"9517b6fc0ada689650f206084e221061","name":"시계 판_5","dimension":{"width":201,"height":201},"label":{"vn":"시계 판_5.png","en":"Clock Board_5","ko":"시계 판_5"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_living"},"label":{"ko":"시계 판","en":"Clock Board"}}, {"_id":"55eafd2de443a90e6afe607a","user":"53eef21dce8dd2c54f0cb721","name":"드럼 - 크래쉬심벌","__v":0,"specials":[],"created":"2015-09-05T14:33:17.090Z","sounds":[],"pictures":[{"_id":"553371df7c12df1948712caa","filename":"faa5ecad52b7fef75d42dc906db4984b","name":"드럼 - 크래쉬심벌_1","dimension":{"width":104,"height":287},"label":{"vn":"크래쉬심벌1","en":"Drum - crash symbol_1","ko":"드럼 - 크래쉬심벌_1"}},{"_id":"553371df7c12df1948712ca8","filename":"bdfcf63cf9f82e1640d5e57bfdd77ebb","name":"드럼 - 크래쉬심벌_2","dimension":{"width":104,"height":287},"label":{"vn":"크래쉬심벌2","en":"Drum - crash symbol_2","ko":"드럼 - 크래쉬심벌_2"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_hobby"},"label":{"ko":"드럼 - 크래쉬심벌","en":"Drum - crash symbol"}}, @@ -365,7 +365,7 @@ {"_id":"56cb49aafc051ddf4ba610a6","__v":0,"name":"마법의 약","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T17:47:22.215Z","sounds":[],"pictures":[{"_id":"56ca20cafc051ddf4ba60ee4","filename":"4736c4d0847c750502dc718ed116a3a9","name":"마법의 약_1","dimension":{"height":241,"width":130},"label":{"en":"Magic Potion_1","ko":"마법의 약_1","vn":"마법의약"}}],"type":"_system_","category":{"main":"fantasy"},"label":{"ko":"마법의 약","en":"Magic Potion"}}, {"_id":"56cb4048fc051ddf4ba61060","__v":0,"name":"김치찌개","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T17:07:20.287Z","sounds":[],"pictures":[{"_id":"56ca1b75fc051ddf4ba60e83","filename":"9668f30b9708d85da57110b218ce47bb","name":"김치찌개_1","dimension":{"height":177,"width":239},"label":{"en":"Kimchi Soup_1","ko":"김치찌개_1","vn":"김치찌개_"}}],"type":"_system_","category":{"main":"food","sub":"food_others"},"label":{"ko":"김치찌개","en":"Kimchi Soup"}}, {"_id":"56cb56dafc051ddf4ba6113a","__v":0,"name":"시골길","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T18:43:38.468Z","sounds":[],"pictures":[{"_id":"56ca314dfc051ddf4ba60f8a","filename":"6deebbf64828b0f5045f200f59818b7a","name":"시골길_1","dimension":{"height":540,"width":960},"label":{"en":"Country Road_1","ko":"시골길_1","vn":"시골길_1"}}],"type":"_system_","category":{"main":"background","sub":"background_nature"},"label":{"ko":"시골길","en":"Country Road"}}, -{"_id":"56554680b8f8f8bf0de2937e","user":"5458c25ad9c27d816141f8d5","name":"파란LED","__v":0,"specials":[],"created":"2015-11-25T05:26:24.592Z","sounds":[],"pictures":[{"_id":"54ab3677a30591ac5078497d","filename":"6bd6780af6d2f686cb603601b4d842c0","name":"파란LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"파란LED켜진","en":"BlueLED_on","ko":"파란LED_켜짐"}},{"_id":"54ab367fa30591ac5078497e","filename":"053a6243d82871c5089c0252d57b3283","name":"파란LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"파란LED꺼진","en":"BlueLED_off","ko":"파란LED_꺼짐"}}],"type":"_system_","category":{"main":"environment","sub":"environment_others"},"label":{"ko":"파란LED","en":"Blue LED"}}, +{"_id":"56554680b8f8f8bf0de2937e","user":"5458c25ad9c27d816141f8d5","name":"파란LED","__v":0,"specials":[],"created":"2015-11-25T05:26:24.592Z","sounds":[],"pictures":[{"_id":"54ab3677a30591ac5078497d","filename":"6bd6780af6d2f686cb603601b4d842c0","name":"파란LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"파란LED켜진","en":"BlueLED_on","ko":"파란LED_켜짐"}},{"_id":"54ab367fa30591ac5078497e","filename":"053a6243d82871c5089c0252d57b3283","name":"파란LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"파란LED꺼진","en":"BlueLED_off","ko":"파란LED_꺼짐"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_others"},"label":{"ko":"파란LED","en":"Blue LED"}}, {"_id":"55e91e72e443a90e6afe5ed0","user":"53eef21dce8dd2c54f0cb721","name":"눈사람","__v":0,"specials":[],"created":"2015-09-04T04:30:42.526Z","sounds":[],"pictures":[{"_id":"53f3358e7414ccbd1641f821","filename":"4348408fca10fbb9571413911d75f128","name":"눈사람_1","dimension":{"height":270,"width":210},"label":{"en":"Snowman_1","ko":"눈사람_1"}}],"type":"_system_","category":{"main":"fantasy"},"label":{"ko":"눈사람","en":"Snowman"}}, {"_id":"56d3ad8efc051ddf4ba6116a","__v":0,"name":"짧은 해파리","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-29T02:31:42.633Z","sounds":[],"pictures":[{"_id":"56ca10c3fc051ddf4ba60dd2","filename":"87ad4456c2e24c039c8558ee8ad1d1bb","name":"짧은 해파리_1","dimension":{"height":250,"width":250},"label":{"en":"Short Jellyfish_1","ko":"짧은 해파리_1","vn":"해파리_짧"}}],"type":"_system_","category":{"main":"animal","sub":"animal_water"},"label":{"ko":"짧은 해파리","en":"Short Jellyfish"}}, {"_id":"56cb3712fc051ddf4ba60fda","__v":0,"name":"아귀","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T16:28:02.827Z","sounds":[],"pictures":[{"_id":"56ca10c0fc051ddf4ba60dcc","filename":"675618e69f4252c0a54f05a2349db9fa","name":"아귀_1","dimension":{"height":156,"width":232},"label":{"en":"Anglerfish_1","ko":"아귀_1","vn":"아귀_1"}},{"_id":"56ca10c1fc051ddf4ba60dcd","filename":"5e62f463d69ad72d5ae569e0327d1b93","name":"아귀_2","dimension":{"height":185,"width":241},"label":{"en":"Anglerfish_2","ko":"아귀_2","vn":"아귀_2"}}],"type":"_system_","category":{"main":"animal","sub":"animal_water"},"label":{"ko":"아귀","en":"Anglerfish"}}, @@ -1044,7 +1044,7 @@ {"_id":"55e82ad6e443a90e6afe5e22","user":"53eef21dce8dd2c54f0cb721","name":"한국 무용수","__v":0,"specials":[],"created":"2015-09-03T11:11:18.823Z","sounds":[],"pictures":[{"_id":"53f335887414ccbd1641f7f7","filename":"226023d086c22bad69eaf03f517efa9f","name":"한국 무용수_1","dimension":{"height":352,"width":128},"label":{"en":"Dancer_1","ko":"한국 무용수_1"}},{"_id":"53f335967414ccbd1641f856","filename":"cd1372a6cc234738d9a0d4665c656530","name":"한국 무용수_2","dimension":{"height":352,"width":196},"label":{"en":"Dancer_2","ko":"한국 무용수_2"}},{"_id":"53f335a47414ccbd1641f8b4","filename":"aa5e131cd37de033fd145ed710ed8821","name":"한국 무용수_3","dimension":{"height":352,"width":210},"label":{"en":"Dancer_3","ko":"한국 무용수_3"}},{"_id":"53f335a57414ccbd1641f8ba","filename":"9ad613fdff2d8edfcd11edfa8aacd955","name":"한국 무용수_4","dimension":{"height":352,"width":156},"label":{"en":"Dancer_4","ko":"한국 무용수_4"}}],"type":"_system_","category":{"main":"people"},"label":{"ko":"한국 무용수","en":"Dancer"}}, {"_id":"5846162410f42806f3165231","user":"53eef21dce8dd2c54f0cb721","name":"시계 줄","__v":0,"specials":[],"created":"2016-12-06T01:36:36.830Z","sounds":[],"pictures":[{"_id":"584614fef43ddd6a84b75d1e","filename":"8018da49abbfd3bac07f235cae6b3aa5","name":"시계 줄_1","dimension":{"width":66,"height":540},"label":{"vn":"시계 줄_1.png","en":"Watch Band_1","ko":"시계 줄_1"}},{"_id":"584614fef43ddd6a84b75d1f","filename":"9f18db4b6cd62f76201aa5ffbe1fe8fc","name":"시계 줄_2","dimension":{"width":92,"height":540},"label":{"vn":"시계 줄_2.png","en":"Watch Band_2","ko":"시계 줄_2"}},{"_id":"584614fef43ddd6a84b75d21","filename":"1e960f92a27cb6e4141c9edb30d7b940","name":"시계 줄_3","dimension":{"width":66,"height":540},"label":{"vn":"시계 줄_3.png","en":"Watch Band_3","ko":"시계 줄_3"}},{"_id":"584614fef43ddd6a84b75d20","filename":"4c0096fc8e269fc163d7719cc1b8b82e","name":"시계 줄_4","dimension":{"width":68,"height":540},"label":{"vn":"시계 줄_4.png","en":"Watch Band_4","ko":"시계 줄_4"}},{"_id":"584614fef43ddd6a84b75d19","filename":"ef196abed5b5da6ed7c71a8d39912969","name":"시계 줄_5","dimension":{"width":70,"height":540},"label":{"vn":"시계 줄_5.png","en":"Watch Band_5","ko":"시계 줄_5"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_living"},"label":{"ko":"시계 줄","en":"Watch Band"}}, {"_id":"55e96f49e443a90e6afe5f46","user":"53eef21dce8dd2c54f0cb721","name":"크레파스","__v":2,"specials":[],"created":"2015-09-04T10:15:37.635Z","sounds":[],"pictures":[{"_id":"5508cec374ead6267ba54ad3","filename":"07959ad9b02df0abc1650637e567df13","name":"크레파스_빨강","dimension":{"width":62,"height":244},"label":{"vn":"크레파스1","en":"Crayon_Red","ko":"크레파스_빨강"}},{"_id":"5508cec274ead6267ba54ad1","filename":"83e2db854d8c539bd6eb4e6a78fce7eb","name":"크레파스_노랑","dimension":{"width":62,"height":245},"label":{"vn":"크레파스2","en":"Crayon_Yellow","ko":"크레파스_노랑"}},{"_id":"5508cec274ead6267ba54ad2","filename":"1cabae3211e845cfbce2c2578c97bb25","name":"크레파스_파랑","dimension":{"width":62,"height":245},"label":{"vn":"크레파스3","en":"Crayon_Blue","ko":"크레파스_파랑"}},{"_id":"5508cec374ead6267ba54ad6","filename":"e9691b5f6f31d8aac856e7c564950cb1","name":"크레파스_검정","dimension":{"width":62,"height":245},"label":{"vn":"크레파스4","en":"Crayon_Black","ko":"크레파스_검정"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_hobby"},"label":{"ko":"크레파스","en":"Crayon"}}, -{"_id":"56554669b8f8f8bf0de2937d","user":"5458c25ad9c27d816141f8d5","name":"초록LED","__v":0,"specials":[],"created":"2015-11-25T05:26:01.139Z","sounds":[],"pictures":[{"_id":"54ab366da30591ac5078497c","filename":"2c335665881fc4c55dad3e237c0a0da7","name":"초록LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"초록LED켜진","en":"GreenLED_on","ko":"초록LED_켜짐"}},{"_id":"54ab3662a30591ac5078497b","filename":"c3d51dc13a3fdd4d999f4d7b16145738","name":"초록LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"초록LED꺼진","en":"GreenLED_off","ko":"초록LED_꺼짐"}}],"type":"_system_","category":{"main":"environment","sub":"environment_others"},"label":{"ko":"초록LED","en":"Green LED"}}, +{"_id":"56554669b8f8f8bf0de2937d","user":"5458c25ad9c27d816141f8d5","name":"초록LED","__v":0,"specials":[],"created":"2015-11-25T05:26:01.139Z","sounds":[],"pictures":[{"_id":"54ab366da30591ac5078497c","filename":"2c335665881fc4c55dad3e237c0a0da7","name":"초록LED_켜짐","dimension":{"height":340,"width":350},"label":{"vn":"초록LED켜진","en":"GreenLED_on","ko":"초록LED_켜짐"}},{"_id":"54ab3662a30591ac5078497b","filename":"c3d51dc13a3fdd4d999f4d7b16145738","name":"초록LED_꺼짐","dimension":{"height":211,"width":179},"label":{"vn":"초록LED꺼진","en":"GreenLED_off","ko":"초록LED_꺼짐"}}],"type":"_system_","category":{"main":"stuff","sub":"stuff_others"},"label":{"ko":"초록LED","en":"Green LED"}}, {"_id":"56cb5759fc051ddf4ba61144","__v":0,"name":"미래 도시","user":"56b2f0052d7146c949202baa","specials":[],"created":"2016-02-22T18:45:45.911Z","sounds":[],"pictures":[{"_id":"56ca31acfc051ddf4ba60f94","filename":"13aa75299e27160ace190ec452cb13bf","name":"미래 도시_1","dimension":{"height":540,"width":960},"label":{"en":"City of Future_1","ko":"미래 도시_1","vn":"미래도시_1"}}],"type":"_system_","category":{"main":"background","sub":"background_outdoor"},"label":{"ko":"미래 도시","en":"City of Future"}}, {"_id":"55e90e24e443a90e6afe5ebb","user":"53eef21dce8dd2c54f0cb721","name":"파란 비행기","__v":0,"specials":[],"created":"2015-09-04T03:21:08.893Z","sounds":[],"pictures":[{"_id":"53f3359b7414ccbd1641f879","filename":"7efeda8d2a4c06b6cede50d0dc7fd7c2","name":"파란 비행기_오른","dimension":{"height":143,"width":337},"label":{"en":"Blue Flight_right","ko":"파란 비행기_오른"}},{"_id":"534558ce19e9dc00001a3970","filename":"dcba89f85651d3c7ff8e2a4447190078","name":"파란 비행기_왼","dimension":{"height":106,"width":251},"label":{"en":"Blue Flight_left","ko":"파란 비행기_왼"}},{"_id":"53f335617414ccbd1641f6fe","filename":"82fe90330e1fd7f702bf9686ad1d74c4","name":"파란 비행기_위","dimension":{"height":190,"width":252},"label":{"en":"Blue Flight_top","ko":"파란 비행기_위"}}],"type":"_system_","category":{"main":"vehicles","sub":"vehicles_flying"},"label":{"ko":"파란 비행기","en":"Blue Flight"}}, {"_id":"55e8822ee443a90e6afe5e57","user":"5458c25ad9c27d816141f8d5","name":"회사원(2)","__v":1,"specials":[],"created":"2015-09-03T17:23:58.245Z","sounds":[],"pictures":[{"_id":"53f3357d7414ccbd1641f7b7","filename":"1c31715e2dfbb9cbe17307dd1b593a35","name":"회사원(2)_1","dimension":{"height":334,"width":146},"label":{"en":"Office worker(2)_1","ko":"회사원(2)_1"}},{"_id":"53f3358c7414ccbd1641f817","filename":"bd82ae37d8403d1ab98a0d8975dc472a","name":"회사원(2)_2","dimension":{"height":335,"width":143},"label":{"en":"Office worker(2)_2","ko":"회사원(2)_2"}},{"_id":"53f3359b7414ccbd1641f874","filename":"e0fbf21e4040b369b21133417e711153","name":"회사원(2)_3","dimension":{"height":340,"width":243},"label":{"en":"Office worker(2)_3","ko":"회사원(2)_3"}},{"_id":"53f335607414ccbd1641f6e7","filename":"db44bdcf4a213bdb667de8e5d4b36fbc","name":"회사원(2)_4","dimension":{"height":340,"width":242},"label":{"en":"Office worker(2)_4","ko":"회사원(2)_4"}}],"type":"_system_","category":{"main":"people"},"label":{"ko":"회사원(2)","en":"Office worker(1)"}}, diff --git a/src/renderer/src/workspace.js b/src/renderer/src/workspace.js index fdd32e274..f541d02ef 100644 --- a/src/renderer/src/workspace.js +++ b/src/renderer/src/workspace.js @@ -83,6 +83,26 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS }) } + Entry.playground.downloadSound = function (soundId) { + var sound = Entry.playground.object.getSound(soundId); + let fileurl; + let ext = sound.ext || '.mp3'; + + if (sound.fileurl) { + fileurl = sound.fileurl; + } else { + let url = sound.filename; + fileurl = path.resolve(__rendererPath, 'node_modules', 'uploads', url.substr(0, 2), url.substr(2, 2), 'sound', `${url}${ext}`); + } + const soundInfo = path.parse(fileurl); + + Util.saveFileDialog(fileurl, `${sound.name}${soundInfo.ext}`, (err)=> { + if(err) { + console.log(err); + } + }) + } + Entry.playground.board._contextOptions[3].option.callback = function() { Util.showOpenDialog({ properties: [