|
Arma Reforger Script API
|
Info display within hud manager of player controller. More...
Public Member Functions | |
| void | UpdateFrequencyList (notnull SCR_VONEntryRadio entry) |
| Update frequency list data. | |
| void | MarkSegmentBackground (int id) |
| Color background of sibling transceivers when hovering over one, feed invali id to only restore color. | |
| void | SetPreviewItem (IEntity item) |
| Prepare preview item and render given entity. | |
| void | FadeItemPreview (bool state=true) |
| void | SetFrequenciesVisible (bool state) |
| Visibility of frequency list. | |
| override void | DisplayStartDraw (IEntity owner) |
| Setup menu. | |
Public Member Functions inherited from SCR_RadialMenuDisplay | |
| override void | DisplayStopDraw (IEntity owner) |
| override void | DisplayUpdate (IEntity owner, float timeSlice) |
| override void | SetupMenu (SCR_SelectionMenu menu) |
| Set menu and register callback reactions for menu Clear callbacks if there was any other menu used. | |
| void | VisualizeEnableEntry (notnull SCR_SelectionMenuEntryComponent entry, int id, bool enable) |
| void | ShowInnerBackground (bool show) |
| void | ShowCrosshair (bool show) |
Public Member Functions inherited from SCR_SelectionMenuDisplay | |
| override 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. | |
| SCR_SelectionMenu | GetMenu () |
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) |
| 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 | |
| static const ref Color | ORANGE = new Color(1.0, 0.5, 0, 0.05) |
Protected Member Functions | |
| void | SetFrequencyDisplay (EVONMenuTable line, SCR_AIGroup group, SCR_Faction milFaction=null) |
| Set group description and frequency text. | |
| void | ClearDisplayLine (EVONMenuTable line) |
| void | SetupPreviewAttributes (out PreviewRenderAttributes preview) |
| Find and setup preview attributes that should be used in previwe. | |
| override void | OnMenuEntryPerform (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry) |
| React on selected entry change. | |
Protected Member Functions inherited from SCR_RadialMenuDisplay | |
| override void | OnMenuOpen () |
| override void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
| void | SetupMenuCenter () |
| override void | OnMenuClose () |
| override void | OnMenuEntriesUpdate (SCR_SelectionMenu menu, array< ref SCR_SelectionMenuEntry > entries) |
| override void | SetupEntryWidget (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id) |
| Setup entry widget properties specific for each menu Method can e.g. | |
| void | CreateNumberHint (int id) |
| Create number hint to the enter to state quick number action to use. | |
| override void | OnMenuEntrySelected (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry, int id) |
| React on selected entry change. | |
| void | OnEntrySizeAnimCycleCompleted (WidgetAnimationBase anim) |
| override void | ClearEntryWidgets () |
| Clear segments and lines. | |
| vector | GetPointOnCircle (float radius, float degrees) |
| Vector X Y positions from radisu (distance) and degrees (angle) | |
| void | VisualizeSelection (float selectionAngle) |
| float | SetupFrameSlotPosition (out notnull Widget widget, int id, float distance, float angle, float angleOffset=0) |
| Setup widget position and angle in frame slot. | |
| void | CreateEntrySegment (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id) |
| Add to circle segments filling entry area. | |
| void | CreateDivider (int id) |
| Add divider after entry segments. | |
| void | SetupEntryHint (string text, int id) |
| void | DisplayEntryHint () |
| void | OnDisplaySizeChange (SCR_RadialMenu menu, float size) |
| Callback reacting to changing size from SCR_RadialMenu. | |
| void | OnSetActionHint (SCR_RadialMenu menu, string action) |
| Callback to display action hint icon. | |
| void | OnMenuOpenCategory (SCR_SelectionMenu menu, SCR_SelectionMenuCategoryEntry category, int level) |
| void | LateMenuEntriesUpdate () |
| void | ChangeCategoryOpen (SCR_SelectionMenu menu, SCR_SelectionMenuCategoryEntry category, int level) |
| void | SetupSelectionVisuals () |
Protected Member Functions inherited from SCR_SelectionMenuDisplay | |
| void | FindMenu () |
| Method ready for override to find menu at custom place. | |
| void | CreateEntryWidgets () |
| Will create entries in HUD layout. | |
| void | CreateNewEntry (int i) |
| void | RemoveEntry (Widget entry, int id) |
| bool | EntriesChanged (array< ref SCR_SelectionMenuEntry > entries) |
| Check if used data are still same. | |
| void | DebugPrint (string method, string msg) |
Protected Member Functions inherited from SCR_InfoDisplayExtended | |
| bool | DisplayStartDrawInit (IEntity owner) |
| void | DisplayInit (IEntity owner) |
| void | DisplayControlledEntityChanged (IEntity from, IEntity to) |
| void | DisplayConsciousnessChanged (bool conscious, bool init=false) |
| void | DisplayOnResumed () |
| void | InitializeInterfaceSettings () |
| void | OnSettingsChanged () |
Protected Member Functions inherited from SCR_InfoDisplay | |
| void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
Additional Inherited Members | |
Public Attributes inherited from SCR_InfoDisplay | |
| ResourceName | m_LayoutPath |
| EHudLayers | m_eLayer |
| int | m_iOverrideZOrder |
Static Protected Attributes inherited from SCR_RadialMenuDisplay | |
| const string | HINT_BASE = "<action name='%1' hideEmpty='1'/>" |
| const float | CHANGE_CONTENT_OPACITY = 0.4 |
| const float | ENTRY_ANIMATION_SCALE = 1.25 |
| const float | ENTRY_ANIMATION_SPEED = 7.5 |
Static Protected Attributes inherited from SCR_SelectionMenuDisplay | |
| const float | FADE_IN_SPEED = UIConstants.FADE_RATE_SUPER_FAST |
Info display within hud manager of player controller.
|
protected |
| override void SCR_VONRadialDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Setup menu.
Implements SCR_RadialMenuDisplay.
| void SCR_VONRadialDisplay.FadeItemPreview | ( | bool | state = true | ) |
| void SCR_VONRadialDisplay.MarkSegmentBackground | ( | int | id | ) |
Color background of sibling transceivers when hovering over one, feed invali id to only restore color.
| id | is entry id which is the same as segment one |
|
protected |
React on selected entry change.
Implements SCR_RadialMenuDisplay.
| void SCR_VONRadialDisplay.SetFrequenciesVisible | ( | bool | state | ) |
Visibility of frequency list.
|
protected |
Set group description and frequency text.
| widget | is the subject widget |
| group | is AIGroup used to fetch relevant data from |
| milFaction | if passed, will use a faction to set a platoon frequency instead |
| void SCR_VONRadialDisplay.SetPreviewItem | ( | IEntity | item | ) |
Prepare preview item and render given entity.
|
protected |
Find and setup preview attributes that should be used in previwe.
| void SCR_VONRadialDisplay.UpdateFrequencyList | ( | notnull SCR_VONEntryRadio | entry | ) |
Update frequency list data.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |