ccc-devtools/config.js

54 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2018-12-29 13:04:53 +00:00
const NEX_CONFIG = {
nodeSchema: {
2018-12-29 13:04:53 +00:00
node2d: {
title: 'Node',
key: 'cc.Node',
2018-12-29 13:04:53 +00:00
rows: [
2020-04-06 16:51:08 +00:00
{ name: 'Name', key: 'name', type: 'text' },
{ name: 'X', key: 'x', type: 'number' },
{ name: 'Y', key: 'y', type: 'number' },
{ name: 'Width', key: 'width', type: 'number' },
{ name: 'Height', key: 'height', type: 'number' },
{ name: 'Angle', key: 'angle', type: 'number' },
{ name: 'ScaleX', key: 'scaleX', type: 'number' },
{ name: 'ScaleY', key: 'scaleY', type: 'number' },
{ name: 'Opacity', key: 'opacity', type: 'number' },
{ name: 'Color', key: 'hex_color', type: 'color' },
{ name: 'Group', key: 'group', type: 'text' },
2018-12-29 13:04:53 +00:00
]
},
node3d: {
title: 'Node',
key: 'cc.Node',
rows: [
2020-04-06 16:51:08 +00:00
// TODO:
]
2018-12-29 13:04:53 +00:00
},
},
componentsSchema: {
'cc.Camera': {
title: 'cc.Camera',
key: 'cc.Camera',
rows: [
2020-04-06 16:51:08 +00:00
{ name: 'Zoom Ratio', key: 'zoomRatio', type: 'number' },
{ name: 'Depth', key: 'depth', type: 'number' },
{ name: 'Bacground Color', key: 'hex_backgroundColor', rawKey: 'backgroundColor', type: 'color' },
2020-04-13 13:48:47 +00:00
{ name: 'Align with Screen', key: 'alignWithScreen', type: 'bool' },
]
},
'cc.Sprite': {
key: 'cc.Sprite',
title: 'cc.Sprite',
2020-04-06 16:51:08 +00:00
rows: []
},
'cc.Label': {
title: 'cc.Label',
key: 'cc.Label',
rows: [
2020-04-06 16:51:08 +00:00
{ name: 'String', key: 'string', type: 'textarea' },
{ name: 'Font Size', key: 'fontSize', type: 'number' },
{ name: 'Line Height', key: 'lineHeight', type: 'number' },
]
2018-12-29 13:04:53 +00:00
}
}
}