5 const string LABEL_FREQUENCY_UNITS =
"#AR-VON_FrequencyUnits_MHz";
51 return itemComponent.GetUIInfo();
58 return m_GadgetComp.GetType() == EGadgetType.RADIO_BACKPACK;
90 SetCustomLayout(
"{033302D7C8158EF8}UI/layouts/HUD/VON/VONEntry.layout");
123 else if (modifier != 0)
132 m_sText = fFrequency.ToString(3, 1) +
" " + LABEL_FREQUENCY_UNITS;
153 array<SCR_AIGroup> groups = groupManager.GetPlayableGroupsByFaction(playerFaction);
154 if (!groups || groups.IsEmpty())
159 if (currentFreq == factionFreq)
162 newFreq = groups[0].GetRadioFrequency();
168 int count = groups.Count();
171 if (factionFreq != 0)
172 newFreq = factionFreq;
184 for (
int i = 0; i < count; i++)
189 newFreq = groups[i-1].GetRadioFrequency();
191 newFreq = groups[i+1].GetRadioFrequency();
199 newFreq = groups[0].GetRadioFrequency();
207 fFrequency = fFrequency / 100;
208 m_sText = fFrequency.ToString(3, 1) +
" " + LABEL_FREQUENCY_UNITS;
259 return transceiver.IsMuted();
273 if (!pInvItemComponent)
277 if (!pInvItemAttributes)
280 UIInfo uiInfo = pInvItemAttributes.GetUIInfo();
284 return uiInfo.GetIconPath();
307 vonContr.RemoveEntry(
this);
ArmaReforgerScripted GetGame()
SCR_BaseGameMode GetGameMode()
void SCR_FactionManager(IEntitySource src, IEntity parent)
void SCR_GroupsManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external Managed FindComponent(typename typeName)
int GetFactionRadioFrequency()
void SetFrequencyColor(Color color)
void SetTransceiverText(string text)
void SetPowerIcon(bool state)
void SetChannelText(string text)
void SetTransceiverOpacity(float alpha)
void SetFrequencyText(string text)
void SetActiveIcon(bool state)
void SetMuteIcon(bool state)
Voice over network entry data class, used for management of communication methods.
void SetMuted(bool state)
Activate entry.
void SetUsable(bool state)
Usable entry.
bool IsUsable()
Is usable entry.
VONEntry class for radio entries.
void SetChannelText(string channel)
override void AdjustEntry(int modifier)
override string GetIconResource()
override ECommMethod GetVONMethod()
string m_sFrequencyTextOverwrite
void SetChannelTextOverwrite(string text)
BaseTransceiver GetTransceiver()
Associated transceiver.
override void Update()
Update entry visuals.
SCR_GadgetComponent GetGadget()
Gadget component associated with this entry.
string m_sChannelTextOverwrite
SCR_GadgetComponent m_GadgetComp
override void ToggleEntry()
void SetRadioEntry(notnull BaseTransceiver transceiver, int number, SCR_GadgetComponent gadgetComp)
override void InitEntry()
void SetFrequencyTextOverwrite(string text)
int GetTransceiverNumber()
Associated transceiver id - starts with 1.
override void AdjustEntryModif(int modifier)
bool IsLongRange()
Is long range backpack radio type.
BaseTransceiver m_RadioTransceiver
int GetEntryFrequency()
Local frequency getter since atm the transceiver getter is delayed (network?) and not sufficient for ...
UIInfo - allows to define UI elements.
proto external PlayerController GetPlayerController()
proto external int GetPlayerId()