Files
loneseDocument/Content/Blueprints/WBP_Hint.md
meishibiezb a8bdf281ff update
2026-06-05 03:01:15 +08:00

59 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WBP_Hint
## 基本信息
- **类型**: WidgetBlueprint (UserWidget)
- **父类**: UserWidget
- **源文件**: /Game/Blueprints/UI/WBP_Hint.WBP_Hint
- **模块**: Content/Blueprints/UI
## 功能概述
提示信息 Widget用于在游戏中显示浮层提示。持有 EndpointDEndpointDispatcher*变量可能用于处理与端点调度器的通信。EventGraph 含 3 个事件和 3 个节点。
## 设计用意
作为游戏中的通用提示 UI通过 EndpointD 与 EndpointDispatcher 对接,接收并显示来自命令系统的提示信息。
## 职责范围
- 显示提示信息
- 通过 EndpointD 与命令端点系统通信
## 项目内依赖
| 依赖项 | 关系 | 源文件 |
|--------|------|--------|
| (无) | — | — |
## 外部视角
WBP_Hint 是 UserWidget 的子类,从外部调用者视角:
**公开属性(蓝图可读写)**
- `EndpointD`EndpointDispatcher*)— 端点调度器引用,用于接收并显示来自命令系统的提示信息
**接口概览**
- 无自定义公开函数
- EventGraph3 事件, 3 节点)处理提示事件
- 通过 EndpointD 与端点调度器对接
**外部交互方式**
- 由 BP_Hud 创建并持有HintWindow 变量)
- 通过 EndpointD 接收指令系统的提示信息并显示
**EventGraph 事件**
| 事件 | 类型 | 触发时机 | 行为 |
|------|------|----------|------|
| `事件预构造` | 原生覆盖 (PreConstruct) | Widget 创建时 | 预留(当前无连线逻辑) |
| `事件构造` | 原生覆盖 (Construct) | Widget 创建完成后 | 预留(当前无连线逻辑) |
| `事件Tick` | 原生覆盖 | 每帧 | 预留(当前无连线逻辑) |
## 使用方法
WBP_Hint 在项目中的使用方式:
- **BP_Hud**`/Game/Blueprints/BP_Hud`)— 存储在 HintWindow 变量中,作为游戏 HUD 的提示浮层
## 用例
| 引用方 | 路径 | 用途 |
|--------|------|------|
| BP_Hud | `/Game/Blueprints/BP_Hud` | 作为 HintWindow 子 Widget显示提示信息 |