Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VotingUIInfo.c
Go to the documentation of this file.
3 {
4  [Attribute(desc: "Text used when starting a vote about something.")]
5  protected LocalizedString m_sStartVotingName;
6 
7  [Attribute("", desc: "Text used when canceling your vote about something.")]
8  protected LocalizedString m_sCancelVotingName;
9 
10  [Attribute("", desc: "Text used when currently abstaining but want to revote to yes. Leave empty to use normal vote string")]
11  protected LocalizedString m_sRevoteName;
12 
13  [Attribute("", desc: "When a vote is in progress and the player has not yet voted or abstained.")]
14  protected LocalizedString m_sAbstainVoteName;
15 
16  [Attribute(desc: "Text shown consistently when the vote is active. %1 is player that is voted for")]
17  protected LocalizedString m_sStickyNotificationText;
18 
19  [Attribute(ENotification.UNKNOWN.ToString(), desc: "The Start notification id to which the voting type is linked. Leave UNKNOWN to not have a notification", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(ENotification))]
20  protected ENotification m_iStartNotificationId;
21 
22  [Attribute(ENotification.UNKNOWN.ToString(), desc: "The Succeed notification id to which the voting type is linked. Leave UNKNOWN to not have a notification", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(ENotification))]
23  protected ENotification m_iSucceededNotificationId;
24 
25  [Attribute(ENotification.UNKNOWN.ToString(), desc: "The Fail notification id to which the voting type is linked. Leave UNKNOWN to not have a notification", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(ENotification))]
26  protected ENotification m_iFailedNotificationId;
27 
28  [Attribute(ENotification.UNKNOWN.ToString(), desc: "Local notification send when player casts vote. Leave UNKNOWN to not have a notification", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(ENotification))]
29  protected ENotification m_eVoteCastedLocalNotification;
30 
31  [Attribute(ENotification.UNKNOWN.ToString(), desc: "Local notification send when player abstains from voting. Leave UNKNOWN to not have a notification", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(ENotification))]
32  protected ENotification m_eVoteAbstainedLocalNotification;
33 
34  //------------------------------------------------------------------------------------------------
36  string GetStartVotingName()
37  {
38  if (!SCR_StringHelper.IsEmptyOrWhiteSpace(m_sStartVotingName))
39  return m_sStartVotingName;
40  else
41  return "ERROR MISSING START VOTE IN UIINFO";
42  }
43 
44  //------------------------------------------------------------------------------------------------
46  string GetCancelVotingName()
47  {
48  if (!SCR_StringHelper.IsEmptyOrWhiteSpace(m_sCancelVotingName))
49  return m_sCancelVotingName;
50  else
51  return "ERROR MISSING CANCEL VOTE IN UIINFO";
52  }
53 
54  //------------------------------------------------------------------------------------------------
56  string GetRevoteName()
57  {
58  if (!SCR_StringHelper.IsEmptyOrWhiteSpace(m_sRevoteName))
59  return m_sRevoteName;
60  else
61  return GetName();
62  }
63 
64  //------------------------------------------------------------------------------------------------
66  string GetAbstainVoteName()
67  {
68  if (!SCR_StringHelper.IsEmptyOrWhiteSpace(m_sAbstainVoteName))
69  return m_sAbstainVoteName;
70  else
71  return "ERROR MISSING ABSTAIN VOTE IN UIINFO";
72  }
73 
74  //------------------------------------------------------------------------------------------------
77  string GetStickyNotificationText()
78  {
79  return m_sStickyNotificationText;
80  }
81 
82  //------------------------------------------------------------------------------------------------
85  ENotification GetVotingStartNotification()
86  {
87  return m_iStartNotificationId;
88  }
89 
90  //------------------------------------------------------------------------------------------------
93  ENotification GetVotingSucceedNotification()
94  {
95  return m_iSucceededNotificationId;
96  }
97 
98  //------------------------------------------------------------------------------------------------
101  ENotification GetVotingFailNotification()
102  {
103  return m_iFailedNotificationId;
104  }
105 
106  //------------------------------------------------------------------------------------------------
109  ENotification GetLocalVoteCastNotification()
110  {
111  return m_eVoteCastedLocalNotification;
112  }
113 
114  //------------------------------------------------------------------------------------------------
117  ENotification GetLocalVoteAbstainedNotification()
118  {
119  return m_eVoteAbstainedLocalNotification;
120  }
121 }
GetName
string GetName()
Definition: SCR_ScenarioFrameworkLayerBase.c:85
SCR_BaseContainerLocalizedTitleField
SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField("m_sTabButtonContent")
Definition: SCR_TabViewComponent.c:963
SCR_StringHelper
Definition: SCR_StringHelper.c:1
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
ENotification
ENotification
Definition: ENotification.c:4
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_VotingUIInfo
Definition: SCR_VotingUIInfo.c:2
LocalizedString
Definition: LocalizedString.c:21
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468