4 protected string m_sPlayerNameWidgetName;
6 protected TextWidget m_wPlayerName;
11 super.SetEntity(entity, widget, slotManager);
13 SCR_EditablePlayerDelegateComponent delegate = SCR_EditablePlayerDelegateComponent.Cast(entity);
17 int playerID = delegate.GetPlayerID();
19 m_wPlayerName = TextWidget.Cast(widget.FindAnyWidget(m_sPlayerNameWidgetName));
21 m_wPlayerName.SetText(
GetGame().GetPlayerManager().GetPlayerName(playerID));
25 override bool OnFocus(Widget w,
int x,
int y)
27 super.OnFocus(w, x, y);
30 m_wPlayerName.SetColor(Color.FromInt(
UIColors.HIGHLIGHTED.PackToInt()));
36 override bool OnFocusLost(Widget w,
int x,
int y)
38 super.OnFocusLost(w, x, y);
41 m_wPlayerName.SetColor(Color.FromInt(Color.WHITE));