Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_multiplayer_create_mutators.qc File Reference
#include "dialog_multiplayer_create_mutators.qh"
#include <common/weapons/_all.qh>
#include "textbox.qh"
#include "textlabel.qh"
#include "button.qh"
Include dependency graph for dialog_multiplayer_create_mutators.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticMutatorsDialog ()
entity makeXonoticRegisteredMutatorsList ()
void XonoticMutatorsDialog_close (entity me)
void XonoticMutatorsDialog_fill (entity me)
void XonoticRegisteredMutatorsList_getNameDescription_cb (string _name, string _description)
void XonoticRegisteredMutatorsList_getOther_cb (bool _show_tick, bool _disabled, string _tree)

Variables

const string MUTATOR_ENABLED_ICON = "/gfx/scoreboard/player_ready"
string XonoticRegisteredMutatorsList_cb_description
bool XonoticRegisteredMutatorsList_cb_disabled
string XonoticRegisteredMutatorsList_cb_name
bool XonoticRegisteredMutatorsList_cb_show_tick
string XonoticRegisteredMutatorsList_cb_tree

Function Documentation

◆ makeXonoticMutatorsDialog()

entity makeXonoticMutatorsDialog ( )

Definition at line 193 of file dialog_multiplayer_create_mutators.qc.

194{
196 me.configureDialog(me);
197 return me;
198}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:120

References entity(), and NEW.

Referenced by XonoticMutatorsDialog::fill().

◆ makeXonoticRegisteredMutatorsList()

entity makeXonoticRegisteredMutatorsList ( )

Definition at line 75 of file dialog_multiplayer_create_mutators.qc.

76{
78 me.configureXonoticListBox(me);
79 me.refilter(me);
80 me.setSelected(me, MENU_MUTATOR_HEADER_1 + 1);
81 return me;
82}
const int MENU_MUTATOR_HEADER_1

References entity(), MENU_MUTATOR_HEADER_1, and NEW.

◆ XonoticMutatorsDialog_close()

void XonoticMutatorsDialog_close ( entity me)

Definition at line 261 of file dialog_multiplayer_create_mutators.qc.

262{
263 if (me.refilterEntity)
264 me.refilterEntity.refilter(me.refilterEntity);
265 SUPER(XonoticMutatorsDialog).close(me);
266}
#define SUPER(cname)
Definition oo.qh:236

References entity(), and SUPER.

◆ XonoticMutatorsDialog_fill()

void XonoticMutatorsDialog_fill ( entity me)

Definition at line 229 of file dialog_multiplayer_create_mutators.qc.

230{
231 entity topics = me.topicList;
232 topics.onChange = me.topicChangeNotify;
233 topics.onChangeEntity = me;
234 entity e;
235
236 int col = 0;
237 int width = 1.75;
238 me.gotoRC(me, 0, col);
239 me.TD(me, me.rows - 1.5, width, topics);
240
241 col += width + 0.1;
242 width = me.columns - col;
243 me.gotoRC(me, 0, col); me.setFirstColumn(me, me.currentColumn);
244 me.TD(me, 1, width, me.labelTitle = makeXonoticHeaderLabel(""));
245 me.TR(me);
246 me.TD(me, me.rows - 6.5, width, me.currentPanel);
247 me.gotoRC(me, me.rows - 5.5, col);
248 me.TD(me, 4, width, e = makeXonoticTextBox());
249 e.align = 0.5;
250 e.allowColors = true;
251 me.descriptionLabel = e;
252
253 me.gotoRC(me, me.rows - 1, 0);
254 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
255 e.onClick = Dialog_Close;
256 e.onClickEntity = me;
257
258 me.topicChangeNotify(topics, me);
259}
void Dialog_Close(entity button, entity me)
Definition dialog.qc:7
entity makeXonoticButton(string theText, vector theColor)
Definition button.qc:9
entity makeXonoticTextBox()
Definition textbox.qc:4
entity makeXonoticHeaderLabel(string theText)
Definition textlabel.qc:9

References Dialog_Close(), entity(), makeXonoticButton(), makeXonoticHeaderLabel(), and makeXonoticTextBox().

◆ XonoticRegisteredMutatorsList_getNameDescription_cb()

◆ XonoticRegisteredMutatorsList_getOther_cb()

Variable Documentation

◆ MUTATOR_ENABLED_ICON

const string MUTATOR_ENABLED_ICON = "/gfx/scoreboard/player_ready"

◆ XonoticRegisteredMutatorsList_cb_description

◆ XonoticRegisteredMutatorsList_cb_disabled

bool XonoticRegisteredMutatorsList_cb_disabled

◆ XonoticRegisteredMutatorsList_cb_name

◆ XonoticRegisteredMutatorsList_cb_show_tick

bool XonoticRegisteredMutatorsList_cb_show_tick

◆ XonoticRegisteredMutatorsList_cb_tree

string XonoticRegisteredMutatorsList_cb_tree