X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_media_screenshot_viewer.qc;h=880dda03258c0cab772312f45474d8642c6a1671;hb=d46b809856d414a1de04338569ad50dc7a9e081b;hp=4016e0f2aecc9a074981ab191828b9a8fc6e4e62;hpb=50db7ae6bd2b87d7d7d06792985ec5219a8a5969;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc index 4016e0f2a..880dda032 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc @@ -1,10 +1,11 @@ #ifndef DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_VIEWER_H #define DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_VIEWER_H +#include "dialog.qc" CLASS(XonoticScreenshotViewerDialog, XonoticDialog) - METHOD(XonoticScreenshotViewerDialog, fill, void(entity)) - METHOD(XonoticScreenshotViewerDialog, keyDown, float(entity, float, float, float)) - METHOD(XonoticScreenshotViewerDialog, loadScreenshot, void(entity, string)) - METHOD(XonoticScreenshotViewerDialog, close, void(entity)) + METHOD(XonoticScreenshotViewerDialog, fill, void(entity)); + METHOD(XonoticScreenshotViewerDialog, keyDown, float(entity, float, float, float)); + METHOD(XonoticScreenshotViewerDialog, loadScreenshot, void(entity, string)); + METHOD(XonoticScreenshotViewerDialog, close, void(entity)); ATTRIB(XonoticScreenshotViewerDialog, title, string, "Screenshot Viewer") ATTRIB(XonoticScreenshotViewerDialog, name, string, "ScreenshotViewer") ATTRIB(XonoticScreenshotViewerDialog, intendedWidth, float, 1) @@ -97,7 +98,7 @@ float XonoticScreenshotViewerDialog_keyDown(entity me, float key, float ascii, f // to press buttons while browsing with only the keyboard if (shift & S_CTRL) { - toggleSlideShow_Click(world, me); + toggleSlideShow_Click(NULL, me); return 1; } return SUPER(XonoticScreenshotViewerDialog).keyDown(me, key, ascii, shift);