mirror of
https://github.com/cheney2013/UIState.git
synced 2024-12-25 03:09:06 +00:00
支持描边
This commit is contained in:
parent
09f8c3b46b
commit
326772fcd2
@ -36,6 +36,7 @@ const COMP_ATTR_RECORD = <const>{
|
||||
"left", "right", "top", "bottom", "horizontalCenter", "verticalCenter", "alignMode", "alignFlags"],
|
||||
"cc.UIOpacity": ["opacity"],
|
||||
"cc.Label": ["color", "string", "horizontalAlign", "verticalAlign", "fontSize", "fontFamily", "lineHeight", "overflow", "isBold", "isItalic", "isUnderline", "underlineHeight"],
|
||||
"cc.LabelOutline": [],
|
||||
"cc.RichText": ["string", "horizontalAlign", "verticalAlign", "fontSize", "fontFamily", "maxWidth", "lineHeight"],
|
||||
"cc.Sprite": ["color", "spriteFrame", "grayscale", "sizeMode", "type", "trim"],
|
||||
"CustomLabel": ["customProp"]
|
||||
@ -119,7 +120,6 @@ export default class UIState extends Component {
|
||||
private _state: States = States.Default;
|
||||
|
||||
set state(val: number) {
|
||||
if (this._state === val) return;
|
||||
// 编辑器模式时,切换状态前保存当前状态数据
|
||||
if (REAL_EDITOR) {
|
||||
this.walkNode(this.node, child => {
|
||||
@ -423,7 +423,6 @@ export default class UIState extends Component {
|
||||
// 使用软刷新场景的接口,编辑器会闪一下,体验不是太好,不过可以保证显示正确
|
||||
REAL_EDITOR && Editor.Message.request("scene", "soft-reload");
|
||||
});
|
||||
else comp.spriteFrame = null;
|
||||
break;
|
||||
default:
|
||||
(comp as any)[attr] = recordCompAttr[attr];
|
||||
|
Loading…
Reference in New Issue
Block a user