Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_UIName Interface Reference

Class used to hold UI name. More...

Inheritance diagram for SCR_UIName:
SCR_SubBlockUIName SCR_UIDescription SCR_UIInfoSpawnRequestResult SCR_BulletPointBlockUIName SCR_DeviceBlockUIName SCR_ImageBlockUIName SCR_SimpleTagBlockUIName SCR_TipBlockUIName SCR_ArsenalSaveTypeUIInfo SCR_UIInfo SCR_ActionBlockUIName SCR_KeyBlockUIName SCR_AIGroupUIInfo SCR_BlockUIInfo SCR_BudgetUIInfo SCR_ColorUIInfo SCR_DamageStateUIInfo SCR_EditableEntityUIInfo SCR_EditorAttributeUIInfo SCR_EditorModeUIInfo SCR_FormatedUIInfo SCR_InputActionUIInfo SCR_MoonPhaseUIInfo SCR_OverridableUIInfo SCR_PlayerUIInfo SCR_SelectionMenuEntry SCR_SimpleMessageUIInfo SCR_UINotificationInfo SCR_VotingUIInfo UIInfoAssetCard

Public Member Functions

LocalizedString GetUnformattedName ()
 Get The unformatted Name from SCR_HintUIInfo instance.
 
void SetName (LocalizedString name)
 Change the Name from SCR_HintUIInfo instance.
 
LocalizedString GetName ()
 Get name.
 
bool HasName ()
 Check if the info has a name defined.
 
bool SetNameTo (TextWidget textWidget)
 Set name to given text widget.
 
void Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE)
 Print out contents of this UI info.
 

Protected Member Functions

void CopyFrom (SCR_UIName source)
 

Protected Attributes

LocalizedString Name
 

Detailed Description

Class used to hold UI name.

Data are intentionally READ ONLY, because the class is often used on prefabs, not instances. Instead of adding SetXXX() methods here, consider using specialised inherited class.

Member Function Documentation

◆ CopyFrom()

◆ GetName()

◆ GetUnformattedName()

LocalizedString SCR_UIName.GetUnformattedName ( )

Get The unformatted Name from SCR_HintUIInfo instance.

Returns
LocalizedString Name set in SCR_HintUIInfo instance.

◆ HasName()

bool SCR_UIName.HasName ( )

Check if the info has a name defined.

Returns
True when the name is defined

Implemented in SCR_DeviceBlockUIName.

◆ Log()

void SCR_UIName.Log ( string prefix = string::Empty,
LogLevel logLevel = LogLevel::VERBOSE )

Print out contents of this UI info.

Parameters
prefix
logLevel

Implemented in SCR_UIDescription, and SCR_UIInfo.

◆ SetName()

void SCR_UIName.SetName ( LocalizedString name)

Change the Name from SCR_HintUIInfo instance.

Call SCR_HintManagerComponent.Refresh() to update shown hint to display changed text.

Parameters
LocalizedStringtext to which name should be updated to.

Implemented in SCR_OverridableUIInfo.

◆ SetNameTo()

bool SCR_UIName.SetNameTo ( TextWidget textWidget)

Set name to given text widget.

When possible, use this function instead of retrieving the name using GetName() and setting it manually. Custom UI info classes may be using parameters which would not be applied otherwise.

Parameters
textWidgetTarget text widget
Returns
True when the name was set

Implemented in SCR_EditableDescriptorUIInfo, SCR_FormatedUIInfo, and SCR_FormatUIInfo.

Member Data Documentation

◆ Name

LocalizedString SCR_UIName.Name
protected

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