145 lines
3.2 KiB
Markdown
145 lines
3.2 KiB
Markdown
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
# Powerplay
|
|
|
|
## Overview
|
|
|
|

|
|

|
|

|
|
|
|
---
|
|
|
|
## Prepare Prefabs
|
|
|
|
### Step 1: `power-play-panel.prefab`
|
|
|
|
**Copy**
|
|
`template-power-play-panel`
|
|
from
|
|
`assets/core-assets/hyper-core/packages/power-panel/prefabs/template-power-play-panel.prefab`
|
|
|
|

|
|
|
|
**Paste & Rename To**
|
|
`assets/game-assets/prefabs/power-play-panel.prefab`
|
|
|
|
:::warning
|
|
Must rename the prefab to **`power-play-panel`**
|
|
:::
|
|
|
|

|
|
|
|
---
|
|
|
|
### Step 2: `mobile-power-play-panel`
|
|
|
|
**Copy**
|
|
`template-mobile-power-play-panel`
|
|
from
|
|
`assets/core-assets/hyper-core/packages/ui/mobile-ui/prefabs/templates/template-mobile-power-play-panel.prefab`
|
|
|
|

|
|
|
|
**Paste & Rename To**
|
|
`assets/game-assets/prefabs/mobile/power-play-panel.prefab`
|
|
|
|
:::warning
|
|
Must rename the prefab to **`mobile-power-play-panel`**
|
|
:::
|
|
|
|

|
|
|
|
---
|
|
|
|
### Step 3: `template-label`
|
|
|
|
**Copy 5 Prefabs from**
|
|
`assets/core-assets/slotty-core/packages/power-panel/editor/`
|
|
|
|

|
|
|
|
**To**
|
|
`assets/game-assets/editor/`
|
|
|
|

|
|
|
|
---
|
|
|
|
## Edit Prefab
|
|
|
|
**Follow the design and edit the prefab accordingly:**
|
|
|
|

|
|
|
|
| Component | Description |
|
|
|------------------|---------------------------------------------------|
|
|
| **Label Outline** | Add an outline to make the text stand out. |
|
|
| **Label Shadow** | Add a shadow for better contrast and readability. |
|
|
|
|
---
|
|
|
|
## Setup Main Scene
|
|
|
|
Drag the `power-play-panel` prefab into your main scene:
|
|
|
|

|
|
|
|
---
|
|
|
|
## Setup Mobile UI
|
|
|
|
Open the **`mobile-ui`** prefab and drag in the `mobile-power-play-panel`:
|
|
|
|

|
|
|
|
---
|
|
|
|
## Apply Textures
|
|
|
|
### Prepare these assets
|
|
|
|

|
|

|
|
|
|
|
|
### Configure Helpers
|
|
|
|
- Run the **Helper Tool** to configure `PowerplayDesktop`
|
|

|
|
|
|
- Run the **Helper Tool** to configure `PowerplayMobile`
|
|

|
|
|
|
---
|
|
|
|
## Manual Powerplay
|
|
|
|

|
|
|
|
### Two Ways to Activate:
|
|
|
|
#### 1. Local
|
|
Append this param to the local URL:
|
|
`http://localhost:7456/?minNormalBet=10`
|
|
|
|
#### 2. Game Live
|
|
- Step 1: Set a breakpoint like the image below:
|
|

|
|
|
|
- Step 2: Reload the page and run this code at the breakpoint:
|
|
```js
|
|
params.GameSettings.config.minNormalBet = 10;
|
|
|
|
### Setup manual-powerplay
|
|
|
|
**In the main scene**: create a node and add the corresponding script.
|
|
|
|

|
|
|
|
:::warning
|
|
If your game already has **`shortcut-buy-feature`** set up, this node may already be configured.
|
|
:::
|