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{
10 me.configureDialog(me);
11 return me;
12}
13
14void XonoticServerToSTab_loadToS(entity me, string downloadurl)
15{
17}
18
20{
21 entity e;
22 me.TR(me);
23 me.TD(me, me.rows, me.columns, e = me.textBox = makeXonoticTextBox());
24 e.allowColors = true;
25}
26
28{
29 switch (status) {
31 {
32 break;
33 }
34 case URL_READY_ERROR:
35 {
36 me.textBox.setText(me.textBox, "Error reading ToS");
37 break;
38 }
40 {
41 string temp = "";
42 for (string s; (s = url_fgets(fh)); )
43 {
44 if (temp != "")
45 temp = strcat(temp, "\n", s);
46 else
47 temp = s;
48 }
49 url_fclose(fh);
50 me.textBox.setText(me.textBox, temp);
51 break;
52 }
53 default:
54 {
55 break;
56 }
57 }
58}
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:285
ERASEABLE void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)
Definition urllib.qc:86
ERASEABLE void url_fclose(entity e)
Definition urllib.qc:205
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