Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SCR_NearbyContextWidgetComponentInteract Interface Reference
Inheritance diagram for SCR_NearbyContextWidgetComponentInteract:
[legend]

Public Member Functions

override void HandlerAttached (Widget w)
 
override void OnAssigned (SCR_ActionContextUIInfo info, UserActionContext context)
 Will be called everytime the Widget gets assigned to a new context This happens everytime the context is in line of sight again.
 
- Public Member Functions inherited from SCR_NearbyContextWidgetComponentBase
override void HandlerAttached (Widget w)
 
void OnAssigned (SCR_ActionContextUIInfo info, UserActionContext context)
 Will be called everytime the Widget gets assigned to a new context This happens everytime the context is in line of sight again.
 
void ChangeBackgroundColor (Color newColor)
 Change the color of the Background Widget.
 
void ChangeVisibility (bool isInLineOfSight)
 Changes the color of the root to make the whole widget darker / lighter to indicate if it's on line of sight or not.
 
UserActionContext GetAssignedContext ()
 Get the context that currently uses this Widget.
 
ScriptInvokerVoid GetOnContextAssigned ()
 

Protected Member Functions

bool SetIconFromAction (SCR_ActionContextUIInfo info)
 Set the Icon defined in the UIInfo from action.
 

Protected Attributes

string m_sIconWidget
 
ImageWidget m_wIcon
 
- Protected Attributes inherited from SCR_NearbyContextWidgetComponentBase
ref Color m_VisibleWidgetColor
 
ref Color m_NotVisibleWidgetColor
 
string m_sBackgroundWidgetName
 
string m_sGlowWidgetName
 
Widget m_wRoot
 
ImageWidget m_wBackground
 
ImageWidget m_wGlow
 
UserActionContext m_AssignedContext
 
BaseUserAction m_FirstAction
 
ref ScriptInvokerVoid m_OnContextAssigned
 

Member Function Documentation

◆ HandlerAttached()

override void SCR_NearbyContextWidgetComponentInteract.HandlerAttached ( Widget  w)

◆ OnAssigned()

override void SCR_NearbyContextWidgetComponentInteract.OnAssigned ( SCR_ActionContextUIInfo  info,
UserActionContext  context 
)

Will be called everytime the Widget gets assigned to a new context This happens everytime the context is in line of sight again.

Parameters
[in]UIInfocontaining all the information for the widget Icon, etc. Can be null
[in]UserActionContextContext the Widget gets assigned to

Implements SCR_NearbyContextWidgetComponentBase.

◆ SetIconFromAction()

bool SCR_NearbyContextWidgetComponentInteract.SetIconFromAction ( SCR_ActionContextUIInfo  info)
protected

Set the Icon defined in the UIInfo from action.

Parameters
[in]SCR_ActionContextUIInfocontaining all the information for the widget Icon, etc. Can be null return True if icon was able to be set from Action, false otherwise

Member Data Documentation

◆ m_sIconWidget

string SCR_NearbyContextWidgetComponentInteract.m_sIconWidget
protected

◆ m_wIcon

ImageWidget SCR_NearbyContextWidgetComponentInteract.m_wIcon
protected

The documentation for this interface was generated from the following file: