Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ChatChannel.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
2[EntityEditorProps(category: "GameScripted/Channels", description: "Channel Manager", color: "0 0 255 255")]
3
4//TODO: Probably remove this class for now
6{
7 [Attribute("", uiwidget: UIWidgets.EditBox, desc :"Id")]
8 int m_iId;
9 [Attribute("#AR-Chat_CannotAccessChannel", uiwidget: UIWidgets.EditBox, desc :"Default message for channel warning")]
10 string m_sWarningMessage;
11 [Attribute("1", UIWidgets.CheckBox, "Enables/disables channel for script functionality")]
12 bool m_bChannelEnabled;
13
14 //------------------------------------------------------------------------------------------------
15 // TODO: Remove this. Channel is not responsible for this.
16 bool IsChannelEnabled()
17 {
18 return m_bChannelEnabled;
19 }
20
21
22 // TODO: Remove this. Channels are all enabled by default now. Disabling them on player side
23 // could be done by the channel itself
24 //------------------------------------------------------------------------------------------------
25 int GetID()
26 {
27 return m_iId;
28 }
29
30 //------------------------------------------------------------------------------------------------
31 // If there is some warning needed, just hardcode it in SCR_Chat for now.
32 // With some comment to make it more generic in next iteration
33 string GetWarningMessage()
34 {
35 return m_sWarningMessage;
36 }
37
38};
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute