Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_UIName Class Reference
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_TaskUIInfo SCR_UINotificationInfo SCR_VotingUIInfo UIInfoAssetCard

Protected Member Functions

LocalizedString GetUnformattedName ()
void SetName (LocalizedString name)
LocalizedString GetName ()
bool HasName ()
bool SetNameTo (TextWidget textWidget)
void Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE)
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.

Definition at line 5 of file SCR_UIName.c.

Member Function Documentation

◆ CopyFrom()

void SCR_UIName::CopyFrom ( SCR_UIName source)
inlineprotected

Definition at line 74 of file SCR_UIName.c.

◆ GetName()

LocalizedString SCR_UIName::GetName ( )
inlineprotected

Get name. When using it to fill TextWidget, use SetNameTo() if possible.

Returns
Name text

Definition at line 31 of file SCR_UIName.c.

◆ GetUnformattedName()

LocalizedString SCR_UIName::GetUnformattedName ( )
inlineprotected

Get The unformatted Name from SCR_HintUIInfo instance.

Returns
LocalizedString Name set in SCR_HintUIInfo instance.

Definition at line 13 of file SCR_UIName.c.

◆ HasName()

bool SCR_UIName::HasName ( )
inlineprotected

Check if the info has a name defined.

Returns
True when the name is defined

Definition at line 39 of file SCR_UIName.c.

◆ Log()

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

Print out contents of this UI info

Parameters
prefix
logLevel

Definition at line 68 of file SCR_UIName.c.

◆ SetName()

void SCR_UIName::SetName ( LocalizedString name)
inlineprotected

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.

Definition at line 22 of file SCR_UIName.c.

◆ SetNameTo()

bool SCR_UIName::SetNameTo ( TextWidget textWidget)
inlineprotected

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

Definition at line 53 of file SCR_UIName.c.

Member Data Documentation

◆ Name

LocalizedString SCR_UIName::Name
protected

Definition at line 8 of file SCR_UIName.c.


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