Arma Reforger Script API
|
Class used to hold UI name. More...
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 |
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.
|
protected |
LocalizedString SCR_UIName.GetName | ( | ) |
Get name.
When using it to fill TextWidget, use SetNameTo() if possible.
Implemented in SCR_BulletPointBlockUIName, SCR_TipBlockUIName, SCR_ActionBlockUIName, SCR_KeyBlockUIName, SCR_SimpleTagBlockUIName, SCR_ImageBlockUIName, SCR_EditableEntityUIInfo, SCR_EditableGroupUIInfo, and SCR_PlayerUIInfo.
LocalizedString SCR_UIName.GetUnformattedName | ( | ) |
Get The unformatted Name from SCR_HintUIInfo instance.
bool SCR_UIName.HasName | ( | ) |
Check if the info has a name defined.
Implemented in SCR_DeviceBlockUIName.
void SCR_UIName.Log | ( | string | prefix = string::Empty , |
LogLevel | logLevel = LogLevel::VERBOSE |
||
) |
Print out contents of this UI info.
prefix | |
logLevel |
Implemented in SCR_UIDescription, and SCR_UIInfo.
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.
LocalizedString | text to which name should be updated to. |
Implemented in SCR_OverridableUIInfo.
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.
textWidget | Target text widget |
Implemented in SCR_EditableDescriptorUIInfo, and SCR_FormatUIInfo.
|
protected |