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

Go to the source code of this file.

Classes

class  XonoticServerToSTab

Functions

void AdditionalServerInfo_OnGet (entity fh, entity pass, int status)
entity makeXonoticServerToSTab ()

Function Documentation

◆ AdditionalServerInfo_OnGet()

void AdditionalServerInfo_OnGet ( entity fh,
entity pass,
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().