Skip to content

Commit

Permalink
2nd merge for new sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongJun-Lee committed Mar 3, 2024
1 parent 074fbd6 commit bf4092e
Show file tree
Hide file tree
Showing 3 changed files with 5,481 additions and 2,920 deletions.
10 changes: 8 additions & 2 deletions src/renderer/resources/db/ExcelToJson_sprites.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
printable.append(temp)
# print(printable)
temp = {}
temp['_id'] = str(item['filename'])
temp['_id'] = str(idx + 1)
temp['name'] = item['ko']
temp['created'] = ''
temp['specials'] = []
temp['sounds'] = []
temp['category'] = {'main': item['main'], 'sub': item['sub']}
temp['category'] = {
'main': item['main'],
}
if item['sub']:
temp['category']['sub'] = item['sub']
temp['label'] = {'ko': item['ko'], 'en': item['en'], 'uz': item['uz'], 'ru': item['ru']}
else:
if not 'pictures' in temp:
Expand All @@ -28,6 +32,8 @@
picture['name'] = item['ko']
picture['filename'] = item['filename']
picture['imageType'] = item['imageType']
# if picture['imageType'] == 'svg':
# temp['hasSvg'] = True
picture['dimension'] = {'width': item['main'], 'height': item['sub']}
picture['label'] = {'ko': item['ko'], 'en': item['en'], 'uz': item['uz'], 'ru': item['ru']}
temp['pictures'].append(picture)
Expand Down
Loading

0 comments on commit bf4092e

Please sign in to comment.