2018-12-29 13:04:53 +00:00
|
|
|
const NEX_CONFIG = {
|
2019-01-04 13:27:06 +00:00
|
|
|
nodeSchema: {
|
2018-12-29 13:04:53 +00:00
|
|
|
node2d: {
|
|
|
|
title: 'Node',
|
2019-01-04 13:27:06 +00:00
|
|
|
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: {
|
2019-01-04 13:27:06 +00:00
|
|
|
title: 'Node',
|
|
|
|
key: 'cc.Node',
|
|
|
|
rows: [
|
2020-04-06 16:51:08 +00:00
|
|
|
// TODO:
|
2019-01-04 13:27:06 +00:00
|
|
|
]
|
2018-12-29 13:04:53 +00:00
|
|
|
},
|
2019-01-04 13:27:06 +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' },
|
2019-01-04 13:27:06 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
'cc.Sprite': {
|
|
|
|
key: 'cc.Sprite',
|
|
|
|
title: 'cc.Sprite',
|
2020-04-06 16:51:08 +00:00
|
|
|
rows: []
|
2019-01-04 13:27:06 +00:00
|
|
|
},
|
|
|
|
'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' },
|
2019-01-04 13:27:06 +00:00
|
|
|
]
|
2018-12-29 13:04:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|