69 lines
1.7 KiB
Markdown
69 lines
1.7 KiB
Markdown
---
|
|
sidebar_position: 17
|
|
title: Win Limit
|
|
description: Display limit win
|
|
---
|
|
|
|
# Win Limit
|
|
|
|
### Overview
|
|
|
|
- Win limit popup during gameplay, triggered when win points reach a predefined limit.
|
|
|
|

|
|
|
|
- Gamble win limit popup during gamble, triggered when the number of gamble attempts reaches 5.
|
|
|
|

|
|
|
|
---
|
|
|
|
### Prefab Location
|
|
|
|
| Path | Prefab Name |
|
|
|----------------------------------------------------------|------------------------------|
|
|
| `assets/core-assets/hyper-core/packages/present/prefabs` | `present-win-limit-reached` |
|
|
|
|
### Scene Hierarchy
|
|
|
|
Place the prefab in the following scene structure:
|
|
|
|
```
|
|
Canvas
|
|
└── [main-view]
|
|
└── [game-view]
|
|
└── [present-win-limit-reached]
|
|
```
|
|
|
|

|
|
|
|
---
|
|
|
|
### Asset Setup
|
|
|
|
- Drag and drop the required image onto the node in the editor:
|
|
|
|

|
|
|
|
| Drag Sprite | Node Name |
|
|
|-------------------------|-----------------------|
|
|
| `you-won` | `you-won` |
|
|
| `win-limit-reached` | `win-limit-reached` |
|
|
| `gamble-limit-reached` | `gamble-limit-reached`|
|
|
| `btn-normal` | `btn-continue` |
|
|
| `text-continue` | `continue` |
|
|
|
|
|
|
### Font
|
|
|
|
- Use a **custom font** to match the win label style for your game theme.
|
|
|
|

|
|
|
|
---
|
|
|
|
:::tip
|
|
- Follow the game design layout for assets and fonts.
|
|
- Win limit configuration may vary by game.
|
|
:::
|