| 4506 | ***************************************************************************/ |
| 4507 | |
| 4508 | static int MenuSettingsNetwork() |
| 4509 | { |
| 4510 | int menu = MENU_NONE; |
| 4511 | int ret; |
| 4512 | int i = 0; |
| 4513 | bool firstRun = true; |
| 4514 | OptionList options; |
| 4515 | sprintf(options.name[i++], "SMB Share IP"); |
| 4516 | sprintf(options.name[i++], "SMB Share Name"); |
| 4517 | sprintf(options.name[i++], "SMB Share Username"); |
| 4518 | sprintf(options.name[i++], "SMB Share Password"); |
| 4519 | options.length = i; |
| 4520 | |
| 4521 | for(i=0; i < options.length; i++) |
| 4522 | options.value[i][0] = 0; |
| 4523 | |
| 4524 | GuiText titleTxt("Settings - Network", 26, (GXColor){255, 255, 255, 255}); |
| 4525 | titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP); |
| 4526 | titleTxt.SetPosition(50,50); |
| 4527 | |
| 4528 | GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM); |
| 4529 | GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM); |
| 4530 | GuiImageData btnOutline(button_long_png); |
| 4531 | GuiImageData btnOutlineOver(button_long_over_png); |
| 4532 | |
| 4533 | GuiTrigger trigB; |
| 4534 | GuiTrigger trig1; |
| 4535 | trigB.SetButtonOnlyTrigger(-1, WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B, PAD_BUTTON_B, WIIDRC_BUTTON_B); |
| 4536 | trig1.SetButtonOnlyTrigger(-1, WPAD_BUTTON_1, 0, 0); |
| 4537 | |
| 4538 | GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255}); |
| 4539 | GuiImage backBtnImg(&btnOutline); |
| 4540 | GuiImage backBtnImgOver(&btnOutlineOver); |
| 4541 | GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight()); |
| 4542 | backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); |
| 4543 | backBtn.SetPosition(90, -35); |
| 4544 | backBtn.SetLabel(&backBtnTxt); |
| 4545 | backBtn.SetImage(&backBtnImg); |
| 4546 | backBtn.SetImageOver(&backBtnImgOver); |
| 4547 | backBtn.SetSoundOver(&btnSoundOver); |
| 4548 | backBtn.SetSoundClick(&btnSoundClick); |
| 4549 | backBtn.SetTrigger(trigA); |
| 4550 | backBtn.SetTrigger(trig2); |
| 4551 | backBtn.SetTrigger(&trigB); |
| 4552 | backBtn.SetTrigger(&trig1); |
| 4553 | backBtn.SetEffectGrow(); |
| 4554 | |
| 4555 | GuiOptionBrowser optionBrowser(552, 248, &options); |
| 4556 | optionBrowser.SetPosition(0, 108); |
| 4557 | optionBrowser.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); |
| 4558 | optionBrowser.SetCol2Position(290); |
| 4559 | |
| 4560 | HaltGui(); |
| 4561 | GuiWindow w(screenwidth, screenheight); |
| 4562 | w.Append(&backBtn); |
| 4563 | mainWindow->Append(&optionBrowser); |
| 4564 | mainWindow->Append(&w); |
| 4565 | mainWindow->Append(&titleTxt); |
no test coverage detected