I need help with my players UI(Solved)

In the bottom right, above where it shows the item name, I need to be able to display unit attributes, like points or something similar. And i cant create a different game to show my problem because its enabled on that game, but i cant figure out what i need to have it enabled, if its a script or what.

2 Likes

You cannot display the unit attributes in there; those attributes shown on the bottom right are “player” attributes. You have to create attributes in player type and make them show.

2 Likes

I still cant get it to show. i went into player types, added the attributes i wanted to be displayed, compared and duplicated the settings with a default game that worked right, and they still wont appear.

1 Like

image
did you turn on the visble and display value as true?

1 Like

yup. do i need the leaderboard to be shown? or does that not matter?

1 Like

it doesnt matter. Hmmm, did you assign the player into that player type?

1 Like

hmm


your game is working now

1 Like

that did it thank you. is there anyway you can change the font size?

1 Like

which font size do you want to change?

1 Like

either the name of the item im holding or the attribute in that box.

1 Like

You can change the font size by using html css. There are 2 codes below, select one of them and put it into gameplay instructions (in game settings)

  1. Here is the code that it adjusts the font-size of the attributes: (Adjust the number you want)
<style>
span#players-attribute-div {
    font-size: 25px;
}
</style>
  1. Here is the code that it adjusts the font-size of the item: (Adjust the number you want)
<style>
span#item-info-div {
    font-size: 20px;
}
</style>
1 Like

how do i access that tho?

1 Like

What do you mean by accessing that?
If you mean the gameplay instructions
Here:
image
Press game settings


Go to tile screen

image
Paste the code in Gameplay Instructions and save it.

1 Like

Hey, on a unrelated note, i have an image i want to use for my icon, but it wont let me use it. ive got it saved locally, but it just keeps the original basic icon. do you have any ideas?

1 Like

what icon you mean? game icon?

1 Like