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.

3 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.

3 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.

2 Likes

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

2 Likes

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

2 Likes

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

2 Likes

hmm


your game is working now

2 Likes

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

2 Likes

which font size do you want to change?

2 Likes

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

2 Likes

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>
2 Likes

how do i access that tho?

2 Likes

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.

2 Likes

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?

2 Likes

what icon you mean? game icon?

2 Likes