]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/screenshotimage.qh
Merge branch 'master' into martin-t/globals
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / screenshotimage.qh
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..c27a853377ce51eb18270adb6c7197e4811fb2e9 100644 (file)
@@ -1 +1,19 @@
 #pragma once
+
+#include "image.qh"
+CLASS(XonoticScreenshotImage, XonoticImage)
+       METHOD(XonoticScreenshotImage, configureXonoticScreenshotImage, void(entity));
+       METHOD(XonoticScreenshotImage, load, void(entity, string));
+       METHOD(XonoticScreenshotImage, draw, void(entity));
+       ATTRIB(XonoticScreenshotImage, focusable, float, 1);  // mousePress and mouseDrag work only if focusable is set
+       METHOD(XonoticScreenshotImage, mousePress, bool(XonoticScreenshotImage this, vector pos));
+       METHOD(XonoticScreenshotImage, mouseDrag, float(entity, vector));
+       METHOD(XonoticScreenshotImage, mouseMove, float(entity, vector));
+       METHOD(XonoticScreenshotImage, resizeNotify, void(entity, vector, vector, vector, vector));
+       ATTRIB(XonoticScreenshotImage, realFontSize, vector, '0 0 0');
+       ATTRIB(XonoticScreenshotImage, fontSize, float, SKINFONTSIZE_NORMAL);
+       ATTRIB(XonoticScreenshotImage, showTitle, float, 1);
+       ATTRIB(XonoticScreenshotImage, screenshotTime, float, 0);
+       ATTRIB(XonoticScreenshotImage, screenshotTitle, string);
+ENDCLASS(XonoticScreenshotImage)
+entity makeXonoticScreenshotImage();