mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-09 22:35:23 +00:00
[engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.12 版本
This commit is contained in:
@@ -39,7 +39,7 @@ if (CC_JSB && CC_NATIVERENDERER) {
|
||||
import renderer from '../renderer/index';
|
||||
import Enum from '../platform/CCEnum';
|
||||
import CCComponent from '../components/CCComponent';
|
||||
import { ccclass, menu, inspector, property, executeInEditMode } from '../platform/CCClassDecorator';
|
||||
import { ccclass, menu, inspector, property, executeInEditMode, help } from '../platform/CCClassDecorator';
|
||||
|
||||
/**
|
||||
* !#en The light source type
|
||||
@@ -140,6 +140,7 @@ const LightShadowType = Enum({
|
||||
@menu('i18n:MAIN_MENU.component.renderers/Light')
|
||||
@executeInEditMode
|
||||
@inspector('packages://inspector/inspectors/comps/light.js')
|
||||
@help('i18n:COMPONENT.help_url.light')
|
||||
export default class Light extends CCComponent {
|
||||
@property
|
||||
_type = LightType.DIRECTIONAL;
|
||||
|
@@ -42,7 +42,7 @@ import { particleEmitZAxis } from './particle-general-function';
|
||||
import TrailModule from './renderer/trail';
|
||||
import Mesh from '../../mesh/CCMesh';
|
||||
|
||||
const { ccclass, menu, property, executeInEditMode, executionOrder} = require('../../platform/CCClassDecorator')
|
||||
const { ccclass, menu, property, executeInEditMode, executionOrder, help } = require('../../platform/CCClassDecorator')
|
||||
const RenderComponent = require('../../components/CCRenderComponent');
|
||||
|
||||
const _world_mat = new Mat4();
|
||||
@@ -66,6 +66,7 @@ const _module_props = CC_EDITOR && [
|
||||
*/
|
||||
@ccclass('cc.ParticleSystem3D')
|
||||
@menu('i18n:MAIN_MENU.component.renderers/ParticleSystem3D')
|
||||
@help('i18n:COMPONENT.help_url.particle-system-3d')
|
||||
@executionOrder(99)
|
||||
@executeInEditMode
|
||||
export default class ParticleSystem3D extends RenderComponent {
|
||||
|
@@ -33,6 +33,7 @@ const {
|
||||
executionOrder,
|
||||
menu,
|
||||
property,
|
||||
help,
|
||||
} = cc._decorator;
|
||||
|
||||
const Vec3 = cc.Vec3;
|
||||
@@ -49,6 +50,7 @@ const Vec3 = cc.Vec3;
|
||||
@executionOrder(98)
|
||||
@menu('i18n:MAIN_MENU.component.physics/Collider/Box 3D')
|
||||
@executeInEditMode
|
||||
@help('i18n:COMPONENT.help_url.physics-collider')
|
||||
export class BoxCollider3D extends Collider3D {
|
||||
|
||||
/// PUBLIC PROPERTY GETTER\SETTER ///
|
||||
|
@@ -33,6 +33,7 @@ const {
|
||||
executionOrder,
|
||||
menu,
|
||||
property,
|
||||
help,
|
||||
} = cc._decorator;
|
||||
|
||||
/**
|
||||
@@ -46,6 +47,7 @@ const {
|
||||
@ccclass('cc.SphereCollider3D')
|
||||
@executionOrder(98)
|
||||
@menu('i18n:MAIN_MENU.component.physics/Collider/Sphere 3D')
|
||||
@help('i18n:COMPONENT.help_url.physics-collider')
|
||||
@executeInEditMode
|
||||
export class SphereCollider3D extends Collider3D {
|
||||
|
||||
|
@@ -33,6 +33,7 @@ const {
|
||||
property,
|
||||
requireComponent,
|
||||
disallowMultiple,
|
||||
help,
|
||||
} = cc._decorator;
|
||||
const Vec3 = cc.Vec3;
|
||||
|
||||
@@ -48,6 +49,7 @@ const Vec3 = cc.Vec3;
|
||||
@executionOrder(98)
|
||||
@requireComponent(RigidBody3D)
|
||||
@menu('i18n:MAIN_MENU.component.physics/Constant Force 3D')
|
||||
@help('i18n:COMPONENT.help_url.constantforce')
|
||||
@disallowMultiple
|
||||
@executeInEditMode
|
||||
export class ConstantForce extends cc.Component {
|
||||
|
@@ -33,6 +33,7 @@ const {
|
||||
executionOrder,
|
||||
menu,
|
||||
property,
|
||||
help,
|
||||
} = cc._decorator;
|
||||
const Vec3 = cc.Vec3;
|
||||
|
||||
@@ -47,6 +48,7 @@ const Vec3 = cc.Vec3;
|
||||
@ccclass('cc.RigidBody3D')
|
||||
@executionOrder(99)
|
||||
@menu('i18n:MAIN_MENU.component.physics/Rigid Body 3D')
|
||||
@help('i18n:COMPONENT.help_url.physics-rigidbody')
|
||||
@executeInEditMode
|
||||
@disallowMultiple
|
||||
export class RigidBody3D extends cc.Component {
|
||||
|
@@ -43,6 +43,7 @@ let SkeletonAnimation = cc.Class({
|
||||
editor: CC_EDITOR && {
|
||||
inspector: 'packages://inspector/inspectors/comps/skeleton-animation.js',
|
||||
menu: 'i18n:MAIN_MENU.component.others/Skeleton Animation',
|
||||
help: 'i18n:COMPONENT.help_url.skeleton-animation',
|
||||
},
|
||||
|
||||
properties: {
|
||||
|
@@ -46,6 +46,7 @@ let SkinnedMeshRenderer = cc.Class({
|
||||
|
||||
editor: CC_EDITOR && {
|
||||
menu: 'i18n:MAIN_MENU.component.mesh/Skinned Mesh Renderer',
|
||||
help: 'i18n:COMPONENT.help_url.skinned-mesh-renderer',
|
||||
},
|
||||
|
||||
ctor () {
|
||||
|
Reference in New Issue
Block a user