diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 96aea833e2..0fb83f157c 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -296,7 +296,7 @@ var Label = cc.Class({ */ fontFamily: { default: "Arial", - tooltip: 'i18n:COMPONENT.label.font_family', + tooltip: CC_DEV && 'i18n:COMPONENT.label.font_family', notify: function () { if (this._sgNode) { this._sgNode.setFontFileOrFamily(this.fontFamily); diff --git a/cocos2d/core/components/CCStudioComponent.js b/cocos2d/core/components/CCStudioComponent.js index 46e59a3c06..db7253fa94 100644 --- a/cocos2d/core/components/CCStudioComponent.js +++ b/cocos2d/core/components/CCStudioComponent.js @@ -228,7 +228,7 @@ var StudioComponent = cc.Class({ readonly: true, default: true, animatable: false, - tooltip: 'i18n:COMPONENT.scrollview.inertia', + tooltip: CC_DEV && 'i18n:COMPONENT.scrollview.inertia', }, listDirection: { diff --git a/cocos2d/motion-streak/CCMotionStreak.js b/cocos2d/motion-streak/CCMotionStreak.js index 400919e3a6..3c9b680771 100644 --- a/cocos2d/motion-streak/CCMotionStreak.js +++ b/cocos2d/motion-streak/CCMotionStreak.js @@ -95,7 +95,7 @@ var MotionStreak = cc.Class({ } }, animatable: false, - tooltip: 'i18n:COMPONENT.motionStreak.fadeTime' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.fadeTime' }, /** @@ -118,7 +118,7 @@ var MotionStreak = cc.Class({ } }, animatable: false, - tooltip: 'i18n:COMPONENT.motionStreak.minSeg' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.minSeg' }, /** @@ -141,7 +141,7 @@ var MotionStreak = cc.Class({ } }, animatable: false, - tooltip: 'i18n:COMPONENT.motionStreak.stroke' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.stroke' }, /** @@ -171,7 +171,7 @@ var MotionStreak = cc.Class({ }, url: cc.Texture2D, animatable: false, - tooltip: 'i18n:COMPONENT.motionStreak.texture' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.texture' }, /** @@ -194,7 +194,7 @@ var MotionStreak = cc.Class({ this._motionStreak.tintWithColor(value); } }, - tooltip: 'i18n:COMPONENT.motionStreak.color' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.color' }, /** @@ -218,7 +218,7 @@ var MotionStreak = cc.Class({ } }, animatable: false, - tooltip: 'i18n:COMPONENT.motionStreak.fastMode' + tooltip: CC_DEV && 'i18n:COMPONENT.motionStreak.fastMode' } }, diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js index 83300e76de..b99c3b65ff 100644 --- a/cocos2d/particle/CCParticleSystem.js +++ b/cocos2d/particle/CCParticleSystem.js @@ -102,7 +102,7 @@ var properties = { cc.engine.repaintInEditMode(); }, animatable: false, - tooltip: 'i18n:COMPONENT.particle_system.preview' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.preview' }, /** @@ -136,7 +136,7 @@ var properties = { } }, animatable: false, - tooltip: 'i18n:COMPONENT.particle_system.custom' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.custom' }, /** @@ -170,7 +170,7 @@ var properties = { }, animatable: false, url: cc.ParticleAsset, - tooltip: 'i18n:COMPONENT.particle_system.file' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.file' }, /** @@ -195,7 +195,7 @@ var properties = { } }, url: cc.Texture2D, - tooltip: 'i18n:COMPONENT.particle_system.texture' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.texture' }, /** @@ -211,7 +211,7 @@ var properties = { this._sgNode.particleCount = value; }, visible: false, - tooltip: 'i18n:COMPONENT.particle_system.particleCount' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.particleCount' }, /** @@ -232,7 +232,7 @@ var properties = { }, animatable: false, type:BlendFactor, - tooltip: 'i18n:COMPONENT.particle_system.srcBlendFactor' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.srcBlendFactor' }, /** @@ -253,7 +253,7 @@ var properties = { }, animatable: false, type: BlendFactor, - tooltip: 'i18n:COMPONENT.particle_system.dstBlendFactor' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.dstBlendFactor' }, /** @@ -284,7 +284,7 @@ var properties = { } }, animatable: false, - tooltip: 'i18n:COMPONENT.particle_system.autoRemoveOnFinish' + tooltip: CC_DEV && 'i18n:COMPONENT.particle_system.autoRemoveOnFinish' }, /** diff --git a/extensions/dragonbones/ArmatureDisplay.js b/extensions/dragonbones/ArmatureDisplay.js index a07aff4eb2..94741c5499 100644 --- a/extensions/dragonbones/ArmatureDisplay.js +++ b/extensions/dragonbones/ArmatureDisplay.js @@ -99,7 +99,7 @@ dragonBones.ArmatureDisplay = cc.Class({ this._animationIndex = 0; } }, - tooltip: 'i18n:COMPONENT.dragon_bones.dragon_bones_asset' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.dragon_bones_asset' }, /** @@ -118,7 +118,7 @@ dragonBones.ArmatureDisplay = cc.Class({ this._refreshSgNode(); }, - tooltip: 'i18n:COMPONENT.dragon_bones.dragon_bones_atlas_asset' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.dragon_bones_atlas_asset' }, _armatureName : '', @@ -194,7 +194,7 @@ dragonBones.ArmatureDisplay = cc.Class({ visible: true, editorOnly: true, displayName: "Armature", - tooltip: 'i18n:COMPONENT.dragon_bones.armature_name' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.armature_name' }, // value of 0 represents no animation @@ -227,7 +227,7 @@ dragonBones.ArmatureDisplay = cc.Class({ visible: true, editorOnly: true, displayName: 'Animation', - tooltip: 'i18n:COMPONENT.dragon_bones.animation_name' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.animation_name' }, /** @@ -243,7 +243,7 @@ dragonBones.ArmatureDisplay = cc.Class({ this._sgNode.animation().timeScale = this.timeScale; } }, - tooltip: 'i18n:COMPONENT.dragon_bones.time_scale' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.time_scale' }, /** @@ -260,7 +260,7 @@ dragonBones.ArmatureDisplay = cc.Class({ */ playTimes: { default: -1, - tooltip: 'i18n:COMPONENT.dragon_bones.play_times' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.play_times' }, /** @@ -277,7 +277,7 @@ dragonBones.ArmatureDisplay = cc.Class({ } }, editorOnly: true, - tooltip: 'i18n:COMPONENT.dragon_bones.debug_bones' + tooltip: CC_DEV && 'i18n:COMPONENT.dragon_bones.debug_bones' }, }, diff --git a/extensions/spine/Skeleton.js b/extensions/spine/Skeleton.js index 11b0c136c8..bb323579a5 100644 --- a/extensions/spine/Skeleton.js +++ b/extensions/spine/Skeleton.js @@ -143,7 +143,7 @@ sp.Skeleton = cc.Class({ this.defaultAnimation = ''; this._refresh(); }, - tooltip: 'i18n:COMPONENT.skeleton.skeleton_data' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.skeleton_data' }, ///** @@ -243,7 +243,7 @@ sp.Skeleton = cc.Class({ type: DefaultSkinsEnum, visible: true, displayName: "Default Skin", - tooltip: 'i18n:COMPONENT.skeleton.default_skin' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.default_skin' }, // value of 0 represents no animation @@ -285,7 +285,7 @@ sp.Skeleton = cc.Class({ type: DefaultAnimsEnum, visible: true, displayName: 'Animation', - tooltip: 'i18n:COMPONENT.skeleton.animation' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.animation' }, //// for inspector @@ -310,7 +310,7 @@ sp.Skeleton = cc.Class({ */ loop: { default: true, - tooltip: 'i18n:COMPONENT.skeleton.loop' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.loop' }, /** @@ -333,7 +333,7 @@ sp.Skeleton = cc.Class({ this._sgNode.setPremultipliedAlpha(value); } }, - tooltip: 'i18n:COMPONENT.skeleton.premultipliedAlpha' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.premultipliedAlpha' }, /** @@ -349,7 +349,7 @@ sp.Skeleton = cc.Class({ this._sgNode.setTimeScale(this.timeScale); } }, - tooltip: 'i18n:COMPONENT.skeleton.time_scale' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.time_scale' }, /** @@ -366,7 +366,7 @@ sp.Skeleton = cc.Class({ } }, editorOnly: true, - tooltip: 'i18n:COMPONENT.skeleton.debug_slots' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.debug_slots' }, /** @@ -383,7 +383,7 @@ sp.Skeleton = cc.Class({ } }, editorOnly: true, - tooltip: 'i18n:COMPONENT.skeleton.debug_bones' + tooltip: CC_DEV && 'i18n:COMPONENT.skeleton.debug_bones' } },