Thanks for your help, but in your revision, it does not display correctly. I got it to work by setting the number of rows to be the number of rows I needed, because when you don't use the "add player" function, it doesn't automatically add the rows. I'm a little confused as to why the header items will only appear when you *don't* use the "add player" function - or perhaps there was something more subtle that I was overlooking. In any case, the minerals icon still does not appear.
Hey this is my first post on the site!
I'm developing a random micro style game. All the programming has been going fine...
Except I can't get anything to show up on my leader-board header! All of the other rows are showing up just fine, all of the data is visible and correct, except for the column headers which are: (Minerals icon), "Wins" and "Bets."
I have compared my leader-board script to others in tutorials and posts and can't figure out what I'm doing differently. Maybe someone can help.
Here is my leaderboard create trigger:
Events: Game - Map Initialization
Location Variables: i = 0
Conditions: (none)
Actions:
Leaderboard - Create a leaderboard with 5 columns and 1 rows, with the name "Leaderboard", and using (100%, 100%, 100%) color.
Variable - Set Leaderboard = (Last Created Leaderboard)
Leaderboard - Set the automatic player column for Leaderboard to column 1 (Do group by teams)
General - For each integer i from 1 to Number of Players with increment 1, do (Actions)
Actions
Leaderboard - Add player Actual Players(i) to Leaderboard
Leaderboard - Set Leaderboard item text color at column 1 and row (i+1) to (Color((Current player Actual Players[i] color)))
Leaderboard - Set leaderboard item text at column 2 and row (i+1) to (Text((Player Actual Players[i] Minerals))
Leaderboard - Set Leaderboard item text at column 3 and row (i+1) to (Text(Player Victories[Actual Players[i]])
Leaderboard - Set Leaderboard item text at column 4 and row (i+1) to (Name of player RoundBets[Actual Players[i]])
Leaderboard - Set Leaderboard item icon at column 2 and row Header to Assets/Textures/icon-mineral-nobg.dds placing it on the Left side of the text
Leaderboard - Set Leaderboard item text at column 3 and row Header to "Wins"
Leaderboard - Set Leaderboard item text at column 4 and row Header to "Bet"
Leaderboard - Enable Show Header state for Leaderboad for (All players)
Leaderbaord - Show all leaderboards for (All Players)
Leaderboard - Show Leaderboard minimize button for (All Players)
Thanks for your help, but in your revision, it does not display correctly. I got it to work by setting the number of rows to be the number of rows I needed, because when you don't use the "add player" function, it doesn't automatically add the rows. I'm a little confused as to why the header items will only appear when you *don't* use the "add player" function - or perhaps there was something more subtle that I was overlooking. In any case, the minerals icon still does not appear.
@hunterx3: Go
Ok it's uploaded.
Hey this is my first post on the site!
I'm developing a random micro style game. All the programming has been going fine...
Except I can't get anything to show up on my leader-board header! All of the other rows are showing up just fine, all of the data is visible and correct, except for the column headers which are: (Minerals icon), "Wins" and "Bets."
I have compared my leader-board script to others in tutorials and posts and can't figure out what I'm doing differently. Maybe someone can help.
Here is my leaderboard create trigger:
------------------------------------------------------------------------------------------------------------------
Events: Game - Map Initialization
Location Variables: i = 0
Conditions: (none)
Actions:
Leaderboard - Create a leaderboard with 5 columns and 1 rows, with the name "Leaderboard", and using (100%, 100%, 100%) color.
Variable - Set Leaderboard = (Last Created Leaderboard)
Leaderboard - Set the automatic player column for Leaderboard to column 1 (Do group by teams)
General - For each integer i from 1 to Number of Players with increment 1, do (Actions)
Actions
Leaderboard - Add player Actual Players(i) to Leaderboard
Leaderboard - Set Leaderboard item text color at column 1 and row (i+1) to (Color((Current player Actual Players[i] color)))
Leaderboard - Set leaderboard item text at column 2 and row (i+1) to (Text((Player Actual Players[i] Minerals))
Leaderboard - Set Leaderboard item text at column 3 and row (i+1) to (Text(Player Victories[Actual Players[i]])
Leaderboard - Set Leaderboard item text at column 4 and row (i+1) to (Name of player RoundBets[Actual Players[i]])
Leaderboard - Set Leaderboard item icon at column 2 and row Header to Assets/Textures/icon-mineral-nobg.dds placing it on the Left side of the text
Leaderboard - Set Leaderboard item text at column 3 and row Header to "Wins"
Leaderboard - Set Leaderboard item text at column 4 and row Header to "Bet"
Leaderboard - Enable Show Header state for Leaderboad for (All players)
Leaderbaord - Show all leaderboards for (All Players)
Leaderboard - Show Leaderboard minimize button for (All Players)
---------------------------------------------------------------------------------------------------------------------------------
Thanks for any help anyone can give me!