You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Wiki/pages/确认取消弹窗-%2D-InquiryData.md

36 lines
1.4 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

**2023年02月07日 皮蛋创建 需代码侧审核格式及内容是否正确**
# 接口名称
用于创建一个“确认取消弹窗”。
```
InformationManager.InquiryData
```
用于弹出并展示该弹窗。
```
InformationManager.ShowInquiry
```
# 接口位置
```
TaleWorlds.Library
```
# 功能说明
- 一种弹窗。
- 玩家阅读文本,然后单击“取消/否”或“确认/是”的选项。
- 也可以只存在一个选项此时用途通常是通知或告知。例如“经过漫长的旅途你的骑术技能等级上升5级。” —— “好的”
- 弹窗时游戏暂停。
- 与其他弹窗相比,此弹窗主要用于阅读文本说明后做出“是”或“否”的选择时。
- 也可以用于需要向玩家展示一个强制性阅读的通知时。
- 还可以用在需要二次确认的情景下。例如,某些高风险功能选项,二次弹窗确认来避免玩家误触选项导致不可逆的损失。案例截图就是这样一种情况,一旦确认,游戏将会卡死若干小时无法操作。
# 案例截图
截图案例来源于[旧世界模组](https://www.moddb.com/mods/the-old-realms)
![QQ截图20230207010357.png](../assets/QQ截图20230207010357-1264e422-858c-457f-9f16-96e98932c17f.png)
# 使用案例
位于[旧世界模组](https://www.moddb.com/mods/the-old-realms)```需要更多信息```
```
需要更多信息
```