Skip to content

Commit

Permalink
update label outline and shadow deprecated log
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxHuang committed Dec 25, 2023
1 parent be3507c commit b1ffc2a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cocos/2d/components/deprecated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,28 +127,28 @@ replaceProperty(MaskType, 'MaskType', [
},
]);

markAsWarning(LabelOutline.prototype, 'LabelOutline.prototype', [
markAsWarning(LabelOutline.prototype, 'LabelOutline', [
{
name: 'width',
suggest: 'Please use Label.prototype.outlineWidth instead.',
suggest: 'Please use "Label" outlineWidth instead.',
},
{
name: 'color',
suggest: 'Please use Label.prototype.outlineColor instead.',
suggest: 'Please use "Label" outlineColor instead.',
},
]);

markAsWarning(LabelShadow.prototype, 'LabelShadow.prototype', [
markAsWarning(LabelShadow.prototype, 'LabelShadow', [
{
name: 'color',
suggest: 'Please use Label.prototype.shadowColor instead.',
suggest: 'Please use "Label" shadowColor instead.',
},
{
name: 'offset',
suggest: 'Please use Label.prototype.shadowOffset instead.',
suggest: 'Please use "Label" shadowOffset instead.',
},
{
name: 'blur',
suggest: 'Please use Label.prototype.shadowBlur instead.',
suggest: 'Please use "Label" shadowBlur instead.',
},
]);

0 comments on commit b1ffc2a

Please sign in to comment.