Merge pull request 'add manual-powerplay & format powerplay' (#71) from feature/add-powerplay into develop
Reviewed-on: #71 Reviewed-by: Pham Huynh Duc Huy <huy.pham@mercurystudiogroup.com>
This commit is contained in:
commit
3b723cf85a
@ -11,94 +11,134 @@ sidebar_position: 3
|
|||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Prepare Prefabs
|
## Prepare Prefabs
|
||||||
|
|
||||||
### Step 1: power-play-panel.prefab
|
### Step 1: `power-play-panel.prefab`
|
||||||
|
|
||||||
**Copy** `template-power-play-panel`
|
**Copy**
|
||||||
from `assets\core-assets\hyper-core\packages\power-panel\prefabs\template-power-play-panel.prefab`
|
`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
|
:::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`
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
**Past & rename** `assets\game-assets\prefabs\mobile\power-play-panel.prefab`
|
|
||||||
:::warning
|
|
||||||
Must rename 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 2: `mobile-power-play-panel`
|
||||||
|
|
||||||
**Follow Design: edit these prefab**
|
**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`
|
||||||
|
|
||||||
| Component | Description |
|
:::warning
|
||||||
| -------------------- | ------------------------------------------------- |
|
Must rename the prefab to **`mobile-power-play-panel`**
|
||||||
| **Label Outline** | Add an outline to make the text stand out. |
|
:::
|
||||||
| **Label Shadow** | Add a shadow for better contrast and readability. |
|
|
||||||
| -------------------- | ------------------------------------------------- |
|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### 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
|
## 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**
|
|
||||||
|
|
||||||
Drag **mobile-power-play-panel** into this script:
|
|
||||||
|
|
||||||

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

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

|
---
|
||||||
|
|
||||||
**Run the Helper Tool** to configure **PowerplayMobile** helper.
|
## 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.
|
||||||
|
:::
|
||||||
|
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