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

Public Member Functions

ScriptInvoker GetOnCardInit ()
 
void UpdateBudgetCost (SCR_EntityBudgetValue entityBudgetCost=null)
 
void UpdateBlockingBudget (SCR_UIInfo blockingBudgetInfo=null)
 
void InitCard (int prefabID, SCR_UIInfo info, ResourceName prefab, SCR_UIInfo blockingBudgetInfo=null)
 Init card.
 
set< SCR_EditableEntityComponentFactionRecipients ()
 
SCR_UIInfo GetInfo ()
 Get Card info.
 
void SetBackgroundImage (ResourceName imageName)
 Set Background Image.
 
void SetHoverImage (ResourceName imageName)
 Set Image.
 
void SetImage (ResourceName imageName)
 Set Image.
 
void SetText (string newText)
 Set Image.
 
Widget GetButtonWidget ()
 Get Button Widget.
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
ScriptInvoker GetOnHover ()
 Get ScriptInvoker onHover.
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
ScriptInvoker GetOnFocus ()
 Get ScriptInvoker onFocus.
 
int GetPrefabIndex ()
 
override void HandlerAttached (Widget w)
 
override void HandlerDeattached (Widget w)
 
- Public Member Functions inherited from SCR_ScriptedWidgetComponent
override bool OnClick (Widget w, int x, int y, int button)
 
Widget GetRootWidget ()
 
bool IsVisible ()
 

Public Attributes

string m_sAssetCardNameFrameWidget
 
- Public Attributes inherited from SCR_ScriptedWidgetComponent
ref ScriptInvoker m_OnClick = new ScriptInvoker
 

Protected Member Functions

bool FindTraitIcon (out int outIndex, out Widget traitWidget, out ImageWidget traitIcon)
 
void OnHoverScrollAnimation (Widget widget, int prefabIndex, bool hoverEntered)
 
void SetHover (bool state)
 Set faction color of specific widgets.
 
void SetBackgroundColor (Color newColor, float transition=UIConstants.FADE_RATE_FAST)
 Set faction color of specific widgets.
 
void SetImageColor (Color newColor, float transition=UIConstants.FADE_RATE_FAST)
 Set faction color of specific widgets.
 

Protected Attributes

string m_sIconSlotWidgetName
 
string m_sModIndicatorWidgetName
 
string m_sModIndicatorIconName
 
string m_sExceedBudgetLayoutName
 
string m_sExceedBudgetIconName
 
string m_sBudgetCostLayoutName
 
string m_sBudgetCostTextName
 
string m_sImageOverlayName
 
string m_sImageHoverName
 
string m_sImageName
 
string m_sImageBackgroundName
 
string m_sAreaName
 
bool m_bEnableHover
 
ref array< string > m_aFactionColorNames
 
ref array< EEditableEntityLabelGroup > m_sTraitLabelGroups
 
ref array< string > m_sTraitNames
 
ref array< ResourceName > m_ImageOverlayTextures
 
ref ImageWidget m_EntityImageWidget
 
ref ImageWidget m_wHoverImageWidget
 
Widget m_BudgetCostLayout
 
Widget m_ExceedBudgetLayout
 
ref ScriptInvoker Event_OnCardInit = new ScriptInvoker()
 
Widget m_wAssetCardName ImageWidget m_wBackground
 
int m_iPrefabIndex
 
ref ScriptInvoker m_OnHover = new ScriptInvoker()
 
ref ScriptInvoker m_OnFocus = new ScriptInvoker()
 
- Protected Attributes inherited from SCR_ScriptedWidgetComponent
Widget m_wRoot
 

Additional Inherited Members

- Static Public Member Functions inherited from SCR_ScriptedWidgetComponent
static SCR_ScriptedWidgetComponent GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true)
 Base method for component lookup through the widget library.
 

Detailed Description

Content Browser Card

Member Function Documentation

◆ FactionRecipients()

set< SCR_EditableEntityComponent > SCR_AssetCardFrontUIComponent.FactionRecipients ( )

◆ FindTraitIcon()

bool SCR_AssetCardFrontUIComponent.FindTraitIcon ( out int outIndex,
out Widget traitWidget,
out ImageWidget traitIcon )
protected

◆ GetButtonWidget()

Widget SCR_AssetCardFrontUIComponent.GetButtonWidget ( )

Get Button Widget.

Returns
Widget button

◆ GetInfo()

SCR_UIInfo SCR_AssetCardFrontUIComponent.GetInfo ( )

Get Card info.

Returns
SCR_UIInfo

◆ GetOnCardInit()

ScriptInvoker SCR_AssetCardFrontUIComponent.GetOnCardInit ( )
Returns

◆ GetOnFocus()

ScriptInvoker SCR_AssetCardFrontUIComponent.GetOnFocus ( )

Get ScriptInvoker onFocus.

Returns
ScriptInvoker

◆ GetOnHover()

ScriptInvoker SCR_AssetCardFrontUIComponent.GetOnHover ( )

Get ScriptInvoker onHover.

Returns
ScriptInvoker

◆ GetPrefabIndex()

int SCR_AssetCardFrontUIComponent.GetPrefabIndex ( )
Returns
Prefab index from the list of placeable prefabs.

◆ HandlerAttached()

override void SCR_AssetCardFrontUIComponent.HandlerAttached ( Widget w)

◆ HandlerDeattached()

override void SCR_AssetCardFrontUIComponent.HandlerDeattached ( Widget w)

◆ InitCard()

void SCR_AssetCardFrontUIComponent.InitCard ( int prefabID,
SCR_UIInfo info,
ResourceName prefab,
SCR_UIInfo blockingBudgetInfo = null )

Init card.

Parameters
[in]prefabID
[in]info
[in]prefab
[in]blockingBudgetInfo

◆ OnFocus()

override bool SCR_AssetCardFrontUIComponent.OnFocus ( Widget w,
int x,
int y )

◆ OnFocusLost()

override bool SCR_AssetCardFrontUIComponent.OnFocusLost ( Widget w,
int x,
int y )

◆ OnHoverScrollAnimation()

void SCR_AssetCardFrontUIComponent.OnHoverScrollAnimation ( Widget widget,
int prefabIndex,
bool hoverEntered )
protected

◆ OnMouseEnter()

override bool SCR_AssetCardFrontUIComponent.OnMouseEnter ( Widget w,
int x,
int y )

◆ OnMouseLeave()

override bool SCR_AssetCardFrontUIComponent.OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )

◆ SetBackgroundColor()

void SCR_AssetCardFrontUIComponent.SetBackgroundColor ( Color newColor,
float transition = UIConstants::FADE_RATE_FAST )
protected

Set faction color of specific widgets.

Parameters
[in]newColor

◆ SetBackgroundImage()

void SCR_AssetCardFrontUIComponent.SetBackgroundImage ( ResourceName imageName)

Set Background Image.

Parameters
[in]imageName

◆ SetHover()

void SCR_AssetCardFrontUIComponent.SetHover ( bool state)
protected

Set faction color of specific widgets.

Parameters
[in]newColor

◆ SetHoverImage()

void SCR_AssetCardFrontUIComponent.SetHoverImage ( ResourceName imageName)

Set Image.

Parameters
[in]imageName

◆ SetImage()

void SCR_AssetCardFrontUIComponent.SetImage ( ResourceName imageName)

Set Image.

Parameters
[in]imageName

◆ SetImageColor()

void SCR_AssetCardFrontUIComponent.SetImageColor ( Color newColor,
float transition = UIConstants::FADE_RATE_FAST )
protected

Set faction color of specific widgets.

Parameters
[in]newColor

◆ SetText()

void SCR_AssetCardFrontUIComponent.SetText ( string newText)

Set Image.

Parameters
[in]imageName

◆ UpdateBlockingBudget()

void SCR_AssetCardFrontUIComponent.UpdateBlockingBudget ( SCR_UIInfo blockingBudgetInfo = null)
Parameters
[in]blockingBudgetInfo

◆ UpdateBudgetCost()

void SCR_AssetCardFrontUIComponent.UpdateBudgetCost ( SCR_EntityBudgetValue entityBudgetCost = null)
Parameters
[in]entityBudgetCost

Member Data Documentation

◆ Event_OnCardInit

ref ScriptInvoker SCR_AssetCardFrontUIComponent.Event_OnCardInit = new ScriptInvoker()
protected

◆ m_aFactionColorNames

ref array<string> SCR_AssetCardFrontUIComponent.m_aFactionColorNames
protected

◆ m_bEnableHover

bool SCR_AssetCardFrontUIComponent.m_bEnableHover
protected

◆ m_BudgetCostLayout

Widget SCR_AssetCardFrontUIComponent.m_BudgetCostLayout
protected

◆ m_EntityImageWidget

ref ImageWidget SCR_AssetCardFrontUIComponent.m_EntityImageWidget
protected

◆ m_ExceedBudgetLayout

Widget SCR_AssetCardFrontUIComponent.m_ExceedBudgetLayout
protected

◆ m_ImageOverlayTextures

ref array<ResourceName> SCR_AssetCardFrontUIComponent.m_ImageOverlayTextures
protected

◆ m_iPrefabIndex

int SCR_AssetCardFrontUIComponent.m_iPrefabIndex
protected

◆ m_OnFocus

ref ScriptInvoker SCR_AssetCardFrontUIComponent.m_OnFocus = new ScriptInvoker()
protected

◆ m_OnHover

ref ScriptInvoker SCR_AssetCardFrontUIComponent.m_OnHover = new ScriptInvoker()
protected

◆ m_sAreaName

string SCR_AssetCardFrontUIComponent.m_sAreaName
protected

◆ m_sAssetCardNameFrameWidget

string SCR_AssetCardFrontUIComponent.m_sAssetCardNameFrameWidget

◆ m_sBudgetCostLayoutName

string SCR_AssetCardFrontUIComponent.m_sBudgetCostLayoutName
protected

◆ m_sBudgetCostTextName

string SCR_AssetCardFrontUIComponent.m_sBudgetCostTextName
protected

◆ m_sExceedBudgetIconName

string SCR_AssetCardFrontUIComponent.m_sExceedBudgetIconName
protected

◆ m_sExceedBudgetLayoutName

string SCR_AssetCardFrontUIComponent.m_sExceedBudgetLayoutName
protected

◆ m_sIconSlotWidgetName

string SCR_AssetCardFrontUIComponent.m_sIconSlotWidgetName
protected

◆ m_sImageBackgroundName

string SCR_AssetCardFrontUIComponent.m_sImageBackgroundName
protected

◆ m_sImageHoverName

string SCR_AssetCardFrontUIComponent.m_sImageHoverName
protected

◆ m_sImageName

string SCR_AssetCardFrontUIComponent.m_sImageName
protected

◆ m_sImageOverlayName

string SCR_AssetCardFrontUIComponent.m_sImageOverlayName
protected

◆ m_sModIndicatorIconName

string SCR_AssetCardFrontUIComponent.m_sModIndicatorIconName
protected

◆ m_sModIndicatorWidgetName

string SCR_AssetCardFrontUIComponent.m_sModIndicatorWidgetName
protected

◆ m_sTraitLabelGroups

ref array<EEditableEntityLabelGroup> SCR_AssetCardFrontUIComponent.m_sTraitLabelGroups
protected

◆ m_sTraitNames

ref array<string> SCR_AssetCardFrontUIComponent.m_sTraitNames
protected

◆ m_wBackground

Widget m_wAssetCardName ImageWidget SCR_AssetCardFrontUIComponent.m_wBackground
protected

◆ m_wHoverImageWidget

ref ImageWidget SCR_AssetCardFrontUIComponent.m_wHoverImageWidget
protected

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