mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix button bug
This commit is contained in:
@@ -311,6 +311,10 @@ var Button = cc.Class({
|
||||
type: cc.SpriteFrame,
|
||||
displayName: 'Pressed',
|
||||
tooltip: CC_DEV && 'i18n:COMPONENT.button.pressed_sprite',
|
||||
formerlySerializedAs: 'pressedSprite',
|
||||
notify: function () {
|
||||
this._updateState();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -323,6 +327,10 @@ var Button = cc.Class({
|
||||
type: cc.SpriteFrame,
|
||||
displayName: 'Hover',
|
||||
tooltip: CC_DEV && 'i18n:COMPONENT.button.hover_sprite',
|
||||
formerlySerializedAs: 'hoverSprite',
|
||||
notify: function () {
|
||||
this._updateState();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ var SerializableAttrs = {
|
||||
serializable: {},
|
||||
editorOnly: {},
|
||||
rawType: {},
|
||||
formerlySerializedAs: {}
|
||||
};
|
||||
|
||||
var TYPO_TO_CORRECT_DEV = CC_DEV && {
|
||||
|
||||
Reference in New Issue
Block a user