Skip to content

Commit

Permalink
CategoryInfo add required property (#17803)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc authored Nov 5, 2024
1 parent 1a9a727 commit 3102bda
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 16 deletions.
76 changes: 61 additions & 15 deletions editor/engine-features/render-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"description": "i18n:ENGINE.features.base_3d.description",
"enginePlugin": true,
"isNativeModule": true,
"readonly": true,
"readonly": false,
"dependencies": [
"meshopt"
],
Expand All @@ -62,7 +62,7 @@
"label": "i18n:ENGINE.features.base_2d.label",
"description": "i18n:ENGINE.features.base_2d.description",
"category": "2d",
"readonly": true,
"readonly": false,
"enginePlugin": true
},
"xr": {
Expand All @@ -76,19 +76,28 @@
"label": "i18n:ENGINE.features.ui.label",
"description": "i18n:ENGINE.features.ui.description",
"category": "2d",
"dependencies": [
"2d"
],
"enginePlugin": true
},
"particle": {
"default": true,
"label": "i18n:ENGINE.features.particle.label",
"description": "i18n:ENGINE.features.particle.description",
"category": "3d",
"dependencies": [
"3d"
],
"enginePlugin": true
},
"physics": {
"label": "i18n:ENGINE.features.physics.label",
"description": "i18n:ENGINE.features.physics.description",
"category": "3d",
"dependencies": [
"3d"
],
"options": {
"physics-ammo": {
"label": "i18n:ENGINE.features.physics_ammo.label",
Expand Down Expand Up @@ -116,6 +125,9 @@
"label": "i18n:ENGINE.features.physics_2d.label",
"description": "i18n:ENGINE.features.physics_2d.description",
"category": "2d",
"dependencies": [
"2d"
],
"options": {
"physics-2d-box2d": {
"label": "i18n:ENGINE.features.physics_2d_box2d.label",
Expand All @@ -134,14 +146,20 @@
"label": "i18n:ENGINE.features.intersection_2d.label",
"description": "i18n:ENGINE.features.intersection_2d.description",
"enginePlugin": true,
"category": "2d"
"category": "2d",
"dependencies": [
"2d"
]
},
"primitive": {
"default": true,
"label": "i18n:ENGINE.features.primitives.label",
"description": "i18n:ENGINE.features.primitives.description",
"enginePlugin": true,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"profiler": {
"default": true,
Expand All @@ -155,30 +173,42 @@
"description": "i18n:ENGINE.features.occlusion_query.description",
"cmakeConfig": "USE_OCCLUSION_QUERY",
"enginePlugin": false,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"geometry-renderer": {
"default": false,
"label": "i18n:ENGINE.features.geometry_renderer.label",
"description": "i18n:ENGINE.features.geometry_renderer.description",
"cmakeConfig": "USE_GEOMETRY_RENDERER",
"enginePlugin": true,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"debug-renderer": {
"default": false,
"label": "i18n:ENGINE.features.debug_renderer.label",
"description": "i18n:ENGINE.features.debug_renderer.description",
"cmakeConfig": "USE_DEBUG_RENDERER",
"enginePlugin": false,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"particle-2d": {
"default": true,
"label": "i18n:ENGINE.features.particle_2d.label",
"description": "i18n:ENGINE.features.particle_2d.description",
"enginePlugin": true,
"category": "2d"
"category": "2d",
"dependencies": [
"2d"
]
},
"audio": {
"default": true,
Expand Down Expand Up @@ -228,21 +258,30 @@
"label": "i18n:ENGINE.features.terrain.label",
"description": "i18n:ENGINE.features.terrain.description",
"enginePlugin": true,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"light-probe": {
"default": true,
"label": "i18n:ENGINE.features.light_probe.label",
"description": "i18n:ENGINE.features.light_probe.description",
"enginePlugin": true,
"category": "3d"
"category": "3d",
"dependencies": [
"3d"
]
},
"tiled-map": {
"default": true,
"label": "i18n:ENGINE.features.tiled_map.label",
"description": "i18n:ENGINE.features.tiled_map.description",
"enginePlugin": true,
"category": "2d"
"category": "2d",
"dependencies": [
"2d"
]
},
"spine": {
"default": true,
Expand All @@ -251,15 +290,21 @@
"cmakeConfig": "USE_SPINE",
"isNativeModule": true,
"enginePlugin": true,
"category": "2d"
"category": "2d",
"dependencies": [
"2d"
]
},
"dragon-bones": {
"default": true,
"label": "i18n:ENGINE.features.dragon_bones.label",
"description": "i18n:ENGINE.features.dragon_bones.description",
"cmakeConfig": "USE_DRAGONBONES",
"enginePlugin": true,
"category": "2d"
"category": "2d",
"dependencies": [
"2d"
]
},
"marionette": {
"default": true,
Expand Down Expand Up @@ -304,7 +349,8 @@
"graphics": {
"label": "i18n:ENGINE.features.graphics.label",
"description": "i18n:ENGINE.features.graphics.description",
"checkable": true
"checkable": true,
"required": true
},
"2d": {
"label": "i18n:ENGINE.features.categories.2d.label",
Expand All @@ -327,4 +373,4 @@
"checkable": true
}
}
}
}
4 changes: 3 additions & 1 deletion editor/engine-features/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
},
"label": {
"type": "string"
},
"required": {
"type": "boolean"
}
},
"type": "object"
Expand Down Expand Up @@ -406,4 +409,3 @@
},
"type": "object"
}

1 change: 1 addition & 0 deletions editor/engine-features/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ export interface CategoryInfo {
label?: string;
description?: string;
checkable?: boolean;
required?: boolean;
}

0 comments on commit 3102bda

Please sign in to comment.