Info to create new scoreboard

Everything about Modding the game, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Info to create new scoreboard

Postby Rounders » 04 Apr 2014, 16:39

Hello Manu,
I wanted to ask you a couple of things about the full scoreboard.
1- I can have the first and last name of the players in different fonts?
2- I can insert in online and training match the information about the country, round etc. as in career mode.
Thanks again :)
Image
Currently retired!
User avatar
Rounders
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 301
Gaming Since: 10 Apr 2012, 16:50
Location: Italy

Re: Info to create new scoreboard

Postby manutoo » 05 Apr 2014, 03:29

Hello,

1- yes with 2 texts, but alignment will work per text, not for the full name ; you could also use a custom font that has different styles for lower case & upper case
2- yes, but you'll have to create these infos manually (I'm not sure what round you'd show)
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 15583
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Info to create new scoreboard

Postby Rounders » 06 Apr 2014, 19:05

manutoo wrote:Hello,

1- yes with 2 texts, but alignment will work per text, not for the full name ; you could also use a custom font that has different styles for lower case & upper case
2- yes, but you'll have to create these infos manually (I'm not sure what round you'd show)

Thanks Manu, but I tried to change, but I always system error log. I want to have the name and last name in uppercase, but with different characters (bold and regular). The line of code to change with 2 texts is this or not ?
Code: Select all
// Full names in full scoreboard
item
{
   Text /Intern/Team1
   Pos /Intern/ScoreX /Intern/ScoreYu Left Center
   Font FullNameF
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
   OnRender
   {
      MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
      MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
   }
}

item
{
   Text /Intern/Team2
   Pos /Intern/ScoreX /Intern/ScoreYd Left Center
   Font FullNameF
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
}
The problem I do not know how to do. :?:
Image
Currently retired!
User avatar
Rounders
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 301
Gaming Since: 10 Apr 2012, 16:50
Location: Italy

Re: Info to create new scoreboard

Postby antimouse » 06 Apr 2014, 19:42

Hello Rounders,

If I may try to help, I guess that's exactly the place where you have to change it. But, if you notice it, the first text is for Player 1 (Team1) and the second is for Player 2 (Team2). So, what I think Manu suggested is to duplicate both, so you will have a first Team1 text formatted for "only first name", and a second Team1 text formatted for "only last name". For this second one, you would apply the bold font configuration.

Something like this:

Code: Select all
// Full names in full scoreboard
item
{
   FormatTeamName /Intern/Team1s 1 "F"
   Text /Intern/Team1
   Pos /Intern/ScoreX /Intern/ScoreYu Left Center
   Font FullNameF
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
   OnRender
   {
      MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
      MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
   }
}

// Full names in full scoreboard
item
{
   FormatTeamName /Intern/Team1s 1 "L"         //  CHANGE FORMATTING
   Text /Intern/Team1
   Pos /Intern/ScoreX /Intern/ScoreYu Left Center
   Font FullNameFBold                                        // CHANGE FONT
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
   OnRender
   {
      MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
      MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
   }
}


Well, I don't know if this works, changing the format like that, but, even if you make it work, it will be hard to position both texts without leaving extra spaces between them. Unless there is some way to determine how many characters are there in the first name, so you could position the last name right after it, but I guess this function doesn't exist. So, the second suggestion of Manu (custom font) would probably be easier.
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 527
Gaming Since: 06 Sep 2013, 01:05

Re: Info to create new scoreboard

Postby Rounders » 07 May 2014, 00:31

Thanks antimouse for the reply but i have forgot to answer you anyway I have solved.
manutoo wrote:Hello,
2- yes, but you'll have to create these infos manually (I'm not sure what round you'd show)

Manu,
Where i go to put these informations manually? Thanks for the patience :D
Image
Currently retired!
User avatar
Rounders
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 301
Gaming Since: 10 Apr 2012, 16:50
Location: Italy

Re: Info to create new scoreboard

Postby manutoo » 07 May 2014, 03:29

Rounders,
as I said it's manually, it means you have to do everything by yourself and then you can add the info in the place you think it's the best (usually, it starts in HudAbove.menu).
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 15583
Gaming Since: 24 Jan 2004, 15:38
Location: France


Return to Modding [Courts, Players, Tour, ...]

Who is online

Users browsing this forum: AhRefs [Bot], AlbertRoj, Google [Bot], SemRush [Bot], Thegfdonee and 2 guests