| 4285 | ***************************************************************************/ |
| 4286 | |
| 4287 | static int MenuSettingsMenu() |
| 4288 | { |
| 4289 | int menu = MENU_NONE; |
| 4290 | int ret; |
| 4291 | int i = 0; |
| 4292 | bool firstRun = true; |
| 4293 | OptionList options; |
| 4294 | currentLanguage = GCSettings.language; |
| 4295 | |
| 4296 | sprintf(options.name[i++], "Exit Action"); |
| 4297 | sprintf(options.name[i++], "Wiimote Orientation"); |
| 4298 | sprintf(options.name[i++], "Music Volume"); |
| 4299 | sprintf(options.name[i++], "Sound Effects Volume"); |
| 4300 | sprintf(options.name[i++], "Rumble"); |
| 4301 | sprintf(options.name[i++], "Language"); |
| 4302 | sprintf(options.name[i++], "Preview Image"); |
| 4303 | sprintf(options.name[i++], "Hide RAM Saving"); |
| 4304 | options.length = i; |
| 4305 | |
| 4306 | for(i=0; i < options.length; i++) |
| 4307 | options.value[i][0] = 0; |
| 4308 | |
| 4309 | GuiText titleTxt("Settings - Menu", 26, (GXColor){255, 255, 255, 255}); |
| 4310 | titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP); |
| 4311 | titleTxt.SetPosition(50,50); |
| 4312 | |
| 4313 | GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM); |
| 4314 | GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM); |
| 4315 | GuiImageData btnOutline(button_long_png); |
| 4316 | GuiImageData btnOutlineOver(button_long_over_png); |
| 4317 | |
| 4318 | GuiTrigger trigB; |
| 4319 | GuiTrigger trig1; |
| 4320 | trigB.SetButtonOnlyTrigger(-1, WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B, PAD_BUTTON_B, WIIDRC_BUTTON_B); |
| 4321 | trig1.SetButtonOnlyTrigger(-1, WPAD_BUTTON_1, 0, 0); |
| 4322 | |
| 4323 | GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255}); |
| 4324 | GuiImage backBtnImg(&btnOutline); |
| 4325 | GuiImage backBtnImgOver(&btnOutlineOver); |
| 4326 | GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight()); |
| 4327 | backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); |
| 4328 | backBtn.SetPosition(90, -35); |
| 4329 | backBtn.SetLabel(&backBtnTxt); |
| 4330 | backBtn.SetImage(&backBtnImg); |
| 4331 | backBtn.SetImageOver(&backBtnImgOver); |
| 4332 | backBtn.SetSoundOver(&btnSoundOver); |
| 4333 | backBtn.SetSoundClick(&btnSoundClick); |
| 4334 | backBtn.SetTrigger(trigA); |
| 4335 | backBtn.SetTrigger(trig2); |
| 4336 | backBtn.SetTrigger(&trigB); |
| 4337 | backBtn.SetTrigger(&trig1); |
| 4338 | backBtn.SetEffectGrow(); |
| 4339 | |
| 4340 | GuiOptionBrowser optionBrowser(552, 248, &options); |
| 4341 | optionBrowser.SetPosition(0, 108); |
| 4342 | optionBrowser.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); |
| 4343 | optionBrowser.SetCol2Position(275); |
| 4344 |
no test coverage detected