Beispiel #1
0
void DispReel::WriteRegDefaults()
{
   SetRegValue("DefaultProps\\EMReel", "Image", REG_SZ, &m_d.m_szImage, lstrlen(m_d.m_szImage));
   SetRegValue("DefaultProps\\EMReel", "Sound", REG_SZ, &m_d.m_szSound, lstrlen(m_d.m_szSound));
   SetRegValueBool("DefaultProps\\Decal", "UseImageGrid", m_d.m_fUseImageGrid);
   SetRegValueBool("DefaultProps\\Decal", "Visible", m_d.m_fVisible);
   SetRegValueInt("DefaultProps\\Decal", "ImagesPerRow", m_d.m_imagesPerGridRow);
   SetRegValueBool("DefaultProps\\Decal", "Transparent", m_d.m_fTransparent);
   SetRegValueInt("DefaultProps\\Decal", "ReelCount", m_d.m_reelcount);
   SetRegValueFloat("DefaultProps\\EMReel", "Width", m_d.m_width);
   SetRegValueFloat("DefaultProps\\EMReel", "Height", m_d.m_height);
   SetRegValueFloat("DefaultProps\\EMReel", "ReelSpacing", m_d.m_reelspacing);
   SetRegValueFloat("DefaultProps\\EMReel", "MotorSteps", m_d.m_motorsteps);
   SetRegValueInt("DefaultProps\\Decal", "DigitRange", m_d.m_digitrange);
   SetRegValueInt("DefaultProps\\Decal", "UpdateInterval", m_d.m_updateinterval);
   SetRegValue("DefaultProps\\EMReel", "BackColor", REG_DWORD, &m_d.m_backcolor, 4);
   SetRegValueBool("DefaultProps\\EMReel", "TimerEnabled", m_d.m_tdr.m_fTimerEnabled);
   SetRegValueInt("DefaultProps\\EMReel", "TimerInterval", m_d.m_tdr.m_TimerInterval);
}
Beispiel #2
0
void Flasher::WriteRegDefaults()
{
   SetRegValueFloat("DefaultProps\\Flasher", "Height", m_d.m_height);
   SetRegValueFloat("DefaultProps\\Flasher", "RotX", m_d.m_rotX);
   SetRegValueFloat("DefaultProps\\Flasher", "RotY", m_d.m_rotY);
   SetRegValueFloat("DefaultProps\\Flasher", "RotZ", m_d.m_rotZ);
   SetRegValue("DefaultProps\\Flasher", "Color", REG_DWORD, &m_d.m_color, 4);
   SetRegValueBool("DefaultProps\\Flasher", "TimerEnabled", m_d.m_tdr.m_fTimerEnabled);
   SetRegValueInt("DefaultProps\\Flasher", "TimerInterval", m_d.m_tdr.m_TimerInterval);
   SetRegValue("DefaultProps\\Flasher", "ImageA", REG_SZ, &m_d.m_szImageA, lstrlen(m_d.m_szImageA));
   SetRegValue("DefaultProps\\Flasher", "ImageB", REG_SZ, &m_d.m_szImageB, lstrlen(m_d.m_szImageB));
   SetRegValueInt("DefaultProps\\Flasher", "Alpha", m_d.m_fAlpha);
   SetRegValueFloat("DefaultProps\\Flasher", "ModulateVsAdd", m_d.m_modulate_vs_add);
   SetRegValueBool("DefaultProps\\Flasher", "Visible", m_d.m_IsVisible);
   SetRegValueBool("DefaultProps\\Flasher", "DisplayTexture", m_d.m_fDisplayTexture);
   SetRegValueBool("DefaultProps\\Flasher", "AddBlend", m_d.m_fAddBlend);
   SetRegValueBool("DefaultProps\\Flasher", "DMD", m_d.m_IsDMD);
   SetRegValue("DefaultProps\\Flasher", "ImageMode", REG_DWORD, &m_d.m_imagealignment, 4);
   SetRegValue("DefaultProps\\Flasher", "Filter", REG_DWORD, &m_d.m_filter, 4);
   SetRegValueInt("DefaultProps\\Flasher", "FilterAmount", m_d.m_fFilterAmount);
}
Beispiel #3
0
void Flipper::WriteRegDefaults()
{
   static const char regKey[] = "DefaultProps\\Flipper";

   SetRegValueFloat(regKey,"StartAngle", m_d.m_StartAngle);
   SetRegValueFloat(regKey,"EndAngle", m_d.m_EndAngle);
   SetRegValueFloat(regKey,"BaseRadius", m_d.m_BaseRadius);
   SetRegValueFloat(regKey,"EndRadius", m_d.m_EndRadius);
   SetRegValueFloat(regKey,"MaxDifLength", m_d.m_FlipperRadiusMin);
   SetRegValueFloat(regKey,"ReturnStrength", m_d.m_return);
   SetRegValueFloat(regKey,"Length", m_d.m_FlipperRadiusMax);
   SetRegValueFloat(regKey,"Speed", m_d.m_mass);
   SetRegValueFloat(regKey,"Elasticity", m_d.m_elasticity);
   SetRegValueFloat(regKey,"ElasticityFalloff", m_d.m_elasticityFalloff);
   SetRegValueFloat(regKey,"Friction", m_d.m_friction);
   SetRegValueFloat(regKey,"RampUp", m_d.m_rampUp);
   SetRegValueBool(regKey,"TimerEnabled", m_d.m_tdr.m_fTimerEnabled);
   SetRegValueInt(regKey,"TimerInterval", m_d.m_tdr.m_TimerInterval);
   SetRegValueInt(regKey,"Color", m_d.m_color);
   SetRegValueInt(regKey,"RubberColor", m_d.m_rubbercolor);
   SetRegValue(regKey,"Surface", REG_SZ, &m_d.m_szSurface,strlen(m_d.m_szSurface));
   SetRegValueFloat(regKey,"Strength", m_d.m_strength);
   SetRegValueFloat(regKey,"Height", m_d.m_height);
   SetRegValueInt(regKey,"RubberThickness", m_d.m_rubberthickness);
   SetRegValueInt(regKey,"RubberHeight", m_d.m_rubberheight);
   SetRegValueInt(regKey,"RubberWidth", m_d.m_rubberwidth);
   SetRegValueBool(regKey,"Visible", m_d.m_fVisible);
   SetRegValueBool(regKey,"Enabled", m_d.m_fEnabled);
}
Beispiel #4
0
void Bumper::WriteRegDefaults()
{
   SetRegValueFloat("DefaultProps\\Bumper", "Radius", m_d.m_radius);
   SetRegValueFloat("DefaultProps\\Bumper", "Force", m_d.m_force);
   SetRegValueFloat("DefaultProps\\Bumper", "HeightScale", m_d.m_heightScale);
   SetRegValueFloat("DefaultProps\\Bumper", "RingSpeed", m_d.m_ringSpeed);
   SetRegValueFloat("DefaultProps\\Bumper", "Orientation", m_d.m_orientation);
   SetRegValueFloat("DefaultProps\\Bumper", "Threshold", m_d.m_threshold);
   SetRegValueBool("DefaultProps\\Bumper", "TimerEnabled", m_d.m_tdr.m_fTimerEnabled);
   SetRegValueInt("DefaultProps\\Bumper", "TimerInterval", m_d.m_tdr.m_TimerInterval);
   SetRegValueInt("DefaultProps\\Bumper", "CapVisible", m_d.m_fCapVisible);
   SetRegValueInt("DefaultProps\\Bumper", "BaseVisible", m_d.m_fBaseVisible);
   SetRegValueInt("DefaultProps\\Bumper", "HasHitEvent", m_d.m_fHitEvent);
   SetRegValueInt("DefaultProps\\Bumper", "Collidable", m_d.m_fCollidable);
   SetRegValueInt("DefaultProps\\Bumper", "ReflectionEnabled", m_d.m_fReflectionEnabled);
   SetRegValue("DefaultProps\\Bumper", "Surface", REG_SZ, &m_d.m_szSurface, lstrlen(m_d.m_szSurface));
}
Beispiel #5
0
void Timer::WriteRegDefaults()
{
	SetRegValueBool("DefaultProps\\Timer","TimerEnabled", m_d.m_tdr.m_fTimerEnabled);
	SetRegValueInt("DefaultProps\\Timer","TimerInterval", m_d.m_tdr.m_TimerInterval);
}