2025-05-27 09:51:17 +07:00

3.2 KiB

sidebar_position
sidebar_position
3

Powerplay

Overview

Desktop Bottom Bar Desktop Bottom Bar Desktop Bottom Bar


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

From Template

Paste & Rename To
assets/game-assets/prefabs/power-play-panel.prefab

:::warning Must rename the prefab to power-play-panel :::

Renamed 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

From Template

Paste & Rename To
assets/game-assets/prefabs/mobile/power-play-panel.prefab

:::warning Must rename the prefab to mobile-power-play-panel :::

Renamed Prefab


Step 3: template-label

Copy 5 Prefabs from
assets/core-assets/slotty-core/packages/power-panel/editor/

From Folder

To
assets/game-assets/editor/

To Folder


Edit Prefab

Follow the design and edit the prefab accordingly:

Prefab Design

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:

Main Scene Setup


Setup Mobile UI

Open the mobile-ui prefab and drag in the mobile-power-play-panel:

Mobile UI Setup


Apply Textures

Prepare these assets

Assets Desktop Assets Mobile

Configure Helpers

  • Run the Helper Tool to configure PowerplayDesktop
    Desktop Helper

  • Run the Helper Tool to configure PowerplayMobile
    Mobile Helper


Manual Powerplay

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

  • Step 2: Reload the page and run this code at the breakpoint:

    params.GameSettings.config.minNormalBet = 10;
    
    

Setup manual-powerplay

In the main scene: create a node and add the corresponding script.

Setup Manual Powerplay

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