Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_NearbyContextWidgetComponentBase Interface Reference
Inheritance diagram for SCR_NearbyContextWidgetComponentBase:

Public Member Functions

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 Attributes

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

◆ ChangeBackgroundColor()

void SCR_NearbyContextWidgetComponentBase.ChangeBackgroundColor ( Color newColor)

Change the color of the Background Widget.

Parameters
[in]ColorThe color, the backgroung should have

◆ ChangeVisibility()

void SCR_NearbyContextWidgetComponentBase.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.

Parameters
[in]boolIs in line of sight

◆ GetAssignedContext()

UserActionContext SCR_NearbyContextWidgetComponentBase.GetAssignedContext ( )

Get the context that currently uses this Widget.

◆ GetOnContextAssigned()

ScriptInvokerVoid SCR_NearbyContextWidgetComponentBase.GetOnContextAssigned ( )

◆ HandlerAttached()

override void SCR_NearbyContextWidgetComponentBase.HandlerAttached ( Widget w)

◆ OnAssigned()

void SCR_NearbyContextWidgetComponentBase.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

Member Data Documentation

◆ m_AssignedContext

UserActionContext SCR_NearbyContextWidgetComponentBase.m_AssignedContext
protected

◆ m_FirstAction

BaseUserAction SCR_NearbyContextWidgetComponentBase.m_FirstAction
protected

◆ m_NotVisibleWidgetColor

ref Color SCR_NearbyContextWidgetComponentBase.m_NotVisibleWidgetColor
protected

◆ m_OnContextAssigned

ref ScriptInvokerVoid SCR_NearbyContextWidgetComponentBase.m_OnContextAssigned
protected

◆ m_sBackgroundWidgetName

string SCR_NearbyContextWidgetComponentBase.m_sBackgroundWidgetName
protected

◆ m_sGlowWidgetName

string SCR_NearbyContextWidgetComponentBase.m_sGlowWidgetName
protected

◆ m_VisibleWidgetColor

ref Color SCR_NearbyContextWidgetComponentBase.m_VisibleWidgetColor
protected

◆ m_wBackground

ImageWidget SCR_NearbyContextWidgetComponentBase.m_wBackground
protected

◆ m_wGlow

ImageWidget SCR_NearbyContextWidgetComponentBase.m_wGlow
protected

◆ m_wRoot

Widget SCR_NearbyContextWidgetComponentBase.m_wRoot
protected

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