8 TextWidget text = TextWidget.Cast(widget.FindAnyWidget(
"Text"));
12 BaseGameMode gameMode =
GetGame().GetGameMode();
16 SCR_CampaignBuildingCompositionComponent compositionComponent = SCR_CampaignBuildingCompositionComponent.Cast(entity.GetOwner().FindComponent(SCR_CampaignBuildingCompositionComponent));
17 if (!compositionComponent)
20 string name = GetPlayerName(compositionComponent.GetBuilderId());
29 protected string GetPlayerName(
int playerID)
35 string playerName = playerManager.GetPlayerName(playerID);
38 if (playerName.IsEmpty())
40 SCR_NotificationsComponent notificationsManager = SCR_NotificationsComponent.GetInstance();
41 if (notificationsManager)
42 playerName = notificationsManager.GetPlayerNameFromHistory(playerID);