|
Arma Reforger Script API
|
Public Member Functions | |
| void | SetIconPath (ResourceName iconPath) |
| Sets icon path to given path. | |
| void | SetIconSetName (string iconSetName) |
| Sets icon path to given path. | |
| LocalizedString | GetUnformattedName (out array< LocalizedString > params=null) |
| Returns unformatted name and parameters. | |
| void | SetUnformattedName (LocalizedString name, array< LocalizedString > nameParams=null) |
| Sets unformatted name with parameters. | |
| LocalizedString | GetUnformattedDescription (out array< LocalizedString > params=null) |
| Returns unformatted description and parameters. | |
| void | SetUnformattedDescription (LocalizedString description, array< LocalizedString > descriptionParams=null) |
| Sets unformatted description with parameters. | |
| override bool | SetNameTo (TextWidget textWidget) |
| Set name to given text widget. | |
| override bool | SetDescriptionTo (TextWidget textWidget) |
| Set description to given text widget. | |
| string | GetTranslatedName () |
| override void | CopyFrom (SCR_UIName source) |
| bool | HasCustomIcon () |
| bool | HasCustomName () |
| bool | HasCustomDescription () |
Public Member Functions inherited from SCR_UIInfo | |
| ResourceName | GetIconPath () |
| Get icon. | |
| ResourceName | GetImageSetPath () |
| Get Image Set. | |
| string | GetIconSetName () |
| Returns Icon Set name if imageset. | |
| bool | HasIcon () |
| Check if the info has an icon defined. | |
| bool | SetIconTo (ImageWidget imageWidget) |
| Set icon to given image widget. | |
| override void | Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE) |
Public Member Functions inherited from SCR_UIDescription | |
| LocalizedString | GetUnformattedDescription () |
| Get the unformatted description from SCR_HintUIInfo instance. | |
| void | SetDescription (LocalizedString description) |
| Change the description from SCR_HintUIInfo instance. | |
| LocalizedString | GetDescription () |
| Get description. | |
| bool | HasDescription () |
| Check if the info has a description defined. | |
Public Member Functions inherited from SCR_UIName | |
| 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. | |
Static Public Member Functions | |
| static SCR_TaskUIInfo | CreateInfo (LocalizedString name, array< LocalizedString > nameParams, LocalizedString description, array< LocalizedString > descParams, ResourceName icon=ResourceName.Empty, string iconSetName=string.Empty) |
| Create SCR_TaskUIInfo from basic params. | |
Static Public Member Functions inherited from SCR_UIInfo | |
| static SCR_UIInfo | GetInfo (BaseContainer source, string varName) |
| Get UIInfo from a source object. | |
| static SCR_UIInfo | CreateInfo (UIInfo source) |
| Create SCR_UIInfo from engine UIInfo. | |
| static SCR_UIInfo | CreateInfo (LocalizedString name, LocalizedString description=LocalizedString.Empty, ResourceName icon=ResourceName.Empty, string iconSetName=string.Empty) |
| Create SCR_UIInfo from basic params. | |
| static SCR_UIInfo | CreatePlaceholderInfo (TypeName type) |
| Get placeholder info. | |
Protected Member Functions | |
| LocalizedString | NameParam (int index) |
| LocalizedString | DescriptionParam (int index) |
Protected Attributes | |
| ref array< LocalizedString > | m_aNameParameters |
| ref array< LocalizedString > | m_aDescriptionParameters |
| int | m_iDefaultFlags = 0 |
Protected Attributes inherited from SCR_UIInfo | |
| ResourceName | Icon |
| string | IconSetName |
Protected Attributes inherited from SCR_UIDescription | |
| LocalizedString | Description |
Protected Attributes inherited from SCR_UIName | |
| LocalizedString | Name |
Static Protected Attributes | |
| const int | MAX_PARAM_COUNT = 9 |
| const int | FLAG_CUSTOM_ICON = 1 << 0 |
| const int | FLAG_CUSTOM_NAME = 1 << 1 |
| const int | FLAG_CUSTOM_DESCRIPTION = 1 << 2 |
| override void SCR_TaskUIInfo.CopyFrom | ( | SCR_UIName | source | ) |
Implements SCR_UIInfo.
|
static |
Create SCR_TaskUIInfo from basic params.
| name | |
| description | |
| icon | |
| iconSetName |
|
protected |
| index |
| string SCR_TaskUIInfo.GetTranslatedName | ( | ) |
| LocalizedString SCR_TaskUIInfo.GetUnformattedDescription | ( | out array< LocalizedString > | params = null | ) |
Returns unformatted description and parameters.
| [out] | params |
| LocalizedString SCR_TaskUIInfo.GetUnformattedName | ( | out array< LocalizedString > | params = null | ) |
Returns unformatted name and parameters.
| [out] | params |
| bool SCR_TaskUIInfo.HasCustomDescription | ( | ) |
| bool SCR_TaskUIInfo.HasCustomIcon | ( | ) |
| bool SCR_TaskUIInfo.HasCustomName | ( | ) |
|
protected |
| index |
| override bool SCR_TaskUIInfo.SetDescriptionTo | ( | TextWidget | textWidget | ) |
Set description to given text widget.
When possible, use this function instead of retrieving the description using GetDescription() and setting it manually. Custom UI info classes may be using parameters which would not be applied otherwise.
| textWidget | Target text widget |
Implements SCR_UIDescription.
Implemented in SCR_RequestedTaskUIInfo.
| void SCR_TaskUIInfo.SetIconPath | ( | ResourceName | iconPath | ) |
Sets icon path to given path.
| void SCR_TaskUIInfo.SetIconSetName | ( | string | iconSetName | ) |
Sets icon path to given path.
| override bool SCR_TaskUIInfo.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 |
Implements SCR_UIName.
| void SCR_TaskUIInfo.SetUnformattedDescription | ( | LocalizedString | description, |
| array< LocalizedString > | descriptionParams = null ) |
Sets unformatted description with parameters.
| void SCR_TaskUIInfo.SetUnformattedName | ( | LocalizedString | name, |
| array< LocalizedString > | nameParams = null ) |
Sets unformatted name with parameters.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
staticprotected |