11 if(!
cvar(
"menu_screenshotviewer_enablemusic"))
12 if(
cvar(
"music_playlist_index") != 999)
15 if(
cvar(
"music_playlist_index") != -1)
18 cvar_set(
"music_playlist_sampleposition0",
"0");
19 cvar_set(
"music_playlist_index",
"999");
25 if (me.currentScrPath == scrImage)
27 strcpy(me.currentScrPath, scrImage);
28 me.screenshotImage.load(me.screenshotImage, me.currentScrPath);
29 me.frame.setText(me.frame, me.screenshotImage.screenshotTitle);
33 me.scrList.goScreenshot(me.scrList, -1);
37 me.scrList.goScreenshot(me.scrList, +1);
41 me.screenshotImage.setZoom(me.screenshotImage, -2,
false);
45 me.screenshotImage.setZoom(me.screenshotImage, -1/2,
false);
49 me.screenshotImage.setZoom(me.screenshotImage, 0,
false);
53 if (me.slideShowButton.forcePressed)
55 me.scrList.stopSlideShow(me.scrList);
56 me.slideShowButton.forcePressed = 0;
60 me.scrList.startSlideShow(me.scrList);
61 me.slideShowButton.forcePressed = 1;
70 me.scrList.goScreenshot(me.scrList, -1);
74 me.scrList.goScreenshot(me.scrList, +1);
90 me.screenshotImage.setZoom(me.screenshotImage, -2, (key ==
K_MWHEELUP));
95 me.screenshotImage.setZoom(me.screenshotImage, -1/2, (key ==
K_MWHEELDOWN));
98 if (me.scrList.keyDown(me.scrList, key, ascii, shift))
101 me.scrList.goScreenshot(me.scrList, 0);
110 if(!
cvar(
"menu_screenshotviewer_enablemusic"))
111 if(
cvar(
"music_playlist_index") == 999)
118 me.scrList.stopSlideShow(me.scrList);
119 me.slideShowButton.forcePressed = 0;
128 me.screenshotImage = e;
129 me.gotoRC(me, me.rows - 1, 0);
130 me.TDempty(me, 1/20 * me.columns);
133 e.onClickEntity = me;
136 e.onClickEntity = me;
139 e.onClickEntity = me;
141 me.TDempty(me, 2/20 * me.columns);
144 e.onClickEntity = me;
147 e.onClickEntity = me;
149 me.TDempty(me, 2/20 * me.columns);
150 me.TD(me, 1, 4/20 * me.columns, e =
makeXonoticButton(_(
"Slide show"),
'0 0 0'));
152 e.onClickEntity = me;
153 me.slideShowButton = e;
entity makeXonoticScreenshotImage()