Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_multiplayer_join_termsofservice.qc
Go to the documentation of this file.
2
3#include "textbox.qh"
4#include <lib/urllib.qh>
5
6
8{
9 entity me;
11 me.configureDialog(me);
12 return me;
13}
14
15void XonoticServerToSTab_loadToS(entity me, string downloadurl)
16{
18}
19
21{
22 entity e;
23 me.TR(me);
24 me.TD(me, me.rows, me.columns, e = me.textBox = makeXonoticTextBox());
25 e.allowColors = true;
26}
27
29{
30 switch (status) {
32 {
33 break;
34 }
35 case URL_READY_ERROR:
36 {
37 me.textBox.setText(me.textBox, "Error reading ToS");
38 break;
39 }
41 {
42 string temp = "";
43 for (string s; (s = url_fgets(fh)); )
44 {
45 if (temp != "")
46 temp = strcat(temp, "\n", s);
47 else
48 temp = s;
49 }
50 url_fclose(fh);
51 me.textBox.setText(me.textBox, temp);
52 break;
53 }
54 default:
55 {
56 break;
57 }
58 }
59}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const float FILE_READ
void AdditionalServerInfo_OnGet(entity fh, entity me, int status)
void XonoticServerToSTab_fill(entity me)
void XonoticServerToSTab_loadToS(entity me, string downloadurl)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define NEW(cname,...)
Definition oo.qh:117
entity makeXonoticTextBox()
Definition textbox.qc:4
ERASEABLE string url_fgets(entity e)
Definition urllib.qc:287
ERASEABLE void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)
Definition urllib.qc:87
ERASEABLE void url_fclose(entity e)
Definition urllib.qc:207
const float URL_READY_CLOSED
Definition urllib.qh:15
const float URL_READY_ERROR
Definition urllib.qh:14
const float URL_READY_CANREAD
Definition urllib.qh:17