3 protected int m_iPlayerID = -1;
4 protected bool m_bMuted =
false;
15 void SetPlayerID(
int playerID)
21 override bool OnClick(Widget w,
int x,
int y,
int button)
23 PlayerController pController =
GetGame().GetPlayerController();
30 pController.SetPlayerBlockedState(
m_iPlayerID,
false);
31 TextWidget.Cast(w.GetParent().FindAnyWidget(
"Text")).SetTextFormat(
"#AR-ButtonMutePlayer");
35 pController.SetPlayerBlockedState(
m_iPlayerID,
true);
36 TextWidget.Cast(w.GetParent().FindAnyWidget(
"Text")).SetTextFormat(
"#AR-ButtonUnmutePlayer");