![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Protected Member Functions | |
| void | ~SCR_NearbyContextDisplay () |
| Performs cleanup. | |
| override void | DisplayStartDraw (IEntity owner) |
| override void | DisplayInit (IEntity owner) |
| override void | DisplayStopDraw (IEntity owner) |
| override void | DisplayUpdate (IEntity owner, float timeSlice) |
| void | CacheWidget (ResourceName layout, int amount, bool returnWidget=false, Widget widgetToReturn=null) |
| void | ClearCachedWidgets () |
| bool | IsObstructed (vector contextPos, vector cameraPos, BaseWorld world, notnull IEntity entAction) |
| void | SetVisibleWidgets () |
| Iterates through available precached widgets and leaves only provided count enabled. | |
| void | SetWidgetAlpha (Widget widget, float distance, float limit) |
| bool | GetWorldToScreenPosition (BaseWorld world, int cameraIndex, vector worldPosition, out float posX, out float posY) |
| bool | IsInLineOfSight (vector point, vector transform[4], float val) |
| bool | IsOnScreen (float resX, float resY, float posX, float posY) |
| float | GetDistanceFromScreenCenter (float resX, float resY, float posX, float posY) |
Static Protected Member Functions | |
| static bool | IsCharacter (notnull IEntity entity) |
Protected Attributes | |
| int | m_iMaxPrecachedWidgets |
| ResourceName | m_sIconLayoutPath |
| ResourceName | m_sDefaultIconImage |
| ResourceName | m_sCachingConfigResource |
| float | m_fMinWidgetAlpha |
| ref array< ref SCR_NearbyContextColorsComponentInteract > | m_aNearbyWidgetColors |
| ref SCR_NearbyContextCachingConfig | m_CachingConfig |
| SCR_InteractionHandlerComponent | m_InteractionHandlerComponent |
| Interaction handler attached to parent entity. | |
| ChimeraCharacter | m_Character |
| float | m_fInteractionDistance |
| Distance in meters in which a context can be interacted with. Defined in 'InteractionHandlerComponent' on DefaultPlayerController entity. | |
| float | m_fContextCollectDistance |
| Distnace in meters in which contexts will be collected and visible to indicate a possible interaction. Defined in 'InteractionHandlerComponent' on DefaultPlayerController entity. | |
| bool | m_bIsInitialized |
| string | m_sDefaultMapKey |
| ref array< Widget > | m_aCurrentlyUsedWidgets = {} |
| ref array< SCR_NearbyContextCachingData > | m_aConfigLayouts = {} |
| ref map< string, ref array< Widget > > | m_mCachedWidgets = new map<string, ref array<Widget>>() |
| Holds all the different cached Widgets with the Layout GUID as key. | |
| ref map< SCR_ENearbyInteractionContextColors, ref SCR_NearbyContextColorsComponentInteract > | m_mCachedActionColors |
| Holds all the different cached id with the enum as key. | |
| ref TraceParam | m_RaycastParam = new TraceParam() |
Definition at line 3 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Performs cleanup.
Definition at line 60 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Create a certain amount of given Widgets to cache
| [in] | layout | Layout that will be created and cached |
| [in] | int | Amount of Widgets you want to cache |
| [in] | bool | If true a Widget must be provided that will be used imideatly after caching |
| [in] | widget | If returnWidget is true a Widget must be defined to where the newly created one should be used |
Definition at line 413 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Check every Cached Widget array and check if the array holds more widgets then the cap allows If there are too many cached Widgets, delete Widgets until it is below the cap.
Definition at line 457 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Definition at line 98 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Definition at line 73 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Definition at line 150 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
If there is no widget available create a new one and use that
If there is no widget available create a new one and use that
Definition at line 165 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Gets the distance from givin point to screen center by taking the X & Y position an calcualting the distance between them
| [in] | float | ScreenresolutionX |
| [in] | float | ScreenresolutionY |
| [in] | float | X position on the screen |
| [in] | float | Y position on the screen |
Definition at line 612 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Recalculates worldPosition to screen space and applies it to widget.
| [in] | worldPosition | |
| [in] | int | Camera thats being used |
| [in] | vector | Position in world space |
| [out] | posX | X Position on the screen |
| [out] | posY | Y Position on the screen |
Definition at line 563 of file SCR_NearbyContextDisplay.c.
Callback method for TraceMove, to check if hit entity is a Character
| entity |
Definition at line 522 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Performs a dot product check against threshold whether point is in line of sight of provided transformation.
| [in] | vector | point Point to perform check for |
| [in] | - | transform Reference matrix checked against |
| [in] | float | threshold01 Dot product result is compared against this value, higher values result in more narrow arc. |
Definition at line 578 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Use a Raycast to check if the givin position is in line of sight
| [in] | Position | to which we cast the raycast |
| [in] | Position | where the raycast should start |
| [in] | current | world |
| [in] | Entity | Owner of the Action |
Definition at line 498 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Checks is the given screenposition is within the resolution and not outside of the screen
| [in] | float | ScreenresolutionX |
| [in] | float | ScreenresolutionY |
| [in] | float | X position on the screen |
| [in] | float | Y position on the screen |
Definition at line 597 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Iterates through available precached widgets and leaves only provided count enabled.
Definition at line 529 of file SCR_NearbyContextDisplay.c.
|
inlineprotected |
Set the Widget alpha based on the distance of the Context it's attached to to the Camera
| [in] | Widget | to which the alpha will be applied |
| [in] | Distance | from camera to context in world space |
| [in] | Max | distance until the alpha will be 0 |
Definition at line 546 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 48 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 46 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 21 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 43 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 23 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 28 of file SCR_NearbyContextDisplay.c.
|
protected |
Distnace in meters in which contexts will be collected and visible to indicate a possible interaction. Defined in 'InteractionHandlerComponent' on DefaultPlayerController entity.
Definition at line 41 of file SCR_NearbyContextDisplay.c.
|
protected |
Distance in meters in which a context can be interacted with. Defined in 'InteractionHandlerComponent' on DefaultPlayerController entity.
Definition at line 39 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 18 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 6 of file SCR_NearbyContextDisplay.c.
|
protected |
Interaction handler attached to parent entity.
Definition at line 26 of file SCR_NearbyContextDisplay.c.
|
protected |
Holds all the different cached id with the enum as key.
Definition at line 54 of file SCR_NearbyContextDisplay.c.
|
protected |
Holds all the different cached Widgets with the Layout GUID as key.
Definition at line 51 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 56 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 15 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 12 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 45 of file SCR_NearbyContextDisplay.c.
|
protected |
Definition at line 9 of file SCR_NearbyContextDisplay.c.