mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-09 07:09:26 +01:00
small tweaks
This commit is contained in:
parent
8a79ed02e0
commit
bf787d37d7
@ -2515,7 +2515,7 @@ static int MenuSettingsMappingsMap()
|
|||||||
titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(50,30);
|
titleTxt.SetPosition(50,30);
|
||||||
|
|
||||||
sprintf(menuSubtitle, "%s - %s", ctrlName[mapMenuCtrlNES], ctrlrName[mapMenuCtrl]);
|
sprintf(menuSubtitle, "%s - %s", gettext(ctrlName[mapMenuCtrlNES]), gettext(ctrlrName[mapMenuCtrl]));
|
||||||
GuiText subtitleTxt(menuSubtitle, 20, (GXColor){255, 255, 255, 255});
|
GuiText subtitleTxt(menuSubtitle, 20, (GXColor){255, 255, 255, 255});
|
||||||
subtitleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
subtitleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
subtitleTxt.SetPosition(50,60);
|
subtitleTxt.SetPosition(50,60);
|
||||||
@ -3145,7 +3145,7 @@ static int MenuSettings()
|
|||||||
GuiText titleTxt("Settings", 26, (GXColor){255, 255, 255, 255});
|
GuiText titleTxt("Settings", 26, (GXColor){255, 255, 255, 255});
|
||||||
titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(50,50);
|
titleTxt.SetPosition(50,50);
|
||||||
|
|
||||||
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
||||||
GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM);
|
GuiSound btnSoundClick(button_click_pcm, button_click_pcm_size, SOUND_PCM);
|
||||||
GuiImageData btnOutline(button_long_png);
|
GuiImageData btnOutline(button_long_png);
|
||||||
@ -3163,6 +3163,42 @@ static int MenuSettings()
|
|||||||
else
|
else
|
||||||
trigA.SetSimpleTrigger(-1, WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A, PAD_BUTTON_A);
|
trigA.SetSimpleTrigger(-1, WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A, PAD_BUTTON_A);
|
||||||
|
|
||||||
|
GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255});
|
||||||
|
GuiImage backBtnImg(&btnOutline);
|
||||||
|
GuiImage backBtnImgOver(&btnOutlineOver);
|
||||||
|
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
|
backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
|
||||||
|
backBtn.SetPosition(90, -35);
|
||||||
|
backBtn.SetLabel(&backBtnTxt);
|
||||||
|
backBtn.SetImage(&backBtnImg);
|
||||||
|
backBtn.SetImageOver(&backBtnImgOver);
|
||||||
|
backBtn.SetSoundOver(&btnSoundOver);
|
||||||
|
backBtn.SetSoundClick(&btnSoundClick);
|
||||||
|
backBtn.SetTrigger(&trigA);
|
||||||
|
backBtn.SetEffectGrow();
|
||||||
|
|
||||||
|
GuiText resetBtnTxt("Reset Settings", 22, (GXColor){0, 0, 0, 255});
|
||||||
|
GuiImage resetBtnImg(&btnOutline);
|
||||||
|
GuiImage resetBtnImgOver(&btnOutlineOver);
|
||||||
|
GuiButton resetBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
|
resetBtn.SetAlignment(ALIGN_RIGHT, ALIGN_BOTTOM);
|
||||||
|
resetBtn.SetPosition(-90, -35);
|
||||||
|
resetBtn.SetLabel(&resetBtnTxt);
|
||||||
|
resetBtn.SetImage(&resetBtnImg);
|
||||||
|
resetBtn.SetImageOver(&resetBtnImgOver);
|
||||||
|
resetBtn.SetSoundOver(&btnSoundOver);
|
||||||
|
resetBtn.SetSoundClick(&btnSoundClick);
|
||||||
|
resetBtn.SetTrigger(&trigA);
|
||||||
|
resetBtn.SetEffectGrow();
|
||||||
|
|
||||||
|
HaltGui();
|
||||||
|
GuiWindow w(screenwidth, screenheight);
|
||||||
|
w.Append(&titleTxt);
|
||||||
|
w.Append(&backBtn);
|
||||||
|
w.Append(&resetBtn);
|
||||||
|
mainWindow->Append(&w);
|
||||||
|
ResumeGui();
|
||||||
|
|
||||||
GuiText savingBtnTxt1("Saving", 22, (GXColor){0, 0, 0, 255});
|
GuiText savingBtnTxt1("Saving", 22, (GXColor){0, 0, 0, 255});
|
||||||
GuiText savingBtnTxt2("&", 18, (GXColor){0, 0, 0, 255});
|
GuiText savingBtnTxt2("&", 18, (GXColor){0, 0, 0, 255});
|
||||||
GuiText savingBtnTxt3("Loading", 22, (GXColor){0, 0, 0, 255});
|
GuiText savingBtnTxt3("Loading", 22, (GXColor){0, 0, 0, 255});
|
||||||
@ -3242,49 +3278,14 @@ static int MenuSettings()
|
|||||||
cheatsBtn.SetTrigger(&trigA);
|
cheatsBtn.SetTrigger(&trigA);
|
||||||
cheatsBtn.SetEffectGrow();
|
cheatsBtn.SetEffectGrow();
|
||||||
|
|
||||||
GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255});
|
|
||||||
GuiImage backBtnImg(&btnOutline);
|
|
||||||
GuiImage backBtnImgOver(&btnOutlineOver);
|
|
||||||
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
|
||||||
backBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
|
|
||||||
backBtn.SetPosition(90, -35);
|
|
||||||
backBtn.SetLabel(&backBtnTxt);
|
|
||||||
backBtn.SetImage(&backBtnImg);
|
|
||||||
backBtn.SetImageOver(&backBtnImgOver);
|
|
||||||
backBtn.SetSoundOver(&btnSoundOver);
|
|
||||||
backBtn.SetSoundClick(&btnSoundClick);
|
|
||||||
backBtn.SetTrigger(&trigA);
|
|
||||||
backBtn.SetEffectGrow();
|
|
||||||
|
|
||||||
GuiText resetBtnTxt("Reset Settings", 22, (GXColor){0, 0, 0, 255});
|
|
||||||
GuiImage resetBtnImg(&btnOutline);
|
|
||||||
GuiImage resetBtnImgOver(&btnOutlineOver);
|
|
||||||
GuiButton resetBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
|
||||||
resetBtn.SetAlignment(ALIGN_RIGHT, ALIGN_BOTTOM);
|
|
||||||
resetBtn.SetPosition(-90, -35);
|
|
||||||
resetBtn.SetLabel(&resetBtnTxt);
|
|
||||||
resetBtn.SetImage(&resetBtnImg);
|
|
||||||
resetBtn.SetImageOver(&resetBtnImgOver);
|
|
||||||
resetBtn.SetSoundOver(&btnSoundOver);
|
|
||||||
resetBtn.SetSoundClick(&btnSoundClick);
|
|
||||||
resetBtn.SetTrigger(&trigA);
|
|
||||||
resetBtn.SetEffectGrow();
|
|
||||||
|
|
||||||
HaltGui();
|
HaltGui();
|
||||||
GuiWindow w(screenwidth, screenheight);
|
|
||||||
w.Append(&titleTxt);
|
|
||||||
w.Append(&savingBtn);
|
w.Append(&savingBtn);
|
||||||
w.Append(&menuBtn);
|
w.Append(&menuBtn);
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
w.Append(&networkBtn);
|
w.Append(&networkBtn);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
w.Append(&cheatsBtn);
|
w.Append(&cheatsBtn);
|
||||||
w.Append(&backBtn);
|
|
||||||
w.Append(&resetBtn);
|
|
||||||
|
|
||||||
mainWindow->Append(&w);
|
|
||||||
|
|
||||||
ResumeGui();
|
ResumeGui();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user