X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_media_screenshot_viewer.qc;h=3a2f90091267ba92e81bb63fb3a6825441c3093a;hb=826222f84e886d85179a032b07edc71d99982040;hp=bcf168a93a3036da416233dd427d6027d2df0eca;hpb=6dc9591eba337374f2b4348a6a6deaa1cb6887d0;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 bcf168a93..3a2f90091 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc @@ -1,9 +1,12 @@ -#ifdef INTERFACE -CLASS(XonoticScreenshotViewerDialog) EXTENDS(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)) +#include "dialog_multiplayer_media_screenshot_viewer.qh" +#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)); ATTRIB(XonoticScreenshotViewerDialog, title, string, "Screenshot Viewer") ATTRIB(XonoticScreenshotViewerDialog, name, string, "ScreenshotViewer") ATTRIB(XonoticScreenshotViewerDialog, intendedWidth, float, 1) @@ -96,7 +99,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);