fix button bug

This commit is contained in:
knoxHuang
2017-12-20 16:28:45 +08:00
parent 56be40c959
commit 7798ad818b
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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 && {