Arma Reforger Script API
|
Component which must be attached to chat layout. More...
Public Member Functions | |
void | OnUpdateChat (float timeSlice) |
This must be called for chat to work. Typically it should be called from HUD Manager or from Menu. | |
void | OnHUDResize (int newMessageLineCount) |
Adjust the amount of messages shown when the size of the HUD changes. | |
bool | IsOpen () |
bool | GetFadeOut () |
True when fading in or when has faded in already. | |
bool | GetFadeIn () |
True when fading out or has faded out already. | |
void | Internal_Open () |
Don't call it yourself, use SCR_ChatPanelManager instead. | |
void | Internal_Close () |
Don't call it yourself, use SCR_ChatPanelManager instead. | |
void | Internal_OnNewMessage (SCR_ChatMessage msg) |
notnull Widget | GetWidget () |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
string | Internal_GetChannelListHelpMessage () |
Returns string with help message about available channels. | |
ScriptInvoker | GetOnChatOpen () |
ScriptInvoker | GetOnChatClosed () |
SCR_FadeInOutAnimator | GetFadeInOutAnimator () |
Protected Member Functions | |
void | UpdateChatMessages () |
void | SendMessage () |
void | CycleChannels (bool next) |
next: true - cycle up, false - cycle down | |
void | ShowChannelWarning (BaseChatChannel Chatchannel=null, string message="") |
string | GetCommand (string s) |
Returns command from this message string, if it has a command. | |
BaseChatChannel | FindChannelByPrefix (string prefix) |
int | GetPlayerIdByName (string name) |
void | SetActiveChannel (notnull BaseChatChannel channel, string ReceiverName=string.Empty) |
Switches channels and replaces the channel tag. | |
void | VerifyChannelStyles () |
SCR_ChatMessageStyle | GetChannelStyle (BaseChatChannel channel) |
Returns style of this channel. If not resolved, returns system style. | |
SCR_ChatMessageStyle | GetMessageStyle (notnull SCR_ChatMessage msg) |
SCR_ChatComponent | GetChatComponent () |
int | GetChannelId (notnull BaseChatChannel channel) |
void | Callback_OnPressSpaceAfterCommand () |
Called by space bar when we change channel by tag. | |
void | Callback_OnCloseAction () |
Called when Esc is pressed. | |
void | Callback_OnSendMessageAction () |
Called when chat toggle key is pressed. | |
void | Callback_OnGamepadConfirmAction () |
When chat is opened while using gamepad, we don't set focus on edit box, so that player can change channel. | |
void | Callback_OnHistoryAction (float value) |
History scrolling. | |
void | Callback_OnSwitchChannelAction (float value, EActionTrigger reason) |
Channel switching. | |
void | Callback_OnEditBoxChange () |
Called when text in the edit box changes. | |
Protected Attributes | |
ref ScriptInvoker | m_OnChatOpen |
ref ScriptInvoker | m_OnChatClosed |
int | m_iMessageLineCount |
float | m_fFadeOutThreshold_s |
bool | m_bAlwaysVisible |
ResourceName | m_sChatMessageLineLayout |
int | m_iHistoryId = 0 |
int | m_iHistoryIdLowestMessage = 0 |
bool | m_bHistoryMode = false |
ref array< SCR_ChatMessageLineComponent > | m_aMessageLines = {} |
bool | m_bOpen = false |
ScriptedChatEntity | m_ChatEntity |
BaseChatChannel | m_ActiveChannel |
Widget | m_wRoot |
ref SCR_ChatPanelWidgets | m_Widgets = new SCR_ChatPanelWidgets() |
Static Protected Attributes | |
const string | STR_AVAILABLE_CHANNELS = "#AR-Chat_AvailableChannels" |
const string | STR_CHANNEL_DISABLED = "#AR-Chat_ChannelDisabled" |
const string | STR_CHANNEL_UNKNOWN = "#AR-Chat_ChannelUnknown" |
const string | STR_MESSAGE_LIMIT_REACHED = "#AR-Chat_LimitReached" |
Component which must be attached to chat layout.
Use public API to open the chat. It will not open itself. However it will close itself automatically when a message is sent.
|
protected |
Called when Esc is pressed.
|
protected |
Called when text in the edit box changes.
|
protected |
When chat is opened while using gamepad, we don't set focus on edit box, so that player can change channel.
Instead focus is set when player uses the ChatConfirm action. Should be mapped only to gamepad.
|
protected |
History scrolling.
|
protected |
Called by space bar when we change channel by tag.
|
protected |
Called when chat toggle key is pressed.
|
protected |
Channel switching.
|
protected |
next: true - cycle up, false - cycle down
|
protected |
|
protected |
|
protected |
Returns style of this channel. If not resolved, returns system style.
|
protected |
|
protected |
Returns command from this message string, if it has a command.
Otherwise returns empty string. Returned string is always lowercase
bool SCR_ChatPanel.GetFadeIn | ( | ) |
True when fading out or has faded out already.
SCR_FadeInOutAnimator SCR_ChatPanel.GetFadeInOutAnimator | ( | ) |
bool SCR_ChatPanel.GetFadeOut | ( | ) |
True when fading in or when has faded in already.
|
protected |
ScriptInvoker SCR_ChatPanel.GetOnChatClosed | ( | ) |
ScriptInvoker SCR_ChatPanel.GetOnChatOpen | ( | ) |
|
protected |
notnull Widget SCR_ChatPanel.GetWidget | ( | ) |
override void SCR_ChatPanel.HandlerAttached | ( | Widget | w | ) |
override void SCR_ChatPanel.HandlerDeattached | ( | Widget | w | ) |
void SCR_ChatPanel.Internal_Close | ( | ) |
Don't call it yourself, use SCR_ChatPanelManager instead.
string SCR_ChatPanel.Internal_GetChannelListHelpMessage | ( | ) |
Returns string with help message about available channels.
void SCR_ChatPanel.Internal_OnNewMessage | ( | SCR_ChatMessage | msg | ) |
void SCR_ChatPanel.Internal_Open | ( | ) |
Don't call it yourself, use SCR_ChatPanelManager instead.
bool SCR_ChatPanel.IsOpen | ( | ) |
void SCR_ChatPanel.OnHUDResize | ( | int | newMessageLineCount | ) |
Adjust the amount of messages shown when the size of the HUD changes.
void SCR_ChatPanel.OnUpdateChat | ( | float | timeSlice | ) |
This must be called for chat to work. Typically it should be called from HUD Manager or from Menu.
|
protected |
|
protected |
Switches channels and replaces the channel tag.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_DirectChannelStyle |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_FactionChannelStyle |
|
protected |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_GlobalChannelStyle |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_GroupChannelStyle |
|
protected |
|
protected |
|
protected |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_LocalChannelStyle |
EditBoxFilterComponent SCR_ChatPanel.m_MessageEditBoxComponent |
ref SCR_FadeInOutAnimator SCR_ChatPanel.m_MessageHistoryAnimator |
|
protected |
|
protected |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_RadioProtocolStyle |
|
protected |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_SystemChannelStyle |
ref SCR_ChatMessageStyle SCR_ChatPanel.m_VehicleChannelStyle |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |