MCPcopy Create free account
hub / github.com/dborth/fceugx / MenuSettingsVideo

Function MenuSettingsVideo

source/menu.cpp:3604–3809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3602}
3603
3604static int MenuSettingsVideo()
3605{
3606 int menu = MENU_NONE;
3607 int ret;
3608 int i = 0;
3609 OptionList options;
3610 bool firstRun = true;
3611
3612 sprintf(options.name[i++], "Rendering");
3613 sprintf(options.name[i++], "Scaling");
3614 sprintf(options.name[i++], "Filtering");
3615 sprintf(options.name[i++], "Cropping");
3616 sprintf(options.name[i++], "Palette");
3617 sprintf(options.name[i++], "Game Timing");
3618 sprintf(options.name[i++], "Screen Zoom");
3619 sprintf(options.name[i++], "Screen Position");
3620 sprintf(options.name[i++], "Zapper Crosshair");
3621 sprintf(options.name[i++], "Sprite Limit");
3622 sprintf(options.name[i++], "Video Mode");
3623 options.length = i;
3624
3625 for(i=0; i < options.length; i++)
3626 options.value[i][0] = 0;
3627
3628 GuiText titleTxt("Game Settings - Video", 26, (GXColor){255, 255, 255, 255});
3629 titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
3630 titleTxt.SetPosition(50,50);
3631
3632 GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
3633 GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM);
3634 GuiImageData btnOutline(button_png);
3635 GuiImageData btnOutlineOver(button_over_png);
3636
3637 GuiTrigger trigB;
3638 GuiTrigger trig1;
3639 trigB.SetButtonOnlyTrigger(-1, WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B, PAD_BUTTON_B, WIIDRC_BUTTON_B);
3640 trig1.SetButtonOnlyTrigger(-1, WPAD_BUTTON_1, 0, 0);
3641
3642 GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255});
3643 GuiImage backBtnImg(&btnOutline);
3644 GuiImage backBtnImgOver(&btnOutlineOver);
3645 GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
3646 backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
3647 backBtn.SetPosition(50, -35);
3648 backBtn.SetLabel(&backBtnTxt);
3649 backBtn.SetImage(&backBtnImg);
3650 backBtn.SetImageOver(&backBtnImgOver);
3651 backBtn.SetSoundOver(&btnSoundOver);
3652 backBtn.SetSoundClick(&btnSoundClick);
3653 backBtn.SetTrigger(trigA);
3654 backBtn.SetTrigger(trig2);
3655 backBtn.SetTrigger(&trigB);
3656 backBtn.SetTrigger(&trig1);
3657 backBtn.SetEffectGrow();
3658
3659 GuiOptionBrowser optionBrowser(552, 248, &options);
3660 optionBrowser.SetPosition(0, 108);
3661 optionBrowser.SetCol2Position(200);

Callers 1

MainMenuFunction · 0.85

Calls 15

HaltGuiFunction · 0.85
ResumeGuiFunction · 0.85
ScreenZoomWindowFunction · 0.85
ScreenPositionWindowFunction · 0.85
GetFilterNameFunction · 0.85
SetPositionMethod · 0.80
SetButtonOnlyTriggerMethod · 0.80
SetLabelMethod · 0.80
SetImageOverMethod · 0.80
SetSoundOverMethod · 0.80
SetSoundClickMethod · 0.80
SetTriggerMethod · 0.80

Tested by

no test coverage detected