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{
14 me.configureDialog(me);
15 return me;
16}
18{
19 if (me.currentScrPath == scrImage)
20 return;
21 strcpy(me.currentScrPath, scrImage);
22 me.screenshotImage.load(me.screenshotImage, me.currentScrPath);
23}
25{
26 entity e, slist;
28
29 me.gotoRC(me, 0.5, 0); me.setFirstColumn(me, me.currentColumn);
30 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(1, _("Filter:")));
31 me.TD(me, 1, 2.4, e = makeXonoticInputBox(0, string_null));
33 e.onChangeEntity = slist;
34 slist.screenshotViewerDialog = main.screenshotViewerDialog;
35 main.screenshotViewerDialog.scrList = slist;
36
37 me.gotoRC(me, 0.5, 3.1);
38 me.TD(me, 1, 1.9, e = makeXonoticCheckBoxEx(2, 1, "cl_autoscreenshot", _("Auto screenshot scoreboard")));
39 e.sendCvars = true;
40 me.TD(me, 1, 1, e = makeXonoticButton(_("Refresh"), '0 0 0'));
42 e.onClickEntity = slist;
43
44 /*me.TR(me);
45 me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, "Filter:"));
46 me.TD(me, 1, me.columns - 1.5, e = makeXonoticInputBox(0, string_null));
47 e.onChange = ScreenshotList_Filter_Would_Change;
48 e.onChangeEntity = slist;
49 slist.screenshotViewerDialog = main.screenshotViewerDialog;
50 main.screenshotViewerDialog.scrList = slist;
51 me.TD(me, 1, 1, e = makeXonoticButton(_("Refresh"), '0 0 0'));
52 e.onClick = ScreenshotList_Refresh_Click;
53 e.onClickEntity = slist;*/
54
55 me.gotoRC(me, 2, 0);
56 me.TD(me, me.rows - 3, me.columns, slist);
57
58 me.gotoRC(me, me.rows - 1, 0);
59 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Open in the viewer"), '0 0 0'));
60 e.onClick = StartScreenshot_Click;
61 e.onClickEntity = slist;
62/*
63 me.TR(me);
64 me.TD(me, me.rows - me.currentRow, me.columns, e = makeXonoticScreenshotImage());
65 e.showTitle = false;
66 me.screenshotImage = e;
67 slist.screenshotPreview = e;
68 slist.screenshotBrowserDialog = me;
69*/
70}
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:9
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:39
entity makeXonoticInputBox(bool doEditColorCodes, string theCvar)
Definition inputbox.qc:9