Skip to main content

ConditionalLabeling

An abstract class in Alta.Attributes, the global namespace.

Base inspector attribute that labels a field one of two ways depending on a condition, with optional default values for each case. Used by BoolValueLabeling and HasComponentLabel.

Constructors​

MemberWhat it is
ConditionalLabeling(string hasName, string dontHasName)Creates a ConditionalLabeling from hasName, dontHasName, hasDefaultValue and dontHasDefaultValue.
ConditionalLabeling(string hasName, string dontHasName, float hasDefaultValue, float dontHasDefaultValue)Creates a ConditionalLabeling from hasName, dontHasName, hasDefaultValue and dontHasDefaultValue.

Properties​

MemberWhat it is
float DontHasDefault { get; private set; }Default value when the condition is false.
string DontHasName { get; private set; }Label when the condition is false.
float HasDefault { get; private set; }Default value when the condition is true.
bool HasDefaultValues { get; private set; }True when the defaults were given in the constructor.
string HasName { get; private set; }Label when the condition is true.