Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_media_screenshot.qc
Go to the documentation of this file.
2
4#include "screenshotlist.qh"
5
6#include "textlabel.qh"
7#include "inputbox.qh"
8#include "checkbox.qh"
9#include "button.qh"
10
12{
13 entity me;
15 me.configureDialog(me);
16 return me;
17}
19{
20 if (me.currentScrPath == scrImage)
21 return;
22 strcpy(me.currentScrPath, scrImage);
23 me.screenshotImage.load(me.screenshotImage, me.currentScrPath);
24}
26{
27 entity e, slist;
29
30 me.gotoRC(me, 0.5, 0); me.setFirstColumn(me, me.currentColumn);
31 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(1, _("Filter:")));
32 me.TD(me, 1, 2.4, e = makeXonoticInputBox(0, string_null));
34 e.onChangeEntity = slist;
35 slist.screenshotViewerDialog = main.screenshotViewerDialog;
36 main.screenshotViewerDialog.scrList = slist;
37
38 me.gotoRC(me, 0.5, 3.1);
39 me.TD(me, 1, 1.9, e = makeXonoticCheckBoxEx(2, 1, "cl_autoscreenshot", _("Auto screenshot scoreboard")));
40 e.sendCvars = true;
41 me.TD(me, 1, 1, e = makeXonoticButton(_("Refresh"), '0 0 0'));
43 e.onClickEntity = slist;
44
45 /*me.TR(me);
46 me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, "Filter:"));
47 me.TD(me, 1, me.columns - 1.5, e = makeXonoticInputBox(0, string_null));
48 e.onChange = ScreenshotList_Filter_Would_Change;
49 e.onChangeEntity = slist;
50 slist.screenshotViewerDialog = main.screenshotViewerDialog;
51 main.screenshotViewerDialog.scrList = slist;
52 me.TD(me, 1, 1, e = makeXonoticButton(_("Refresh"), '0 0 0'));
53 e.onClick = ScreenshotList_Refresh_Click;
54 e.onClickEntity = slist;*/
55
56 me.gotoRC(me, 2, 0);
57 me.TD(me, me.rows - 3, me.columns, slist);
58
59 me.gotoRC(me, me.rows - 1, 0);
60 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Open in the viewer"), '0 0 0'));
61 e.onClick = StartScreenshot_Click;
62 e.onClickEntity = slist;
63/*
64 me.TR(me);
65 me.TD(me, me.rows - me.currentRow, me.columns, e = makeXonoticScreenshotImage());
66 e.showTitle = false;
67 me.screenshotImage = e;
68 slist.screenshotPreview = e;
69 slist.screenshotBrowserDialog = me;
70*/
71}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticScreenshotBrowserTab_fill(entity me)
void XonoticScreenshotBrowserTab_loadPreviewScreenshot(entity me, string scrImage)
entity makeXonoticScreenshotBrowserTab()
#define main
Definition _all.inc:202
entity makeXonoticButton(string theText, vector theColor)
Definition button.qc:10
string string_null
Definition nil.qh:9
#define NEW(cname,...)
Definition oo.qh:117
void ScreenshotList_Filter_Would_Change(entity box, entity me)
entity makeXonoticScreenshotList()
void ScreenshotList_Refresh_Click(entity btn, entity me)
void StartScreenshot_Click(entity btn, entity me)
#define strcpy(this, s)
Definition string.qh:52
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
Definition checkbox.qc:40
entity makeXonoticInputBox(bool doEditColorCodes, string theCvar)
Definition inputbox.qc:10