From 326772fcd2e466a0436ec6c159c5ebd9047a403a Mon Sep 17 00:00:00 2001 From: cheney2013 Date: Sun, 25 Jun 2023 10:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8F=8F=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/component/UIState.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/script/component/UIState.ts b/assets/script/component/UIState.ts index 99250e2..dc946d9 100644 --- a/assets/script/component/UIState.ts +++ b/assets/script/component/UIState.ts @@ -36,6 +36,7 @@ const COMP_ATTR_RECORD = { "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];