6 me.configureXonoticScreenshotImage(me);
13 me.zoomLimitedByTheBox =
false;
14 me.zoomSnapToTheBox =
false;
19 me.screenshotTime =
time;
34 return me.drag(me, coords);
39 return me.drag_setStartPos(me, coords);
48 if (me.showTitle &&
time < me.screenshotTime + 4)
50 theAlpha = (4 - (
time - me.screenshotTime));
51 draw_CenterText(
'0.5 0 0', me.screenshotTitle, me.realFontSize,
'1 1 1', theAlpha,
false);
53 if (
time < me.zoomTime + 2)
55 float myzoom = me.zoomFactor;
57 theAlpha = (2 - (
time - me.zoomTime));
58 draw_Text(
'0.05 0.95 0', zoomString, me.realFontSize,
'1 1 1', theAlpha,
false);
66 me.realFontSize_y = me.fontSize / absSize.y;
67 me.realFontSize_x = me.fontSize / absSize.x;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void drag_setStartPos()
virtual void mousePress()
#define METHOD(cname, name, prototype)
void XonoticScreenshotImage_draw(entity me)
float XonoticScreenshotImage_mouseDrag(entity me, vector coords)
void XonoticScreenshotImage_configureXonoticScreenshotImage(entity me)
void XonoticScreenshotImage_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
entity makeXonoticScreenshotImage()
float XonoticScreenshotImage_mouseMove(entity me, vector coords)
void XonoticScreenshotImage_load(entity me, string theImage)
ERASEABLE string ftos_decimals_percentage(float number, int decimals)
converts a percentage to a string with the indicated number of decimals