From ffb1d653138f3a6fa78e8004bedb466e93e717b1 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 15 Jun 2013 11:40:31 +0200 Subject: [PATCH] Add forum link to help menu on Windows, and under the website link on the main menu screen. --- UI/MenuScreens.cpp | 7 +++++++ Windows/WndMainWindow.cpp | 13 +++++++++---- Windows/ppsspp.rc | Bin 39344 -> 39448 bytes Windows/resource.h | Bin 22694 -> 22786 bytes 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 47604b8de7..9fcb8c4d4f 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -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); diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index e6a0055b7f..23cbe0b860 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -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); diff --git a/Windows/ppsspp.rc b/Windows/ppsspp.rc index c00e33f5d3890f2de0089f7b90aa390c02c5bbf4..e7bb609c133761baabf39f55a4cd29e7fb811450 100644 GIT binary patch delta 99 zcmdn6nQ6urrVZcPq{|sVP>-R2p@5;7p%_f-G2}B8F{DpcY!99+kj66kRU40F07C#n sFhei{h*n^51FI-y$Ym&=tk^Ek?#AHH5X2BVS+PQM^16JR#T(j%0E?d+xc~qF delta 65 zcmbQSg=xcPrVZcPv@;k=7)lrl7_1od8T1*-!BCH(fT4h)n4uU<>oMdr6fvYT=uZ}G O51zbXip^q)4j}++91pdz0kHm6lkgG@5l;Y607U>!07d{$08#)|08Nt-QYDkfR~VDvR1~ug QR=xoNH