4 [
Attribute(
"0", UIWidgets.ComboBox,
"Type of tracked vote.", enums: ParamEnumArray.FromEnum(
EVotingType))]
8 protected bool m_bShowInPlayerList;
32 protected void OnPlayerListMenu(
bool isOpened)
38 if (votingManager && votingManager.IsVoting(
m_Type))
43 protected bool IsPlayerListMenu()
45 if (!m_bShowInPlayerList)
48 MenuManager menuManager =
GetGame().GetMenuManager();
49 return !menuManager || menuManager.FindMenuByPreset(
ChimeraMenuPreset.PlayerListMenu);
53 override protected void OnInitCondition(Managed owner)
59 votingManager.GetOnVotingStart().Insert(OnVotingStart);
60 votingManager.GetOnVotingEnd().Insert(OnVotingEnd);
61 votingManager.GetOnVoteLocal().Insert(OnVoteLocal);
62 votingManager.GetOnRemoveVoteLocal().Insert(OnVotingStart);
68 override protected void OnExitCondition(Managed owner)
74 votingManager.GetOnVotingStart().Remove(OnVotingStart);
75 votingManager.GetOnVotingEnd().Remove(OnVotingEnd);
76 votingManager.GetOnVoteLocal().Remove(OnVoteLocal);
77 votingManager.GetOnRemoveVoteLocal().Remove(OnVotingStart);