MCPcopy Create free account
hub / github.com/dborth/vbagx / MenuSettingsFile

Function MenuSettingsFile

source/menu.cpp:3683–3896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3681 ***************************************************************************/
3682
3683static int MenuSettingsFile()
3684{
3685 int menu = MENU_NONE;
3686 int ret;
3687 int i = 0;
3688 bool firstRun = true;
3689 OptionList options;
3690 sprintf(options.name[i++], "Load Device");
3691 sprintf(options.name[i++], "Save Device");
3692 sprintf(options.name[i++], "Load Folder");
3693 sprintf(options.name[i++], "Save Folder");
3694 sprintf(options.name[i++], "Screenshots Folder");
3695 sprintf(options.name[i++], "Covers Folder");
3696 sprintf(options.name[i++], "Artwork Folder");
3697 sprintf(options.name[i++], "Auto Load");
3698 sprintf(options.name[i++], "Auto Save");
3699 sprintf(options.name[i++], "Append Auto to .SAV Files");
3700 options.length = i;
3701
3702 for(i=0; i < options.length; i++)
3703 options.value[i][0] = 0;
3704
3705 GuiText titleTxt("Settings - Saving & Loading", 26, (GXColor){255, 255, 255, 255});
3706 titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
3707 titleTxt.SetPosition(50,50);
3708
3709 GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
3710 GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM);
3711 GuiImageData btnOutline(button_long_png);
3712 GuiImageData btnOutlineOver(button_long_over_png);
3713
3714 GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255});
3715 GuiImage backBtnImg(&btnOutline);
3716 GuiImage backBtnImgOver(&btnOutlineOver);
3717 GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
3718 backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
3719 backBtn.SetPosition(90, -35);
3720 backBtn.SetLabel(&backBtnTxt);
3721 backBtn.SetImage(&backBtnImg);
3722 backBtn.SetImageOver(&backBtnImgOver);
3723 backBtn.SetSoundOver(&btnSoundOver);
3724 backBtn.SetSoundClick(&btnSoundClick);
3725 backBtn.SetTrigger(trigA);
3726 backBtn.SetTrigger(trig2);
3727 backBtn.SetEffectGrow();
3728
3729 GuiOptionBrowser optionBrowser(552, 248, &options);
3730 optionBrowser.SetPosition(0, 108);
3731 optionBrowser.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
3732 optionBrowser.SetCol2Position(215);
3733
3734 HaltGui();
3735 GuiWindow w(screenwidth, screenheight);
3736 w.Append(&backBtn);
3737 mainWindow->Append(&optionBrowser);
3738 mainWindow->Append(&w);
3739 mainWindow->Append(&titleTxt);
3740 ResumeGui();

Callers 1

MainMenuFunction · 0.85

Calls 15

HaltGuiFunction · 0.85
ResumeGuiFunction · 0.85
OnScreenKeyboardFunction · 0.85
autoSaveMethodFunction · 0.85
autoLoadMethodFunction · 0.85
SetPositionMethod · 0.80
SetLabelMethod · 0.80
SetImageOverMethod · 0.80
SetSoundOverMethod · 0.80
SetSoundClickMethod · 0.80
SetTriggerMethod · 0.80
SetEffectGrowMethod · 0.80

Tested by

no test coverage detected