From 6fbb54d91b78cd0f89196ea091ad786469396692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 29 May 2022 00:21:48 +0200 Subject: Add Wiki context menu option. It opens the Detective Conan World wiki page for the focused episode. --- c/main.c | 4 ++++ c/resource.h | 1 + c/resource.rc | 1 + 3 files changed, 6 insertions(+) (limited to 'c') diff --git a/c/main.c b/c/main.c index 9e56c11..78af35c 100644 --- a/c/main.c +++ b/c/main.c @@ -327,6 +327,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case IDM_TOGGLE: case IDM_FORGET: case IDM_LOOKUP: + case IDM_WIKI: case IDM_RATE10: case IDM_RATE9: case IDM_RATE8: @@ -373,6 +374,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ElvRedraw(); DlvShowEpisode(lvi.lParam); break; + case IDM_WIKI: + P("episode_data","open_episode_wiki",1,t); + break; case IDM_RATE10: PI(t+1,10) break; goto r; diff --git a/c/resource.h b/c/resource.h index 375de8b..6d4c090 100644 --- a/c/resource.h +++ b/c/resource.h @@ -21,6 +21,7 @@ #define IDM_TOGGLE 502 #define IDM_FORGET 503 #define IDM_LOOKUP 504 +#define IDM_WIKI 505 #define IDM_RATE10 525 #define IDM_RATE9 526 #define IDM_RATE8 527 diff --git a/c/resource.rc b/c/resource.rc index 1811634..c6e1246 100644 --- a/c/resource.rc +++ b/c/resource.rc @@ -33,6 +33,7 @@ BEGIN MENUITEM "&Toggle", IDM_TOGGLE MENUITEM "&Forget", IDM_FORGET MENUITEM "&Lookup", IDM_LOOKUP + MENUITEM "Wi&ki", IDM_WIKI POPUP "&Rate" BEGIN MENUITEM "&10", IDM_RATE10 -- cgit v1.2.3