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 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().