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 28 of file dialog_multiplayer_join_termsofservice.qc.

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}
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 XonoticServerToSTab::ATTRIB(), and XonoticServerToSTab_loadToS().

◆ makeXonoticServerToSTab()

entity makeXonoticServerToSTab ( )

Definition at line 7 of file dialog_multiplayer_join_termsofservice.qc.

8{
9 entity me;
11 me.configureDialog(me);
12 return me;
13}
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 20 of file dialog_multiplayer_join_termsofservice.qc.

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

References entity(), and makeXonoticTextBox().

◆ XonoticServerToSTab_loadToS()

void XonoticServerToSTab_loadToS ( entity me,
string downloadurl )

Definition at line 15 of file dialog_multiplayer_join_termsofservice.qc.

16{
18}
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:87

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