Skip to main content

Scoreboard

The ScoreBoard Widget is a customizable UI component designed to manage and display game scores during matches. It provides a flexible system for showing multiple score types with associated player information.

The ScoreBoard Widget

This guide explains how to create a Scoreboard with All On Board! Mod Kit.

Step 1 - Create a key​

The first step to creating a scoreboard is to have a variable that will store information about the player, such as their score.

Go to the Game Rules folder in your game folder and open the CustomKeys Blueprint.

Open the CustomKeys Blueprint in the Game Rules folder

Once you open the Blueprint, click Add to add a new key.

Click Add to add a new key

After that, enter a name for the key. We recommend using a prefix, such as the Game ID of your game, followed by the Key suffix. For example, GameID_ScoreKey.

Then, create an output for that key named Key. If the output is created as a Boolean, change its type to Name.

Create an output named Key with type Name

In the Graph, you have to give a value to that variable in the output node. We recommend using the same name as the key.

Give a value to the variable in the output node

Step 2 - Create the Widget​

For this step, go to the folder where you want to create your scoreboard. Right-click to open the Add menu and select Widget Blueprint.

Select Widget Blueprint in the Add menu

Now, search for WBP_000AOB_ScoreBoard, select it, and open it.

Search for the ScoreBoard widget and open it

Next, click the only element in the Hierarchy window and you can see the Details Panel on the right. In the AOB section you can configure your scoreboard

  • Header Image: The image that will be displayed at the top of the scoreboard.
  • Scores: This is the array containing the values you want to display, such as the score, coins, etc.
    • Score Key: The key you created in the previous step.
    • Score Name: The name of the value you want to display.
    • Use Image: If you want to display an image instead of text, check this box and choose an image.

Configure the scoreboard in the AOB section

For the previous case, you have to enter the value assigned to the key variable: ScoreKey. Then, give this column a name to be displayed on the scoreboard.

Enter the ScoreKey value and a column name

Step 3 - Create a GameElement​

For the next step, you are going to start by creating a Game Element.

Right-click on an empty space in the folder where you want to create your slot. The Add New menu will open. Then, hover over All On Board! and select Blueprint Class (All On Board!).

Open the Add New menu and select Blueprint Class (All On Board!)

When the Pick Parent Class dialog opens, search

Pick Parent Class dialog

Next, give the Blueprint a name if you prefer a different name than the default name. For example: BP_GameID_Scoreboard

Once you have completed the previous step, regardless of which method you used, a window will automatically open to register your new scoreboard in the Game Element Index Data Table. This table contains a list of all the objects that will be used in your game.

The correct Data Table is selected automatically, but make sure to check it just in case. For example, if your Game ID is "Example", the Data Table will be named DT_Example_GameElementIndexGeneral.

Register the scoreboard in the Game Element Index Data Table

Then, enter the name you want your scoreboard to have in the table and click Register. For example: Scoreboard

Step 4 - Configure the GameElement​

For the last step, open the Blueprint you just created and add a Widget Component by clicking Add in the Components panel on the left.

Add a Widget Component in the Components panel

Select the Widget Blueprint you created previously. In this example, WBP_GameID_Scoreboard.

Select the Widget Blueprint you created

In Draw Size, enter 620 and 690, the width and height of the Widget Blueprint

Enter the Draw Size width and height

tip

If you want to place your scoreboard on the table, go to this page: Deploying elements