Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VONEntry.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
4{
5 protected bool m_bIsUsable = true; // whether this entry is allowed to be used (f.e. radio turned off)
6 protected bool m_bIsActive; // this entry will be used in case of outgoing transmission
7 protected bool m_bIsMuted; // this transceiver entry is muted
8 protected bool m_bIsSelected; // this entry is currently selected/hovered in a menu
9 protected string m_sText; // current display text
10
11 //------------------------------------------------------------------------------------------------
12 // Init entry data
13 void InitEntry()
14 {}
15
16 //------------------------------------------------------------------------------------------------
18 void SetUsable(bool state)
19 {
20 m_bIsUsable = state;
21 }
22
23 //------------------------------------------------------------------------------------------------
25 bool IsUsable()
26 {
27 return m_bIsUsable;
28 }
29
30 //------------------------------------------------------------------------------------------------
32 void SetActive(bool state)
33 {
34 m_bIsActive = state;
35 }
36
37 //------------------------------------------------------------------------------------------------
39 bool IsActive()
40 {
41 return m_bIsActive;
42 }
43
44 //------------------------------------------------------------------------------------------------
46 void SetMuted(bool state)
47 {
48 m_bIsMuted = state;
49 }
50
51 //------------------------------------------------------------------------------------------------
53 void SetSelected(bool state)
54 {
55 m_bIsSelected = state;
56 }
57
58 //------------------------------------------------------------------------------------------------
61 void AdjustEntry(int modifier)
62 {}
63
64 //------------------------------------------------------------------------------------------------
67 void AdjustEntryModif(int modifier)
68 {}
69
70 //------------------------------------------------------------------------------------------------
73 {}
74
75 //------------------------------------------------------------------------------------------------
78 {
79 return m_sText;
80 }
81
82 //------------------------------------------------------------------------------------------------
85 {
86 return string.Empty;
87 }
88
89 //------------------------------------------------------------------------------------------------
92 {
93 return ECommMethod.DIRECT;
94 }
95
96 //------------------------------------------------------------------------------------------------
98 override void Update()
99 {
100 }
101};
ECommMethod
Definition ECommMethod.c:8
void SCR_SelectionMenuEntry()
Voice over network entry data class, used for management of communication methods.
Definition SCR_VONEntry.c:4
string GetIconResource()
Get icon resource path string.
string GetDisplayText()
Get entry display text such as current frequency.
bool m_bIsUsable
Definition SCR_VONEntry.c:5
string m_sText
Definition SCR_VONEntry.c:9
void AdjustEntryModif(int modifier)
void InitEntry()
void SetActive(bool state)
Activate entry.
void SetMuted(bool state)
Activate entry.
void SetUsable(bool state)
Usable entry.
bool IsActive()
Is active entry.
override void Update()
Called only when update is requested.
void ToggleEntry()
Toggle entry such as radio on/off.
void AdjustEntry(int modifier)
bool m_bIsActive
Definition SCR_VONEntry.c:6
bool IsUsable()
Is usable entry.
void SetSelected(bool state)
Set entry selection state.
bool m_bIsSelected
Definition SCR_VONEntry.c:8
ECommMethod GetVONMethod()
VON method type.
bool m_bIsMuted
Definition SCR_VONEntry.c:7