Ejemplo n.º 1
0
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");
}
Ejemplo n.º 2
0
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");
}
Ejemplo n.º 3
0
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");
}