config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. const NEX_CONFIG = {
  2. nodeSchema: {
  3. node2d: {
  4. title: 'Node',
  5. key: 'cc.Node',
  6. rows: [
  7. { name: 'Name', key: 'name', type: 'text' },
  8. { name: 'X', key: 'x', type: 'number' },
  9. { name: 'Y', key: 'y', type: 'number' },
  10. { name: 'Width', key: 'width', type: 'number' },
  11. { name: 'Height', key: 'height', type: 'number' },
  12. { name: 'Angle', key: 'angle', type: 'number' },
  13. { name: 'ScaleX', key: 'scaleX', type: 'number' },
  14. { name: 'ScaleY', key: 'scaleY', type: 'number' },
  15. { name: 'Opacity', key: 'opacity', type: 'number' },
  16. { name: 'Color', key: 'hex_color', type: 'color' },
  17. { name: 'Group', key: 'group', type: 'text' },
  18. ]
  19. },
  20. node3d: {
  21. title: 'Node',
  22. key: 'cc.Node',
  23. rows: [
  24. // TODO:
  25. ]
  26. },
  27. },
  28. componentsSchema: {
  29. 'cc.Camera': {
  30. title: 'cc.Camera',
  31. key: 'cc.Camera',
  32. rows: [
  33. { name: 'Zoom Ratio', key: 'zoomRatio', type: 'number' },
  34. { name: 'Depth', key: 'depth', type: 'number' },
  35. { name: 'Bacground Color', key: 'hex_backgroundColor', rawKey: 'backgroundColor', type: 'color' },
  36. { name: 'Align with Screen', key: 'alignWithScreen', type: 'bool' },
  37. ]
  38. },
  39. 'cc.Sprite': {
  40. key: 'cc.Sprite',
  41. title: 'cc.Sprite',
  42. rows: []
  43. },
  44. 'cc.Label': {
  45. title: 'cc.Label',
  46. key: 'cc.Label',
  47. rows: [
  48. { name: 'String', key: 'string', type: 'textarea' },
  49. { name: 'Font Size', key: 'fontSize', type: 'number' },
  50. { name: 'Line Height', key: 'lineHeight', type: 'number' },
  51. ]
  52. }
  53. }
  54. }