Use the new BigMessage library
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
|
||||
// UI from Race
|
||||
#Include "ManiaApps/Nadeo/TMxSM/Race/UIModules/TimeGap_Server.Script.txt" as UIModules_TimeGap
|
||||
#Include "ManiaApps/Nadeo/TMxSM/Race/UIModules/BigMessage_Server.Script.txt" as UIModules_BigMessage
|
||||
#Include "ManiaApps/Nadeo/TMxSM/Race/UIModules/Checkpoint_Server.Script.txt" as UIModules_Checkpoint
|
||||
#Include "ManiaApps/Nadeo/TMxSM/Race/UIModules/ScoresTable_Server.Script.txt" as UIModules_ScoresTable
|
||||
#Include "ManiaApps/Nadeo/TMxSM/Race/UIModules/PauseMenuOnline_Server.Script.txt" as UIModules_PauseMenu_Online
|
||||
@ -401,15 +402,16 @@ if (MB_GetMapCount() >= S_MapsPerMatch) {
|
||||
UIManager.UIAll.BigMessageSound = CUIConfig::EUISound::EndRound;
|
||||
UIManager.UIAll.BigMessageSoundVariant = 0;
|
||||
|
||||
declare Text Message = _("|Match|Draw");
|
||||
declare CSmScore WinnerScore <=> Scores::GetPlayerWinner();
|
||||
if (WinnerScore != Null) {
|
||||
if (!MB_MatchIsRunning()) Message = TL::Compose(_("$<%1$> wins the match!"), Tools::GetNameWithClubTag(WinnerScore.User));
|
||||
else Message = TL::Compose(_("$<%1$> wins the map!"), Tools::GetNameWithClubTag(WinnerScore.User));
|
||||
if (!MB_MatchIsRunning()) {
|
||||
UIModules_BigMessage::SetMessage("$<%1$> wins the match!", WinnerScore.User.WebServicesUserId);
|
||||
} else {
|
||||
UIModules_BigMessage::SetMessage("$<%1$> wins the map!", WinnerScore.User.WebServicesUserId);
|
||||
}
|
||||
} else {
|
||||
UIModules_BigMessage::SetMessage(_("|Match|Draw"));
|
||||
}
|
||||
|
||||
UIManager.UIAll.BigMessage = Message;
|
||||
|
||||
// Compute match trophies
|
||||
Trophy_LiveTimeAttackAchievement_ClearResultList();
|
||||
|
||||
@ -469,7 +471,7 @@ UIManager.UIAll.UISequence = PrevUISequence;
|
||||
|
||||
***Match_AfterPodiumSequence***
|
||||
***
|
||||
UIManager.UIAll.BigMessage = "";
|
||||
UIModules_BigMessage::SetMessage("");
|
||||
UIModules_ScoresTable::ResetTrophies();
|
||||
***
|
||||
|
||||
|
Reference in New Issue
Block a user