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

56 lines
1.8 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_Resources
## 基本信息
- **类型**: WidgetBlueprint (UserWidget)
- **父类**: UserWidget
- **源文件**: /Game/Blueprints/UI/Dialog/WBP_Resources.WBP_Resources
- **模块**: Content/Blueprints/UI/Dialog
## 功能概述
资源显示 Widget用于在对话框界面中展示资金/资源信息。EventGraph 含 3 个事件和 3 个节点。无自定义变量。
## 设计用意
对话框系统中的资源状态显示组件,展示玩家当前持有的资金等数值信息。
## 职责范围
- 渲染资源/资金信息的 UI 显示
## 项目内依赖
| 依赖项 | 关系 | 源文件 |
|--------|------|--------|
| Vector | 引用(纹理) | /Game/Arts/UI/纹理/Vector |
| 资金底框 | 引用(纹理) | /Game/Arts/UI/纹理/资金底框 |
## 外部视角
WBP_Resources 是 UserWidget 的子类,从外部调用者视角:
**接口概览**
- 无自定义变量或公开函数
- EventGraph3 事件, 3 节点)— 极简事件图
- 引用 Arts 纹理Vector、资金底框用于 UI 渲染
**外部交互方式**
- 由 WBP_Module2 创建并嵌入
- 无公开 API作为纯展示组件存在
**EventGraph 事件**
| 事件 | 类型 | 触发时机 | 行为 |
|------|------|----------|------|
| `事件预构造` | 原生覆盖 (PreConstruct) | Widget 创建时 | 预留(当前无连线逻辑) |
| `事件构造` | 原生覆盖 (Construct) | Widget 创建完成后 | 预留(当前无连线逻辑) |
| `事件Tick` | 原生覆盖 | 每帧 | 预留(当前无连线逻辑) |
## 使用方法
WBP_Resources 在项目中的使用方式:
- **WBP_Module2**`/Game/Blueprints/UI/WBP_Module2`)— 嵌入作为对话框资源/资金显示组件
## 用例
| 引用方 | 路径 | 用途 |
|--------|------|------|
| WBP_Module2 | `/Game/Blueprints/UI/WBP_Module2` | 嵌入作为资源展示子 Widget |