From 284a16757b958110eb6917b9f2b717496ec501aa Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 2 Mar 2024 19:33:23 +0800 Subject: [PATCH] fix: docs --- docs/api/class/ui-controller.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/class/ui-controller.md b/docs/api/class/ui-controller.md index 5fcad08..6ff4baf 100644 --- a/docs/api/class/ui-controller.md +++ b/docs/api/class/ui-controller.md @@ -85,7 +85,7 @@ declare function get(id: string): GameUi ## holdOn() ```ts -declare function holdOn(): { end(): void } +declare function holdOn(): { end(noClosePanel: boolean): void } ``` - 方法说明 @@ -94,7 +94,7 @@ declare function holdOn(): { end(): void } - 返回值 - 返回值是一个对象,包含一个 `end` 方法,用于结束此次的防闪烁处理,如果没有 ui 已经打开,那么会立刻关闭 ui 界面 + 返回值是一个对象,包含一个 `end` 方法,用于结束此次的防闪烁处理,如果没有 ui 已经打开,那么会立刻关闭 ui 界面,参数说明是否要调用 `core.closePanel` 函数 ## close() @@ -214,10 +214,10 @@ interface UiControllerEvent { ```ts interface UiControllerEvent { - end: () => void + end: (noClosePanel: boolean) => void } ``` - 事件说明 - 当 ui 界面被关闭,也就是当被打开的 ui 个数从 1 变为 0 时,触发该事件。如果当前处于防闪烁状态,那么不会触发 + 当 ui 界面被关闭,也就是当被打开的 ui 个数从 1 变为 0 时,触发该事件。如果当前处于防闪烁状态,那么不会触发。参数说明了当这个 UI 被关闭时是否要调用 `core.closePanel` 函数