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

Go to the source code of this file.

Functions

void AdditionalServerInfo_OnGet (entity fh, entity me, int status)
entity makeXonoticServerToSTab ()
void XonoticServerToSTab_fill (entity me)
void XonoticServerToSTab_loadToS (entity me, string downloadurl)

Function Documentation

◆ AdditionalServerInfo_OnGet()

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

Definition at line 27 of file dialog_multiplayer_join_termsofservice.qc.

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}
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
ERASEABLE string url_fgets(entity e)
Definition urllib.qc:285
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

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

Referenced by XonoticServerToSTab::ATTRIB(), and XonoticServerToSTab_loadToS().

◆ makeXonoticServerToSTab()

entity makeXonoticServerToSTab ( )

Definition at line 7 of file dialog_multiplayer_join_termsofservice.qc.

8{
10 me.configureDialog(me);
11 return me;
12}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticServerToSTab::ATTRIB(), and XonoticServerInfoDialog_fill().

◆ XonoticServerToSTab_fill()

void XonoticServerToSTab_fill ( entity me)

Definition at line 19 of file dialog_multiplayer_join_termsofservice.qc.

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}
entity makeXonoticTextBox()
Definition textbox.qc:4

References entity(), and makeXonoticTextBox().

◆ XonoticServerToSTab_loadToS()

void XonoticServerToSTab_loadToS ( entity me,
string downloadurl )

Definition at line 14 of file dialog_multiplayer_join_termsofservice.qc.

15{
17}
const float FILE_READ
void AdditionalServerInfo_OnGet(entity fh, entity me, int status)
ERASEABLE void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)
Definition urllib.qc:86

References AdditionalServerInfo_OnGet(), entity(), FILE_READ, and url_single_fopen().