void JParam::InitBool(const String& name, bool defaultVal, const String& group, bool readonly) { if (mType == kTypeNone) mType = kTypeBool; InitEnum(name, (defaultVal ? 1 : 0), 2, group, readonly); SetDisplayText(0, "off"); SetDisplayText(1, "on"); }
void IParam::InitBool(const char* name, bool defaultVal, const char* label, const char* group) { if (mType == kTypeNone) mType = kTypeBool; InitEnum(name, (defaultVal ? 1 : 0), 2, label, group); SetDisplayText(0, "off"); SetDisplayText(1, "on"); }
void IParam::InitBool(const char* name, bool defaultVal) { if (mType == kTypeNone) { mType = kTypeBool; } InitEnum(name, (defaultVal ? 1 : 0), 2); SetDisplayText(0, "off"); SetDisplayText(1, "on"); }