Пример #1
0
void TwinkleEffect::SetDefaultParameters(Model *cls)
{
    TwinklePanel *tp = (TwinklePanel*)panel;
    if (tp == nullptr) {
        return;
    }

    SetSliderValue(tp->Slider_Twinkle_Count, 3);
    SetSliderValue(tp->Slider_Twinkle_Steps, 30);
    SetCheckBoxValue(tp->CheckBox_Twinkle_Strobe, false);
    SetCheckBoxValue(tp->CheckBox_Twinkle_ReRandom, false);
}
Пример #2
0
void PinwheelEffect::SetDefaultParameters(Model *cls) {
    PinwheelPanel *pp = (PinwheelPanel*)panel;
    if (pp == nullptr) {
        return;
    }

    pp->BitmapButton_PinwheelXCVC->SetActive(false);
    pp->BitmapButton_PinwheelYCVC->SetActive(false);
    pp->BitmapButton_Pinwheel_ArmSizeVC->SetActive(false);
    pp->BitmapButton_Pinwheel_SpeedVC->SetActive(false);
    pp->BitmapButton_Pinwheel_ThicknessVC->SetActive(false);
    pp->BitmapButton_Pinwheel_TwistVC->SetActive(false);

    SetChoiceValue(pp->Choice_Pinwheel_3D, "none");

    SetSliderValue(pp->Slider_PinwheelXC, 0);
    SetSliderValue(pp->Slider_PinwheelYC, 0);
    SetSliderValue(pp->Slider_Pinwheel_Arms, 3);
    SetSliderValue(pp->Slider_Pinwheel_ArmSize, 100);
    SetSliderValue(pp->Slider_Pinwheel_Thickness, 0);
    SetSliderValue(pp->Slider_Pinwheel_Twist, 0);
    SetSliderValue(pp->Slider_Pinwheel_Speed, 10);

    SetCheckBoxValue(pp->CheckBox_Pinwheel_Rotation, true);
}
Пример #3
0
void FireworksEffect::SetDefaultParameters(Model *cls) {
    FireworksPanel *fp = (FireworksPanel*)panel;
    if (fp == nullptr) {
        return;
    }

    SetSliderValue(fp->Slider_Fireworks_Num_Explosions, 16);
    SetSliderValue(fp->Slider_Fireworks_Count, 50);
    SetSliderValue(fp->Slider_Fireworks_Velocity, 2);
    SetSliderValue(fp->Slider_Fireworks_Fade, 50);
    SetSliderValue(fp->Slider_Fireworks_Sensitivity, 50);

    SetCheckBoxValue(fp->CheckBox_Fireworks_UseMusic, false);
    SetCheckBoxValue(fp->CheckBox_FireTiming, false);

    SetPanelTimingTracks();
}
Пример #4
0
// Save and load preferences for each individual 
// preferences form. These functions always 
// access temphd, which is initialized by InitPrefs.
//
// The purpose of these functions is to read data
// from temphd and set the controls on screen
// aproporiately for the Load functions. The Save
// functions read the UI state and save according
// to that.
//
// LoadPrefsXXX is thus called on entry to a form.
// SavePrefsXXX is called on exit from a form.
void LoadPrefsGeneral(void) {
  SetCheckBoxValue(UniformID, temphd.uniform_color);
  SetCheckBoxValue(MirrorID, temphd.mirror);
  SetCheckBoxValue(GloballID, !(temphd.juggler));
  SetCheckBoxValue(HRID, temphd.hr_reduction);
  SetCheckBoxValue(WarningID, temphd.min_warning);
  SetCheckBoxValue(LandscapeID, temphd.landscape_mode);
  SetCheckBoxValue(SiteOnScreenID, temphd.site_on_screen);
}
Пример #5
0
void MorphEffect::SetDefaultParameters(Model *cls) {
    MorphPanel *mp = (MorphPanel*)panel;
    if (mp == nullptr) {
        return;
    }

    mp->BitmapButton_MorphAccel->SetActive(false);
    mp->BitmapButton_MorphDuration->SetActive(false);
    mp->BitmapButton_MorphEndLength->SetActive(false);
    mp->BitmapButton_MorphStartLength->SetActive(false);
    mp->BitmapButton_Morph_End_X1->SetActive(false);
    mp->BitmapButton_Morph_End_Y1->SetActive(false);
    mp->BitmapButton_Morph_End_X2->SetActive(false);
    mp->BitmapButton_Morph_End_Y2->SetActive(false);
    mp->BitmapButton_Morph_Start_X1->SetActive(false);
    mp->BitmapButton_Morph_Start_Y1->SetActive(false);
    mp->BitmapButton_Morph_Start_X2->SetActive(false);
    mp->BitmapButton_Morph_Start_Y2->SetActive(false);
    mp->BitmapButton_Morph_Stagger->SetActive(false);
    mp->BitmapButton_Morph_Repeat_Count->SetActive(false);
    mp->BitmapButton_Morph_Repeat_Skip->SetActive(false);

    SetSliderValue(mp->Slider_MorphAccel, 0);
    SetSliderValue(mp->Slider_MorphDuration, 20);
    SetSliderValue(mp->Slider_MorphEndLength, 1);
    SetSliderValue(mp->Slider_MorphStartLength, 1);
    SetSliderValue(mp->Slider_Morph_End_X1, 0);
    SetSliderValue(mp->Slider_Morph_End_X2, 100);
    SetSliderValue(mp->Slider_Morph_End_Y1, 100);
    SetSliderValue(mp->Slider_Morph_End_Y2, 100);
    SetSliderValue(mp->Slider_Morph_Repeat_Count, 0);
    SetSliderValue(mp->Slider_Morph_Repeat_Skip, 1);
    SetSliderValue(mp->Slider_Morph_Stagger, 0);
    SetSliderValue(mp->Slider_Morph_Start_X1, 0);
    SetSliderValue(mp->Slider_Morph_Start_X2, 100);
    SetSliderValue(mp->Slider_Morph_Start_Y1, 0);
    SetSliderValue(mp->Slider_Morph_Start_Y2, 100);

    SetCheckBoxValue(mp->CheckBox_Morph_End_Link, false);
    SetCheckBoxValue(mp->CheckBox_Morph_Start_Link, false);
    SetCheckBoxValue(mp->CheckBox_ShowHeadAtStart, false);
}
Пример #6
0
void MarqueeEffect::SetDefaultParameters(Model *cls) {
    MarqueePanel *mp = (MarqueePanel*)panel;
    if (mp == nullptr) {
        return;
    }

    SetSliderValue(mp->Slider_MarqueeXC, 0);
    SetSliderValue(mp->Slider_MarqueeYC, 0);
    SetSliderValue(mp->Slider_Marquee_Band_Size, 3);
    SetSliderValue(mp->Slider_Marquee_ScaleX, 100);
    SetSliderValue(mp->Slider_Marquee_ScaleY, 100);
    SetSliderValue(mp->Slider_Marquee_Skip_Size, 0);
    SetSliderValue(mp->Slider_Marquee_Speed, 3);
    SetSliderValue(mp->Slider_Marquee_Stagger, 0);
    SetSliderValue(mp->Slider_Marquee_Start, 0);
    SetSliderValue(mp->Slider_Marquee_Thickness, 1);

    SetCheckBoxValue(mp->CheckBox_Marquee_Reverse, false);
    SetCheckBoxValue(mp->CheckBox_Marquee_PixelOffsets, false);
    SetCheckBoxValue(mp->CheckBox_Marquee_WrapX, false);
}
Пример #7
0
void VideoEffect::SetDefaultParameters(Model *cls)
{
    VideoPanel *vp = (VideoPanel*)panel;
    if (vp == nullptr) {
        return;
    }

    vp->FilePicker_Video_Filename->SetFileName(wxFileName());
    SetSliderValue(vp->Slider_Video_Starttime, 0);
    SetCheckBoxValue(vp->CheckBox_Video_AspectRatio, false);
    SetChoiceValue(vp->Choice_Video_DurationTreatment, "Normal");
}
Пример #8
0
void ShimmerEffect::SetDefaultParameters(Model *cls)
{
    ShimmerPanel *sp = (ShimmerPanel*)panel;
    if (sp == nullptr) {
        return;
    }

    sp->BitmapButton_Shimmer_CyclesVC->SetActive(false);
    sp->BitmapButton_Shimmer_Duty_FactorVC->SetActive(false);

    SetSliderValue(sp->Slider_Shimmer_Duty_Factor, 50);
    SetSliderValue(sp->Slider_Shimmer_Cycles, 10);

    SetCheckBoxValue(sp->CheckBox_Shimmer_Use_All_Colors, false);
}