From 71eedef4faa85a2dc374c7143f31db64ffa08add Mon Sep 17 00:00:00 2001 From: ChiaNing Date: Wed, 9 Aug 2023 11:23:30 +0800 Subject: [PATCH] add sorting & tiled help doc (#15900) * add sorting help doc * add tiled tile doc --- cocos/sorting/sorting.ts | 3 ++- editor/i18n/en/localization.js | 2 ++ editor/i18n/zh/localization.js | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cocos/sorting/sorting.ts b/cocos/sorting/sorting.ts index a6516221c7..23d96b6045 100644 --- a/cocos/sorting/sorting.ts +++ b/cocos/sorting/sorting.ts @@ -22,7 +22,7 @@ THE SOFTWARE. */ -import { ccclass, disallowMultiple, editable, executeInEditMode, menu, range, serializable, type } from 'cc.decorator'; +import { ccclass, disallowMultiple, editable, executeInEditMode, help, menu, range, serializable, type } from 'cc.decorator'; import { clamp } from '../core/math'; import { SortingLayers } from './sorting-layers'; import { Component } from '../scene-graph/component'; @@ -41,6 +41,7 @@ const MIN_INT16 = -1 << 15; */ @ccclass('cc.Sorting') @menu('Sorting/Sorting') +@help('i18n:cc.Sorting') @disallowMultiple @executeInEditMode export class Sorting extends Component { diff --git a/editor/i18n/en/localization.js b/editor/i18n/en/localization.js index 58c8f5f6fe..ac6f45fe48 100755 --- a/editor/i18n/en/localization.js +++ b/editor/i18n/en/localization.js @@ -130,6 +130,7 @@ module.exports = link(mixin({ SafeArea: `${url}/${version}/manual/en/ui-system/components/editor/safearea.html`, Terrain: `${url}/${version}/manual/en/editor/terrain/`, TiledMap: `${url}/${version}/manual/en/editor/components/tiledmap.html`, + TiledTile: `${url}/${version}/manual/en/editor/components/tiledtile.html`, Spine: `${url}/${version}/manual/en/editor/components/spine.html`, DragonBones: `${url}/${version}/manual/en/editor/components/dragonbones.html`, OctreeCulling: `${url}/${version}/manual/en/advanced-topics/native-scene-culling.html`, @@ -145,6 +146,7 @@ module.exports = link(mixin({ Skin: `${url}/${version}/manual/en/shader/advanced-shader/skin.html`, RenderRoot2D: `${url}/${version}/manual/en/ui-system/components/editor/renderroot2d.html`, ReflectionProbe: `${url}/${version}/manual/en/concepts/scene/light/probe/reflection-art-workflow.html`, + Sorting: `${url}/${version}/manual/en/engine/rendering/sorting.html`, }, assets: { javascript: `${url}/${version}/manual/en/concepts/scene/node-component.html`, diff --git a/editor/i18n/zh/localization.js b/editor/i18n/zh/localization.js index 7dd090de51..a2c1052c6f 100755 --- a/editor/i18n/zh/localization.js +++ b/editor/i18n/zh/localization.js @@ -130,6 +130,7 @@ module.exports = link(mixin({ SafeArea: `${url}/${version}/manual/zh/ui-system/components/editor/safearea.html`, Terrain: `${url}/${version}/manual/zh/editor/terrain/`, TiledMap: `${url}/${version}/manual/zh/editor/components/tiledmap.html`, + TiledTile: `${url}/${version}/manual/zh/editor/components/tiledtile.html`, Spine: `${url}/${version}/manual/zh/editor/components/spine.html`, DragonBones: `${url}/${version}/manual/zh/editor/components/dragonbones.html`, OctreeCulling: `${url}/${version}/manual/zh/advanced-topics/native-scene-culling.html`, @@ -145,6 +146,7 @@ module.exports = link(mixin({ Skin: `${url}/${version}/manual/zh/shader/advanced-shader/skin.html`, RenderRoot2D: `${url}/${version}/manual/zh/ui-system/components/editor/renderroot2d.html`, ReflectionProbe: `${url}/${version}/manual/zh/concepts/scene/light/probe/reflection-art-workflow.html`, + Sorting: `${url}/${version}/manual/zh/engine/rendering/sorting.html`, }, assets: { javascript: `${url}/${version}/manual/zh/concepts/scene/node-component.html`,