Merge pull request #1622 from zilongshanren/add-missing-cc-dev-tooltip

add missing CC_DEV macro to component tooltip
This commit is contained in:
Jare Guo
2017-05-02 10:22:43 +08:00
committed by GitHub
6 changed files with 31 additions and 31 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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: {
+6 -6
View File
@@ -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'
}
},
+8 -8
View File
@@ -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'
},
/**
+7 -7
View File
@@ -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'
},
},
+8 -8
View File
@@ -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'
}
},