Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
BaseContainerCustomDoubleCheckIntResourceNameTitleField Interface Reference

Attribute for setting a custom format if the given checkVar is equal to checkVarEqual. More...

Inheritance diagram for BaseContainerCustomDoubleCheckIntResourceNameTitleField:
[legend]

Public Member Functions

void BaseContainerCustomDoubleCheckIntResourceNameTitleField (string checkVar, string propertyName, int checkVarEqual, string formatTrue="%1", string formatFalse="EXAMPLE FORMAT - %1", bool fileNameOnly=true)
 
override bool _WB_GetCustomTitle (BaseContainer source, out string title)
 

Protected Attributes

string m_sCheckVar
 
string m_sPropertyName
 
string m_sFormatTrue
 
string m_sFormatFalse
 
float m_iCheckVarEqual
 
bool m_bFileNameOnly
 

Detailed Description

Attribute for setting a custom format if the given checkVar is equal to checkVarEqual.

If true sets propertyName ResourceName as title with format else just shows ResourceName as title

[BaseContainerProps(), BaseContainerCustomDoubleCheckResourceNameTitleField("m_bEnabled", "m_sPrefabResourceName", 0, "%1", "(Disabled) %1", true)]
class TestConfigClass
{
[Attribute()]
protected bool m_bEnabled;
[Attribute()]
protected ResourceName m_sPrefabResourceName;
}

Constructor & Destructor Documentation

◆ BaseContainerCustomDoubleCheckIntResourceNameTitleField()

void BaseContainerCustomDoubleCheckIntResourceNameTitleField.BaseContainerCustomDoubleCheckIntResourceNameTitleField ( string  checkVar,
string  propertyName,
int  checkVarEqual,
string  formatTrue = "%1",
string  formatFalse = "EXAMPLE FORMAT - %1",
bool  fileNameOnly = true 
)

Member Function Documentation

◆ _WB_GetCustomTitle()

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

Member Data Documentation

◆ m_bFileNameOnly

bool BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_bFileNameOnly
protected

◆ m_iCheckVarEqual

float BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_iCheckVarEqual
protected

◆ m_sCheckVar

string BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_sCheckVar
protected

◆ m_sFormatFalse

string BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_sFormatFalse
protected

◆ m_sFormatTrue

string BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_sFormatTrue
protected

◆ m_sPropertyName

string BaseContainerCustomDoubleCheckIntResourceNameTitleField.m_sPropertyName
protected

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