ManticoreGamesInc / CC-Resource-Display

The Resource Display component helps with show resources to the player in the UI so they can see how much of a resource they have. This component uses a data table of resources so any resource can be displayed along with an easy way to reorder the resources.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resource Display

Build Status GitHub release (latest by date)

Preview

Finding the Component

This component can be found under the CoreAcademy account on Community Content.

Overview

The Resource Display component helps with show resources to the player in the UI so they can see how much of a resource they have. This component uses a data table of resources so any resource can be displayed along with an easy way to reorder the resources.

How to use

Drag the Resource Display template into the hierarchy.

To add resources, there is a data table called Resource Display that has 2 columns. ResourceKey column is the name of the resource, and the Icon column is the icon to display for this resource in the UI.

On the root of the Resource Display template, there are 2 custom properties.

  • ShowAmount

    If enabled, the resource amount will be shown in the UI for each resource.

  • Spacing

    The spacing between each resource item in the UI.

About

The Resource Display component helps with show resources to the player in the UI so they can see how much of a resource they have. This component uses a data table of resources so any resource can be displayed along with an easy way to reorder the resources.

License:Apache License 2.0


Languages

Language:Protocol Buffer Text Format 59.1%Language:Lua 40.9%