COLOR_DIALOG_RADAR '1 1 1'
COLOR_DIALOG_SERVERINFO '1 1 1'
COLOR_DIALOG_CVARS '1 0 0'
+COLOR_DIALOG_SCREENSHOTVIEWER '1 1 1'
// item: input box
// uses "inputbox" images
COLOR_DIALOG_RADAR '1 1 1'
COLOR_DIALOG_SERVERINFO '1 1 1'
COLOR_DIALOG_CVARS '1 0 0'
+COLOR_DIALOG_SCREENSHOTVIEWER '1 1 1'
// nexposee positions of windows (they are the scale transformation
// centers, NOT the actual positions of the windows!)
SKINVECTOR(COLOR_DIALOG_RADAR, '0.7 0.7 1');
SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
+ SKINVECTOR(COLOR_DIALOG_SCREENSHOTVIEWER, '0.7 0.7 1');
// nexposee positions of windows (they are the scale transformation
// centers, NOT the actual positions of the windows!)
{
entity e, btn, slist;
slist = makeXonoticScreenshotList();
+ const float slist_height = 8;
me.TR(me);
me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, "Filter:"));
me.TD(me, 1, 0.5, btn = makeXonoticButton("Clear", '0 0 0'));
e.onClick = ScreenshotList_Refresh_Click;
e.onClickEntity = slist;
me.TR(me);
- me.TD(me, 8, me.columns, slist);
- me.gotoRC(me, 9, 0);
+ me.TD(me, slist_height, me.columns, slist);
+
+ me.gotoRC(me, slist_height + 1, 0);
me.TD(me, 1, me.columns, e = makeXonoticButton("Open in the viewer", '0 0 0'));
e.onClick = StartScreenshot_Click;
e.onClickEntity = slist;
me.TR(me);
- me.TD(me, me.rows - 10, me.columns, e = makeXonoticScreenshotImage());
+ me.TD(me, me.rows - me.currentRow, me.columns, e = makeXonoticScreenshotImage());
e.showTitle = 0;
me.screenshotImage = e;
slist.screenshotPreview = e;
ATTRIB(XonoticScreenshotViewerDialog, intendedWidth, float, 1)
ATTRIB(XonoticScreenshotViewerDialog, rows, float, 25)
ATTRIB(XonoticScreenshotViewerDialog, columns, float, 6.5)
- ATTRIB(XonoticScreenshotViewerDialog, color, vector, SKINCOLOR_DIALOG_MULTIPLAYER)
+ ATTRIB(XonoticScreenshotViewerDialog, color, vector, SKINCOLOR_DIALOG_SCREENSHOTVIEWER)
ATTRIB(XonoticScreenshotViewerDialog, scrList, entity, NULL)
ATTRIB(XonoticScreenshotViewerDialog, screenshotImage, entity, NULL)
ATTRIB(XonoticScreenshotViewerDialog, currentScrPath, string, string_null)