2025-07-16 15:40:00 +07:00

60 lines
1.6 KiB
Markdown

---
sidebar_position: 3
---
# Pickup View
## Index
### Methods
- [PickupItem](#pickupitem) — Triggers item pickup event.
- [PresentPickupResultCompleted](#presentpickupresultcompleted) — Notifies when pickup result display is complete.
- [PresentPickupResult](#presentpickupresult) — Emits the result of a pickup event.
---
## Details
### Methods
#### PickupItem
Triggers item pickup event.
| Meta | Description |
|------|-------------|
| Defined in | [p4f-slotty-core/src/view/pickup-view.js#L14](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/pickup-view.js#L14) |
<p style={{ color: 'gray', fontSize: '1.0em' }}>
**Parameters**
- `itemID` [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
</p>
---
#### PresentPickupResultCompleted
Notifies when pickup result display is complete
| Meta | Description |
|------|-------------|
| Defined in | [p4f-slotty-core/src/view/pickup-view.js#L19](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/pickup-view.js#L19) |
---
#### PresentPickupResult
Emits the result of a pickup event.
| Meta | Description |
|------|-------------|
| Defined in | [p4f-slotty-core/src/view/pickup-view.js#L24](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/pickup-view.js#L24) |
<p style={{ color: 'gray', fontSize: '1.0em' }}>
**Parameters**
- `result` [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
</p>