7 me.configureXonoticScreenshotImage(me);
14 me.zoomLimitedByTheBox =
false;
15 me.zoomSnapToTheBox =
false;
20 me.screenshotTime =
time;
30 return this.drag_setStartPos(
this, pos);
35 return me.drag(me, coords);
40 return me.drag_setStartPos(me, coords);
49 if (me.showTitle &&
time < me.screenshotTime + 4)
51 theAlpha = (4 - (
time - me.screenshotTime));
52 draw_CenterText(
'0.5 0 0', me.screenshotTitle, me.realFontSize,
'1 1 1', theAlpha,
false);
54 if (
time < me.zoomTime + 2)
57 float myzoom = me.zoomFactor * 100;
58 if (myzoom -
floor(myzoom) == 0)
59 zoomString = sprintf(
"%d%%", myzoom);
61 zoomString = sprintf(
"%.2f%%", myzoom);
62 theAlpha = (2 - (
time - me.zoomTime));
63 draw_Text(
'0.05 0.95 0', zoomString, me.realFontSize,
'1 1 1', theAlpha,
false);
71 me.realFontSize_y = me.fontSize / absSize.y;
72 me.realFontSize_x = me.fontSize / absSize.x;
void XonoticScreenshotImage_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
void XonoticScreenshotImage_load(entity me, string theImage)
void XonoticScreenshotImage_draw(entity me)
#define METHOD(cname, name, prototype)
float XonoticScreenshotImage_mouseDrag(entity me, vector coords)
float XonoticScreenshotImage_mouseMove(entity me, vector coords)
entity makeXonoticScreenshotImage()
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticScreenshotImage_configureXonoticScreenshotImage(entity me)