104 lines
2.6 KiB
Markdown
104 lines
2.6 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`
|
|
|
|

|
|
|
|
**Past & rename** `assets\game-assets\prefabs\power-play-panel.prefab`
|
|
:::warning
|
|
Must rename 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
|
|
|
|
**Follow Design: edit these prefab**
|
|
|
|

|
|
|
|
|
|
| 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:
|
|
|
|

|
|
|
|
---
|
|
## Setup Mobile-ui
|
|
|
|
Open prefab **mobile-ui**
|
|
|
|
Drag **mobile-power-play-panel** into this script:
|
|
|
|

|
|
|
|
---
|
|
|
|
## Apply Textures
|
|
|
|
**Checklist assets**
|
|
 
|
|
|
|
|
|
**Run the Helper Tool** to configure **PowerplayDesktop** helper.
|
|
|
|

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

|
|
|
|
--- |