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

Attribute for setting any enum property as custom title with an aditional varriable. More...

Inheritance diagram for BaseContainerCustomEnumWithValue:

Public Member Functions

void BaseContainerCustomEnumWithValue (TypeName enumType, string enumName, string valueName, string defaultValue, string format="%1: %2")
 
override bool _WB_GetCustomTitle (BaseContainer source, out string title)
 

Protected Attributes

TypeName m_EnumType
 
string m_sEnumName
 
string m_sValueName
 
string m_sDefaultValue
 
string m_sFormat
 

Detailed Description

Attribute for setting any enum property as custom title with an aditional varriable.

Do note to set the defaultValue to what ever the attribute default value is

[BaseContainerProps(), BaseContainerCustomEnumWithValue(EEditorMode, "m_Mode", "m_iValue", "2")]
class TestConfigClass
{
[Attribute()]
protected EEditorMode m_Mode;
[Attribute("2")]
protected int m_iValue;
}
EEditorMode
Definition EEditorMode.c:6
void BaseContainerCustomEnumWithValue(TypeName enumType, string enumName, string valueName, string defaultValue, string format="%1: %2")
Definition Attributes.c:353

Constructor & Destructor Documentation

◆ BaseContainerCustomEnumWithValue()

void BaseContainerCustomEnumWithValue.BaseContainerCustomEnumWithValue ( TypeName enumType,
string enumName,
string valueName,
string defaultValue,
string format = "%1: %2" )

Member Function Documentation

◆ _WB_GetCustomTitle()

override bool BaseContainerCustomEnumWithValue._WB_GetCustomTitle ( BaseContainer source,
out string title )

Member Data Documentation

◆ m_EnumType

TypeName BaseContainerCustomEnumWithValue.m_EnumType
protected

◆ m_sDefaultValue

string BaseContainerCustomEnumWithValue.m_sDefaultValue
protected

◆ m_sEnumName

string BaseContainerCustomEnumWithValue.m_sEnumName
protected

◆ m_sFormat

string BaseContainerCustomEnumWithValue.m_sFormat
protected

◆ m_sValueName

string BaseContainerCustomEnumWithValue.m_sValueName
protected

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