
J'ai une autre question, comment changer la couleur du score et des noms dans le light SB ?
Car j'ai crée celui de Battle of surfaces mais j'ai un défaut, 15, 30, 40 , 0 (les points) s'affiche en jaune et les jeux et les noms en noir

Amaz Ouz wrote:Kersou, j'ai trouvé tous,que ces demandes et je te demanderai rien de plus stp :
1- J'ai un probléme dans celui de Battle of Surfaces, le scoreboard est en haut mais la barre de "break point" s'affiche en bas![]()
2- Comment puis-je afficher les 3 premiers caractéres du pays du joueur dans le light SB.
3- Comment afficher les 3 premiers caractéres du nom du joueur.
C'est super de créer des Huds je vais créer beaucoup
def KeyPointsBarY 392
/InGame_p1/Country3L
/InGame_p2/Country3L
OnActionIf /Intern/PlayerCfg 0
{
//=== Player Name Formatting Example
// f = First Name Untouched ; F = First Name Uppercase
// l = Last Name Untouched ; L = Last Name Uppercase
// 3. => Max of 3 Letters, add a point if shortened or followed by more text without space
FormatTeamName /Intern/Team1s 1 "f1. L"
SetCfg /Intern/Team1 "" // Set Empty String
CatCfg /Intern/Team1 /Intern/Team1s
FormatTeamName /Intern/Team2s 2 "f1. L"
SetCfg /Intern/Team2 "" // Set Empty String
CatCfg /Intern/Team2 /Intern/Team2s
FormatTeamName /Intern/Team1s 1 "L3"
FormatTeamName /Intern/Team2s 2 "L3"
}
//=== Countries flags
// Load flags
item
{
CycleButton #ImageGI
ImageFlag FlagTeam1Circle 0 0
Pos -1000 -1000
OnAction
{
SlideCountry /InGame_p1/Country 0 /WT_Intern/NbCountry-1
}
ShowIf /Intern/GameType 2
}
item
{
CycleButton #ImageGI
ImageFlag FlagTeam2Circle 0 0
Pos -1000 -1000
OnAction
{
SlideCountry /InGame_p2/Country 0 /WT_Intern/NbCountry-1
}
ShowIf /Intern/GameType 2
}
// full scoreboard
item
{
Image FlagTeam1Circle FullScoreFlagW FullScoreFlagH
Pos /Intern/ScoreX /Intern/ScoreYu Left Center
ShowIf /Intern/ScoreType 1
ShowIf /Intern/GameType 2
OnRender
{
MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreFlagX
}
}
item
{
Image FlagTeam2Circle FullScoreFlagW FullScoreFlagH
Pos /Intern/ScoreX /Intern/ScoreYd Left Center
ShowIf /Intern/ScoreType 1
ShowIf /Intern/GameType 2
}
OnActionIf /Intern/GameType 2
{
//=== Player Name Formatting Example
// f = First Name Untouched ; F = First Name Uppercase
// l = Last Name Untouched ; L = Last Name Uppercase
// 3. => Max of 3 Letters, add a point if shortened or followed by more text without space
FormatTeamName /Intern/Team1 1 "f L"
SetCfg /Intern/Team1s "" // Set Empty String
CatCfg /Intern/Team1s /InGame_p1/Country3L
FormatTeamName /Intern/Team2 2 "f L"
SetCfg /Intern/Team2s "" // Set Empty String
CatCfg /Intern/Team2s /InGame_p2/Country3L
}
// Short names in light scoreboard
item
{
Text /Intern/Team1s
Pos /Intern/ScoreX /Intern/ScoreYu Left Center
Font NameF
ShrinkToMaxPixel LightScoreNameMax
ShowIfNot /Intern/ScoreType 1
OnRender
{
MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
}
}
item
{
Text /Intern/Team2s
Pos /Intern/ScoreX /Intern/ScoreYd Left Center
Font NameF
ShrinkToMaxPixel LightScoreNameMax
ShowIfNot /Intern/ScoreType 1
}
// Short names in light scoreboard
item
{
Text /Intern/InGame_p1/Country3L
Pos /Intern/ScoreX /Intern/ScoreYu Left Center
Font NameF
ShrinkToMaxPixel LightScoreNameMax
ShowIfNot /Intern/ScoreType 1
OnRender
{
MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
}
}
item
{
Text /Intern/InGame_p1/Country3L
Pos /Intern/ScoreX /Intern/ScoreYd Left Center
Font NameF
ShrinkToMaxPixel LightScoreNameMax
ShowIfNot /Intern/ScoreType 1
}
Dilima wrote:And who much do I need to increase and what value do I use for LightScoreNameX?
Thanks
OnActionIf /Intern/GameType 2
{
//=== Player Name Formatting Example
// f = First Name Untouched ; F = First Name Uppercase
// l = Last Name Untouched ; L = Last Name Uppercase
// 3. => Max of 3 Letters, add a point if shortened or followed by more text without space
FormatTeamName /Intern/Team1 1 "f L"
SetCfg /Intern/Team1s "" // Set Empty String
CatCfg /Intern/Team1s /InGame_p1/Country3L
FormatTeamName /Intern/Team2 2 "f L"
SetCfg /Intern/Team2s "" // Set Empty String
CatCfg /Intern/Team2s /InGame_p2/Country3L
}
}
OnActionIf /Intern/PlayerCfg 0
{
//=== Player Name Formatting Example
// f = First Name Untouched ; F = First Name Uppercase
// l = Last Name Untouched ; L = Last Name Uppercase
// 3. => Max of 3 Letters, add a point if shortened or followed by more text without space
FormatTeamName /Intern/Team1s 1 "f L"
SetCfg /Intern/Team1 "" // Set Empty String
CatCfg /Intern/Team1 /Intern/Team1s
FormatTeamName /Intern/Team2s 2 "f L"
SetCfg /Intern/Team2 "" // Set Empty String
CatCfg /Intern/Team2 /Intern/Team2s
FormatTeamName /Intern/Team1s 1 "L25."
FormatTeamName /Intern/Team2s 2 "L25."
}
Invisible
}
item
{
Text /InGame_p1/Country3L
kersou wrote:Amaz Ouz,
Désolé je n'ai pas été assez précis !
Il faut remplacer :
/Intern/Team1s
par:
/InGame_p1/Country3L
Tu auras donc une ligne du style :
- Code: Select all
item
{
Text /InGame_p1/Country3L
Pour les drapeaux, il faut que tu récupère le code dans Davis_hudscoreboard.menu qui permet l'affichage des drapeaux dans le light sb.
Dilima,
Je ne sais pas trop : il faut faire des tests !
Tente au pif: LightScoreNameW = 90 et LightScoreNameX = 60...
Users browsing this forum: AhRefs [Bot], ClaudeBot, Google [Bot], Majestic-12 [Bot], Meta [Bot], SemRush [Bot] and 1 guest