Merge pull request 'add powerplay' (#70) from feature/add-powerplay into develop
Reviewed-on: #70
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 24 KiB |
@ -4,4 +4,101 @@ sidebar_position: 3
|
||||
|
||||
# Powerplay
|
||||
|
||||
> To be added
|
||||
## 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.
|
||||
|
||||

|
||||
|
||||
---
|
BIN
docs/03-setup-special-feature/img/powerplay/asset-desktop.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/asset-mobile.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/asset-prepare.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/desktop-helper.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 9.6 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/mobile-from.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/mobile-helper.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/mobile-to.png
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 4.4 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/preview1.png
Normal file
After Width: | Height: | Size: 726 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/preview2.png
Normal file
After Width: | Height: | Size: 675 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/preview3.png
Normal file
After Width: | Height: | Size: 347 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/ref-mobile.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
docs/03-setup-special-feature/img/powerplay/ref-prefab.png
Normal file
After Width: | Height: | Size: 68 KiB |