Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VonDisplay.c File Reference

Go to the source code of this file.

Data Structures

class  TransmissionData
 Data class for transmissions. More...
 

Functions

class TransmissionData Attribute ("{2EFEA2AF1F38E7F0}UI/Textures/Icons/icons_wrapperUI-64.m_sImageSet")]
 VON display of active outgoing and incoming transmissions. More...
 
void HideTransmission ()
 
void TransmissionData (Widget base, int iPlayerID)
 
int GetActiveTransmissionsCount ()
 Count of active incoming transmissions. More...
 
bool IsCapturingTransmisionActive ()
 Whether outgoing transmission is currently active. More...
 
event void OnCapture (BaseTransceiver transmitter)
 VONComponent event. More...
 
protected Widget GetWidget ()
 
event void OnReceive (int playerId, BaseTransceiver receiver, int frequency, float quality)
 VONComponent event. More...
 
protected bool UpdateTransmission (TransmissionData data, BaseTransceiver radioTransceiver, int frequency, bool IsReceiving)
 
protected void OpacityFade (TransmissionData data, float timeSlice, bool isAdditional=false)
 
void ShowSelectedVONHint (SCR_VONEntry entry)
 Show hint displaying which VON method was selected. More...
 
void ShowSelectedVONDisabledHint (bool isServerDisabled=false)
 
protected void FadeSelectedVONHint ()
 
protected void SetHintIcon (bool isRadio)
 Set VON info hint icon type. More...
 
protected void OnVONActiveToggled (bool directState, bool channelState)
 SCR_VONController event -> Toggle microphone indication. More...
 
protected void OnDestroyed (Instigator killer, IEntity killerEntity)
 SCR_PlayerController Event. More...
 
protected void InitDisplay ()
 Initialize. More...
 
protected void OnSlotUIResize ()
 
protected void UpdateWidgets ()
 
override void DisplayUpdate (IEntity owner, float timeSlice)
 
override bool DisplayStartDrawInit (IEntity owner)
 
override void DisplayStartDraw (IEntity owner)
 
override void DisplayControlledEntityChanged (IEntity from, IEntity to)
 
override void DisplayStopDraw (IEntity owner)
 

Variables

ref SCR_VoNOverlay_ElementWidgets m_Widgets
 
Widget m_wBaseWidget
 
bool m_bForceUpdate
 
bool m_bVisible
 
bool m_bIsActive
 
bool m_bIsAnimating
 
bool m_bIsAdditional
 
int m_iPlayerID
 
float m_fAlpha
 
float m_fActiveTimeout
 
float m_fFrequency
 
float m_fQuality
 
IEntity m_Entity
 
Faction m_Faction
 
BaseTransceiver m_RadioTransceiver
 
protected string m_sImageSet
 
protected string m_sImageSetGlow
 
protected string m_sReceivingTransmissionLayout
 
const string ICON_DIRECT_SPEECH = "VON_directspeech"
 
const string ICON_RADIO_HINT = "VON_radio"
 
const string ICON_RADIO = "VON_frequency"
 
const string ICON_SERVER_DISABLE_HINT = "server-locked"
 
const string LABEL_FREQUENCY_UNITS = "#AR-VON_FrequencyUnits_MHz"
 
const string LABEL_UNKNOWN_SOURCE = "#AR-VON_UnknownSource"
 
const string LABEL_CHANNEL_PLATOON = "#AR-VON_ChannelPlatoon-UC"
 
const string WIDGET_INCOMING = "VonIncoming"
 
const string WIDGET_TRANSMIT = "VonTransmitting"
 
const string WIDGET_OVERFLOW = "VonAdditional"
 
const string WIDGET_OVERFLOW_TEXT = "number"
 
const string WIDGET_SELECTED_ROOT = "VonSelected"
 
const string WIDGET_SELECTED_ICON = "Selected_Icon"
 
const string WIDGET_SELECTED_ICONGLOW = "Selected_IconGlow"
 
const string WIDGET_SELECTED_VON = "Selected_VONChannel"
 
const string WIDGET_SELECTED_TEXT = "Selected_Text"
 
const ref Color COLOR_WHITE = Color.FromSRGBA(255, 255, 255, 255)
 
protected int m_iTransmissionSlots = 4
 
const float FADEOUT_TIMER_THRESHOLD = 1
 
const float FADEIN_SPEED = 10
 
const float FADEOUT_SPEED = 5
 
const int SELECTED_HINT_FADE_SPEED = 3000
 
const int HEIGHT_DIVIDER = 35
 
protected bool m_bIsVONUIDisabled
 
protected bool m_bIsVONDirectDisabled
 
protected bool m_bIsDirectToggled
 
protected bool m_bIsChannelToggled
 
protected ref TransmissionData m_OutTransmission
 
protected ref array< Widget > m_aWidgetsIncomingVON = {}
 
protected ref array< ref TransmissionDatam_aTransmissions = {}
 
protected ref map< int, TransmissionDatam_aTransmissionMap = new map<int, TransmissionData>
 
protected ref array< ref TransmissionDatam_aAdditionalSpeakers = {}
 
protected PlayerManager m_PlayerManager
 
protected SCR_VONController m_VONController
 
protected SCR_InfoDisplaySlotHandler m_SlotHandler
 
protected SCR_HUDSlotUIComponent m_HUDSlotComponent
 
protected Widget m_wVerticalLayout
 
protected Widget m_wSelectedHint
 
protected ImageWidget m_wSelectedHintIcon
 
protected ImageWidget m_wSelectedHintIconGlow
 
protected TextWidget m_wSelectedVON
 
protected TextWidget m_wSelectedText
 
protected Widget m_wTalkingAmountWidget
 
protected Widget m_wAdditionalSpeakersWidget
 
protected RichTextWidget m_wAdditionalSpeakersText
 

Function Documentation

◆ Attribute()

class TransmissionData Attribute ( "{2EFEA2AF1F38E7F0}UI/Textures/Icons/icons_wrapperUI-64.m_sImageSet )

VON display of active outgoing and incoming transmissions.

◆ DisplayControlledEntityChanged()

override void DisplayControlledEntityChanged ( IEntity  from,
IEntity  to 
)

Definition at line 739 of file SCR_VonDisplay.c.

◆ DisplayStartDraw()

override void DisplayStartDraw ( IEntity  owner)

Definition at line 730 of file SCR_VonDisplay.c.

◆ DisplayStartDrawInit()

override bool DisplayStartDrawInit ( IEntity  owner)

Definition at line 722 of file SCR_VonDisplay.c.

◆ DisplayStopDraw()

override void DisplayStopDraw ( IEntity  owner)

Definition at line 752 of file SCR_VonDisplay.c.

◆ DisplayUpdate()

override void DisplayUpdate ( IEntity  owner,
float  timeSlice 
)

Definition at line 618 of file SCR_VonDisplay.c.

◆ FadeSelectedVONHint()

protected void FadeSelectedVONHint ( )

Definition at line 478 of file SCR_VonDisplay.c.

◆ GetActiveTransmissionsCount()

int GetActiveTransmissionsCount ( )

Count of active incoming transmissions.

Definition at line 117 of file SCR_VonDisplay.c.

◆ GetWidget()

protected Widget GetWidget ( )

Definition at line 155 of file SCR_VonDisplay.c.

◆ HideTransmission()

void Attribute::HideTransmission ( )

Definition at line 22 of file SCR_VonDisplay.c.

◆ InitDisplay()

protected void InitDisplay ( )

Initialize.

Definition at line 531 of file SCR_VonDisplay.c.

◆ IsCapturingTransmisionActive()

bool IsCapturingTransmisionActive ( )

Whether outgoing transmission is currently active.

Definition at line 124 of file SCR_VonDisplay.c.

◆ OnDestroyed()

protected void OnDestroyed ( Instigator  killer,
IEntity  killerEntity 
)

SCR_PlayerController Event.

Definition at line 517 of file SCR_VonDisplay.c.

◆ OnSlotUIResize()

protected void OnSlotUIResize ( )

Definition at line 566 of file SCR_VonDisplay.c.

◆ OnVONActiveToggled()

protected void OnVONActiveToggled ( bool  directState,
bool  channelState 
)

SCR_VONController event -> Toggle microphone indication.

Definition at line 503 of file SCR_VonDisplay.c.

◆ OpacityFade()

protected void OpacityFade ( TransmissionData  data,
float  timeSlice,
bool  isAdditional = false 
)

Fade in/out elements

Parameters
TransmissionDatais the subject
timeSliceis the OnFrame slice

Definition at line 380 of file SCR_VonDisplay.c.

◆ SetHintIcon()

protected void SetHintIcon ( bool  isRadio)

Set VON info hint icon type.

Definition at line 485 of file SCR_VonDisplay.c.

◆ ShowSelectedVONDisabledHint()

void ShowSelectedVONDisabledHint ( bool  isServerDisabled = false)

Show hint displaying which VON method was selected

Parameters
isServerDisableddetermines type of disable

Definition at line 454 of file SCR_VonDisplay.c.

◆ ShowSelectedVONHint()

void ShowSelectedVONHint ( SCR_VONEntry  entry)

Show hint displaying which VON method was selected.

Definition at line 424 of file SCR_VonDisplay.c.

◆ TransmissionData()

void Attribute::TransmissionData ( Widget  base,
int  iPlayerID 
)

Definition at line 34 of file SCR_VonDisplay.c.

◆ UpdateTransmission()

protected bool UpdateTransmission ( TransmissionData  data,
BaseTransceiver  radioTransceiver,
int  frequency,
bool  IsReceiving 
)

Update transmission data

Parameters
TransmissionDatais the subject
radioTransceiveris the used transceiver for the transmission
IsReceivingis true when receiving transmission, false when transmitting
isAdditionalSpeakeris true when all incomming transmission widgets are full
Returns
false if the transimission is filtered out to not be visible

Definition at line 238 of file SCR_VonDisplay.c.

◆ UpdateWidgets()

protected void UpdateWidgets ( )

Definition at line 582 of file SCR_VonDisplay.c.

Variable Documentation

◆ COLOR_WHITE

const ref Color COLOR_WHITE = Color.FromSRGBA(255, 255, 255, 255)

Definition at line 80 of file SCR_VonDisplay.c.

◆ FADEIN_SPEED

const float FADEIN_SPEED = 10

Definition at line 84 of file SCR_VonDisplay.c.

◆ FADEOUT_SPEED

const float FADEOUT_SPEED = 5

Definition at line 85 of file SCR_VonDisplay.c.

◆ FADEOUT_TIMER_THRESHOLD

const float FADEOUT_TIMER_THRESHOLD = 1

Definition at line 83 of file SCR_VonDisplay.c.

◆ HEIGHT_DIVIDER

const int HEIGHT_DIVIDER = 35

Definition at line 87 of file SCR_VonDisplay.c.

◆ ICON_DIRECT_SPEECH

const string ICON_DIRECT_SPEECH = "VON_directspeech"

Definition at line 62 of file SCR_VonDisplay.c.

◆ ICON_RADIO

const string ICON_RADIO = "VON_frequency"

Definition at line 64 of file SCR_VonDisplay.c.

◆ ICON_RADIO_HINT

const string ICON_RADIO_HINT = "VON_radio"

Definition at line 63 of file SCR_VonDisplay.c.

◆ ICON_SERVER_DISABLE_HINT

const string ICON_SERVER_DISABLE_HINT = "server-locked"

Definition at line 65 of file SCR_VonDisplay.c.

◆ LABEL_CHANNEL_PLATOON

const string LABEL_CHANNEL_PLATOON = "#AR-VON_ChannelPlatoon-UC"

Definition at line 69 of file SCR_VonDisplay.c.

◆ LABEL_FREQUENCY_UNITS

const string LABEL_FREQUENCY_UNITS = "#AR-VON_FrequencyUnits_MHz"

Definition at line 67 of file SCR_VonDisplay.c.

◆ LABEL_UNKNOWN_SOURCE

const string LABEL_UNKNOWN_SOURCE = "#AR-VON_UnknownSource"

Definition at line 68 of file SCR_VonDisplay.c.

◆ m_aAdditionalSpeakers

protected ref array<ref TransmissionData> m_aAdditionalSpeakers = {}

Definition at line 98 of file SCR_VonDisplay.c.

◆ m_aTransmissionMap

protected ref map<int, TransmissionData> m_aTransmissionMap = new map<int, TransmissionData>

Definition at line 97 of file SCR_VonDisplay.c.

◆ m_aTransmissions

protected ref array<ref TransmissionData> m_aTransmissions = {}

Definition at line 96 of file SCR_VonDisplay.c.

◆ m_aWidgetsIncomingVON

protected ref array<Widget> m_aWidgetsIncomingVON = {}

Definition at line 95 of file SCR_VonDisplay.c.

◆ m_bForceUpdate

bool m_bForceUpdate

Definition at line 6 of file SCR_VonDisplay.c.

◆ m_bIsActive

bool m_bIsActive

Definition at line 8 of file SCR_VonDisplay.c.

◆ m_bIsAdditional

bool m_bIsAdditional

Definition at line 10 of file SCR_VonDisplay.c.

◆ m_bIsAnimating

bool m_bIsAnimating

Definition at line 9 of file SCR_VonDisplay.c.

◆ m_bIsChannelToggled

protected bool m_bIsChannelToggled

Definition at line 92 of file SCR_VonDisplay.c.

◆ m_bIsDirectToggled

protected bool m_bIsDirectToggled

Definition at line 91 of file SCR_VonDisplay.c.

◆ m_bIsVONDirectDisabled

protected bool m_bIsVONDirectDisabled

Definition at line 90 of file SCR_VonDisplay.c.

◆ m_bIsVONUIDisabled

protected bool m_bIsVONUIDisabled

Definition at line 89 of file SCR_VonDisplay.c.

◆ m_bVisible

bool m_bVisible

Definition at line 7 of file SCR_VonDisplay.c.

◆ m_Entity

IEntity m_Entity

Definition at line 16 of file SCR_VonDisplay.c.

◆ m_Faction

Faction m_Faction

Definition at line 17 of file SCR_VonDisplay.c.

◆ m_fActiveTimeout

float m_fActiveTimeout

Definition at line 13 of file SCR_VonDisplay.c.

◆ m_fAlpha

float m_fAlpha

Definition at line 12 of file SCR_VonDisplay.c.

◆ m_fFrequency

float m_fFrequency

Definition at line 14 of file SCR_VonDisplay.c.

◆ m_fQuality

float m_fQuality

Definition at line 15 of file SCR_VonDisplay.c.

◆ m_HUDSlotComponent

protected SCR_HUDSlotUIComponent m_HUDSlotComponent

Definition at line 103 of file SCR_VonDisplay.c.

◆ m_iPlayerID

int m_iPlayerID

Definition at line 11 of file SCR_VonDisplay.c.

◆ m_iTransmissionSlots

protected int m_iTransmissionSlots = 4

Definition at line 82 of file SCR_VonDisplay.c.

◆ m_OutTransmission

protected ref TransmissionData m_OutTransmission

Definition at line 94 of file SCR_VonDisplay.c.

◆ m_PlayerManager

protected PlayerManager m_PlayerManager

Definition at line 100 of file SCR_VonDisplay.c.

◆ m_RadioTransceiver

BaseTransceiver m_RadioTransceiver

Definition at line 18 of file SCR_VonDisplay.c.

◆ m_sImageSet

protected string m_sImageSet

Definition at line 54 of file SCR_VonDisplay.c.

◆ m_sImageSetGlow

protected string m_sImageSetGlow

Definition at line 56 of file SCR_VonDisplay.c.

◆ m_SlotHandler

protected SCR_InfoDisplaySlotHandler m_SlotHandler

Definition at line 102 of file SCR_VonDisplay.c.

◆ m_sReceivingTransmissionLayout

protected string m_sReceivingTransmissionLayout

Definition at line 59 of file SCR_VonDisplay.c.

◆ m_VONController

protected SCR_VONController m_VONController

Definition at line 101 of file SCR_VonDisplay.c.

◆ m_wAdditionalSpeakersText

protected RichTextWidget m_wAdditionalSpeakersText

Definition at line 113 of file SCR_VonDisplay.c.

◆ m_wAdditionalSpeakersWidget

protected Widget m_wAdditionalSpeakersWidget

Definition at line 112 of file SCR_VonDisplay.c.

◆ m_wBaseWidget

Widget m_wBaseWidget

Definition at line 4 of file SCR_VonDisplay.c.

◆ m_Widgets

Definition at line 3 of file SCR_VonDisplay.c.

◆ m_wSelectedHint

protected Widget m_wSelectedHint

Definition at line 106 of file SCR_VonDisplay.c.

◆ m_wSelectedHintIcon

protected ImageWidget m_wSelectedHintIcon

Definition at line 107 of file SCR_VonDisplay.c.

◆ m_wSelectedHintIconGlow

protected ImageWidget m_wSelectedHintIconGlow

Definition at line 108 of file SCR_VonDisplay.c.

◆ m_wSelectedText

protected TextWidget m_wSelectedText

Definition at line 110 of file SCR_VonDisplay.c.

◆ m_wSelectedVON

protected TextWidget m_wSelectedVON

Definition at line 109 of file SCR_VonDisplay.c.

◆ m_wTalkingAmountWidget

protected Widget m_wTalkingAmountWidget

Definition at line 111 of file SCR_VonDisplay.c.

◆ m_wVerticalLayout

protected Widget m_wVerticalLayout

Definition at line 105 of file SCR_VonDisplay.c.

◆ SELECTED_HINT_FADE_SPEED

const int SELECTED_HINT_FADE_SPEED = 3000

Definition at line 86 of file SCR_VonDisplay.c.

◆ WIDGET_INCOMING

const string WIDGET_INCOMING = "VonIncoming"

Definition at line 70 of file SCR_VonDisplay.c.

◆ WIDGET_OVERFLOW

const string WIDGET_OVERFLOW = "VonAdditional"

Definition at line 72 of file SCR_VonDisplay.c.

◆ WIDGET_OVERFLOW_TEXT

const string WIDGET_OVERFLOW_TEXT = "number"

Definition at line 73 of file SCR_VonDisplay.c.

◆ WIDGET_SELECTED_ICON

const string WIDGET_SELECTED_ICON = "Selected_Icon"

Definition at line 75 of file SCR_VonDisplay.c.

◆ WIDGET_SELECTED_ICONGLOW

const string WIDGET_SELECTED_ICONGLOW = "Selected_IconGlow"

Definition at line 76 of file SCR_VonDisplay.c.

◆ WIDGET_SELECTED_ROOT

const string WIDGET_SELECTED_ROOT = "VonSelected"

Definition at line 74 of file SCR_VonDisplay.c.

◆ WIDGET_SELECTED_TEXT

const string WIDGET_SELECTED_TEXT = "Selected_Text"

Definition at line 78 of file SCR_VonDisplay.c.

◆ WIDGET_SELECTED_VON

const string WIDGET_SELECTED_VON = "Selected_VONChannel"

Definition at line 77 of file SCR_VonDisplay.c.

◆ WIDGET_TRANSMIT

const string WIDGET_TRANSMIT = "VonTransmitting"

Definition at line 71 of file SCR_VonDisplay.c.