Arma Reforger Script API
|
VON display of active outgoing and incoming transmissions. More...
Public Member Functions | |
int | GetActiveTransmissionsCount () |
Count of active incoming transmissions. | |
bool | IsCapturingTransmisionActive () |
Whether outgoing transmission is currently active. | |
void | OnCapture (BaseTransceiver transmitter) |
VONComponent event. | |
void | OnReceive (int playerId, BaseTransceiver receiver, int frequency, float quality) |
VONComponent event. | |
void | ShowSelectedVONHint (SCR_VONEntry entry) |
Show hint displaying which VON method was selected. | |
void | ShowSelectedVONDisabledHint (bool isServerDisabled=false) |
Show hint displaying which VON method was selected. | |
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) |
Public Member Functions inherited from SCR_InfoDisplayExtended | |
void | SetEnabled (bool isEnabled) |
override void | Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR) |
Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility. | |
Public Member Functions inherited from SCR_InfoDisplay | |
SCR_InfoDisplayHandler | GetHandler (TypeName handlerType) |
SCR_InfoDisplayInvoker | GetOnStart () |
SCR_InfoDisplayInvoker | GetOnStop () |
IEntity | GetOwnerEntity () |
Widget | GetContentWidget () |
string | GetContentWidgetName () |
void | SetRootWidget (notnull Widget root) |
void | SetContentWidget (notnull Widget content) |
void | Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR) |
Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility. | |
bool | IsShown () |
Widget | GetRootWidget () |
bool | GetDimensions (out float width, out float height, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
bool | GetAnchorPosition (out float x, out float y, EWidgetAnchor anchor=EWidgetAnchor.TOPLEFT, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
void | RegisterToHudManager () |
Public Member Functions inherited from GroupInfoDisplay | |
proto external int | GetInfoDisplays (out notnull array< BaseInfoDisplay > outInfoDisplays) |
Public Member Functions inherited from BaseInfoDisplay | |
proto external GenericComponent | FindComponentInParentContainer (TypeName typeName) |
Static Public Attributes | |
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" |
static const ref Color | COLOR_WHITE = Color.FromSRGBA(255, 255, 255, 255) |
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 Member Functions | |
Widget | GetWidget () |
bool | UpdateTransmission (TransmissionData data, BaseTransceiver radioTransceiver, int frequency, bool IsReceiving) |
Update transmission data. | |
void | OpacityFade (TransmissionData data, float timeSlice, bool isAdditional=false) |
Fade in/out elements. | |
void | FadeSelectedVONHint () |
void | SetHintIcon (bool isRadio) |
Set VON info hint icon type. | |
void | OnVONActiveToggled (bool directState, bool channelState) |
SCR_VONController event -> Toggle microphone indication. | |
void | OnDestroyed (Instigator killer, IEntity killerEntity) |
SCR_PlayerController Event. | |
void | InitDisplay () |
Initialize. | |
void | OnSlotUIResize () |
void | UpdateWidgets () |
Protected Member Functions inherited from SCR_InfoDisplayExtended | |
bool | DisplayStartDrawInit (IEntity owner) |
void | DisplayStartDraw (IEntity owner) |
void | DisplayStopDraw (IEntity owner) |
void | DisplayInit (IEntity owner) |
void | DisplayUpdate (IEntity owner, float timeSlice) |
void | DisplayControlledEntityChanged (IEntity from, IEntity to) |
void | DisplayConsciousnessChanged (bool conscious, bool init=false) |
void | DisplayOnSuspended () |
Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as not to show in GM. | |
void | DisplayOnResumed () |
void | InitializeInterfaceSettings () |
void | OnSettingsChanged () |
Protected Member Functions inherited from SCR_InfoDisplay | |
void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
override void | OnStartDraw (IEntity owner) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
override void | OnStopDraw (IEntity owner) |
override void | UpdateValues (IEntity owner, float timeSlice) |
override void | OnInit (IEntity owner) |
void | OnInit (IEntity owner) |
void | UpdateValues (IEntity owner, float timeSlice) |
void | OnStartDraw (IEntity owner) |
void | OnStopDraw (IEntity owner) |
Additional Inherited Members | |
Public Attributes inherited from SCR_InfoDisplay | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
VON display of active outgoing and incoming transmissions.
override void SCR_VonDisplay.DisplayControlledEntityChanged | ( | IEntity | from, |
IEntity | to | ||
) |
Implements SCR_InfoDisplayExtended.
override void SCR_VonDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override bool SCR_VonDisplay.DisplayStartDrawInit | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_VonDisplay.DisplayStopDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_VonDisplay.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice | ||
) |
Implements SCR_InfoDisplayExtended.
|
protected |
int SCR_VonDisplay.GetActiveTransmissionsCount | ( | ) |
Count of active incoming transmissions.
|
protected |
|
protected |
Initialize.
bool SCR_VonDisplay.IsCapturingTransmisionActive | ( | ) |
Whether outgoing transmission is currently active.
void SCR_VonDisplay.OnCapture | ( | BaseTransceiver | transmitter | ) |
VONComponent event.
|
protected |
SCR_PlayerController Event.
void SCR_VonDisplay.OnReceive | ( | int | playerId, |
BaseTransceiver | receiver, | ||
int | frequency, | ||
float | quality | ||
) |
VONComponent event.
|
protected |
|
protected |
SCR_VONController event -> Toggle microphone indication.
|
protected |
Fade in/out elements.
TransmissionData | is the subject |
timeSlice | is the OnFrame slice |
|
protected |
Set VON info hint icon type.
void SCR_VonDisplay.ShowSelectedVONDisabledHint | ( | bool | isServerDisabled = false | ) |
Show hint displaying which VON method was selected.
isServerDisabled | determines type of disable |
void SCR_VonDisplay.ShowSelectedVONHint | ( | SCR_VONEntry | entry | ) |
Show hint displaying which VON method was selected.
|
protected |
Update transmission data.
TransmissionData | is the subject |
radioTransceiver | is the used transceiver for the transmission |
IsReceiving | is true when receiving transmission, false when transmitting |
isAdditionalSpeaker | is true when all incomming transmission widgets are full |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |