add manual-powerplay & format powerplay
This commit is contained in:
parent
1c0bea7ddb
commit
73186c6e4f
@ -11,94 +11,134 @@ sidebar_position: 3
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Prepare Prefabs
|
||||
|
||||
### Step 1: power-play-panel.prefab
|
||||
### 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`
|
||||
**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`
|
||||
|
||||
**Past & rename** `assets\game-assets\prefabs\power-play-panel.prefab`
|
||||
:::warning
|
||||
Must rename to **power-play-panel**
|
||||
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`
|
||||
### 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`
|
||||
|
||||
**Past & rename** `assets\game-assets\prefabs\mobile\power-play-panel.prefab`
|
||||
:::warning
|
||||
Must rename to **mobile-power-play-panel**
|
||||
Must rename the prefab to **`mobile-power-play-panel`**
|
||||
:::
|
||||
|
||||

|
||||
|
||||
### Step 3: template-label
|
||||
|
||||
**Copy 5 prefab** `template-label-auto-selection` & `template-label-title`
|
||||
|
||||
**From** `assets\core-assets\slotty-core\packages\power-panel\editor\`
|
||||
|
||||

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

|
||||

|
||||
|
||||
---
|
||||
## Edit prefab
|
||||
|
||||
### Step 1: label-template
|
||||
### Step 3: `template-label`
|
||||
|
||||
**Follow Design: edit these prefab**
|
||||
**Copy 5 Prefabs from**
|
||||
`assets/core-assets/slotty-core/packages/power-panel/editor/`
|
||||
|
||||

|
||||

|
||||
|
||||
**To**
|
||||
`assets/game-assets/editor/`
|
||||
|
||||
| Component | Description |
|
||||
| -------------------- | ------------------------------------------------- |
|
||||
| **Label Outline** | Add an outline to make the text stand out. |
|
||||
| **Label Shadow** | Add a shadow for better contrast and readability. |
|
||||
| -------------------- | ------------------------------------------------- |
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 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 **power-play-panel** in your main scene:
|
||||
Drag the `power-play-panel` prefab into your main scene:
|
||||
|
||||

|
||||

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

|
||||

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

|
||||

|
||||
|
||||
|
||||
**Run the Helper Tool** to configure **PowerplayDesktop** helper.
|
||||
### Configure Helpers
|
||||
|
||||

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

|
||||
|
||||
**Run the Helper Tool** to configure **PowerplayMobile** helper.
|
||||
|
||||

|
||||
- 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.
|
||||
:::
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
x
Reference in New Issue
Block a user