Arma Reforger Script API
|
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 |
override void SCR_NearbyContextWidgetComponentInteract.HandlerAttached | ( | Widget | w | ) |
Implements SCR_NearbyContextWidgetComponentBase.
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.
[in] | UIInfo | containing all the information for the widget Icon, etc. Can be null |
[in] | UserActionContext | Context the Widget gets assigned to |
Implements SCR_NearbyContextWidgetComponentBase.
|
protected |
Set the Icon defined in the UIInfo from action.
[in] | SCR_ActionContextUIInfo | containing all the information for the widget Icon, etc. Can be null return True if icon was able to be set from Action, false otherwise |
|
protected |
|
protected |