X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_media_screenshot_viewer.qc;h=d6d545eeeaf00b939ce5b8ad35b6243bd8e66868;hb=34e7f534e2015466228eb3a78c9857741b736dca;hp=880dda03258c0cab772312f45474d8642c6a1671;hpb=21307f327df5609b82d90496c1c6156d636d1c8d;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 880dda032..d6d545eee 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot_viewer.qc @@ -1,25 +1,9 @@ -#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) - ATTRIB(XonoticScreenshotViewerDialog, rows, float, 25) - ATTRIB(XonoticScreenshotViewerDialog, columns, float, 4) - ATTRIB(XonoticScreenshotViewerDialog, color, vector, SKINCOLOR_DIALOG_SCREENSHOTVIEWER) - ATTRIB(XonoticScreenshotViewerDialog, scrList, entity, NULL) - ATTRIB(XonoticScreenshotViewerDialog, screenshotImage, entity, NULL) - ATTRIB(XonoticScreenshotViewerDialog, slideShowButton, entity, NULL) - ATTRIB(XonoticScreenshotViewerDialog, currentScrPath, string, string_null) -ENDCLASS(XonoticScreenshotViewerDialog) -#endif +#include "dialog_multiplayer_media_screenshot_viewer.qh" + +#include "screenshotlist.qh" +#include "inputbox.qh" +#include "button.qh" -#ifdef IMPLEMENTATION float music_playlist_index_backup; void XonoticScreenshotViewerDialog_loadScreenshot(entity me, string scrImage) { @@ -170,4 +154,3 @@ void XonoticScreenshotViewerDialog_fill(entity me) e.onClickEntity = me; me.slideShowButton = e; } -#endif