Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_termsofservice.qh File Reference
#include "rootdialog.qh"
Include dependency graph for dialog_termsofservice.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticToSDialog

Functions

void XonoticToS_OnGet (entity fh, entity me, int status)

Variables

int autocvar__termsofservice_accepted
const string termsofservice_url = "https://update.xonotic.org/tos.txt"

Function Documentation

◆ XonoticToS_OnGet()

void XonoticToS_OnGet ( entity fh,
entity me,
int status )

Definition at line 31 of file dialog_termsofservice.qc.

32{
33 switch (status) {
35 {
36 break;
37 }
38 case URL_READY_ERROR:
39 {
40 me.textBox.setText(me.textBox, "Error reading ToS");
41 break;
42 }
44 {
45 string temp = "";
46 for (string s; (s = url_fgets(fh)); )
47 {
48 if (temp != "")
49 temp = strcat(temp, "\n", s);
50 else
51 temp = s;
52 }
53 url_fclose(fh);
54 me.textBox.setText(me.textBox, temp);
55 break;
56 }
57 default:
58 {
59 break;
60 }
61 }
62}
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
ERASEABLE string url_fgets(entity e)
Definition urllib.qc:287
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

References entity(), strcat(), url_fclose(), url_fgets(), URL_READY_CANREAD, URL_READY_CLOSED, and URL_READY_ERROR.

Referenced by XonoticToSDialog_loadXonoticToS().

Variable Documentation

◆ autocvar__termsofservice_accepted

int autocvar__termsofservice_accepted

Definition at line 3 of file dialog_termsofservice.qh.

Referenced by XonoticToSDialog_fill(), and XonoticToSDialog_shouldShow().

◆ termsofservice_url

const string termsofservice_url = "https://update.xonotic.org/tos.txt"

Definition at line 4 of file dialog_termsofservice.qh.

Referenced by XonoticToSDialog_loadXonoticToS().