Add forum link to help menu on Windows, and under the website link on the main menu screen.

This commit is contained in:
Henrik Rydgard 2013-06-15 11:40:31 +02:00
parent 4437e0dfc7
commit ffb1d65313
4 changed files with 16 additions and 4 deletions

View file

@ -268,6 +268,13 @@ void MenuScreen::render() {
LaunchBrowser("http://www.ppsspp.org/");
}
// Skip the forum button if screen too small. Will be redesigned in new UI later.
if (dp_yres > 510) {
if (UIButton(GEN_ID, vlinear, w, 0, "forums.ppsspp.org", ALIGN_RIGHT)) {
LaunchBrowser("http://forums.ppsspp.org/");
}
}
int recentW = 350;
if (g_Config.recentIsos.size()) {
ui_draw2d.DrawText(UBUNTU24, m->T("Recent"), -xoff, 80, 0xFFFFFFFF, ALIGN_BOTTOMLEFT);

View file

@ -753,11 +753,16 @@ namespace MainWindow
case ID_EMULATION_SOUND:
g_Config.bEnableSound = !g_Config.bEnableSound;
break;
case ID_HELP_OPENWEBSITE:
ShellExecute(NULL, "open", "http://www.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
break;
case ID_HELP_ABOUT:
case ID_HELP_OPENWEBSITE:
ShellExecute(NULL, "open", "http://www.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
break;
case ID_HELP_OPENFORUM:
ShellExecute(NULL, "open", "http://forums.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
break;
case ID_HELP_ABOUT:
DialogManager::EnableAll(FALSE);
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
DialogManager::EnableAll(TRUE);

Binary file not shown.

Binary file not shown.