Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_multiplayer_create_mutators.qh
Go to the documentation of this file.
1#pragma once
2
3#include "mutatortab.qh"
19
20REGISTRY(MenuMutators, BITS(5))
21REGISTER_REGISTRY(MenuMutators)
22
23REGISTRY_DEFINE_GET(MenuMutators, NULL)
24#define REGISTER_MENU_MUTATOR(id, impl) \
25 LAZY_NEW(id, impl) \
26 REGISTER(MenuMutators, MENU, id, m_id, NEW(Lazy, LAZY(id)))
27
28// The "cvar changes" mutator classes are created in mutatortab.qc
29// Arenas
34// Weapon & item mutators
38REGISTER_MENU_MUTATOR(offhandweapons, makeXonoticMutatorOffhandWeaponsTab()); // multiple mutators combined
42// Gameplay mutators
43const int MENU_MUTATOR_HEADER_2 = 11;
46#ifdef MENU_INCLUDE_OVERKILL
47REGISTER_MENU_MUTATOR(overkill, makeXonoticMutatorOverkillTab());
48#endif
55REGISTER_MENU_MUTATOR(customphysics, makeXonoticMutatorCustomPhysicsTab()); // cvar changes & multiple mutators combined
56
57
58#include "datasource.qh"
60 METHOD(MenuMutatorSource, getEntry, entity(entity me, int i, void(string name, string description) returns));
61 METHOD(MenuMutatorSource, getEntryOther, entity(entity me, int i, void(bool show_tick, bool disabled, string tree) returns));
62 METHOD(MenuMutatorSource, reload, int(entity me, string filter));
64
65
66#include "listbox.qh"
79 ATTRIB(XonoticRegisteredMutatorsList, typeToSearchString, string);
85 METHOD(XonoticRegisteredMutatorsList, drawListBoxItem, void(entity me, int i, vector absSize, bool isSelected, bool isFocused));
87 METHOD(XonoticRegisteredMutatorsList, resizeNotify, void(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize));
91
92
93#include "dialog.qh"
#define BITS(n)
Definition bits.qh:9
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
virtual void reload()
reload all entries matching filter returning how many matches were found
ATTRIB(XonoticMutatorsDialog, refilterEntity, entity)
virtual void fill()
virtual void close()
ATTRIB(XonoticRegisteredMutatorsList, typeToSearchString, string)
bool disabled
entity() spawn
#define REGISTER_MENU_MUTATOR(id, impl)
entity makeXonoticRegisteredMutatorsList()
const int MENU_MUTATOR_HEADER_2
const int MENU_MUTATOR_HEADER_1
entity makeXonoticMutatorsDialog()
string name
Definition menu.qh:30
entity makeXonoticMutatorCustomPhysicsTab()
entity makeXonoticMutatorOffhandWeaponsTab()
entity makeXonoticMutatorWeaponArenaTab()
entity makeXonoticMutatorWeaponStayTab()
entity makeXonoticMutatorJetpackTab()
#define NEW(cname,...)
Definition oo.qh:120
#define CLASS(...)
Definition oo.qh:149
#define ENDCLASS(cname)
Definition oo.qh:286
#define METHOD(cname, name, prototype)
Definition oo.qh:274
#define NULL
Definition post.qh:14
#define REGISTER_REGISTRY(id)
Definition registry.qh:270
#define REGISTRY(id, max)
Declares a new registry.
Definition registry.qh:23
#define REGISTRY_DEFINE_GET(id, null)
Definition registry.qh:50
vector
Definition self.qh:96
entity makeXonoticMutatorBloodLossTab()
entity makeXonoticMutatorBuffsTab()
Definition ui_buffs.qc:8
entity makeXonoticMutatorCloakedTab()
Definition ui_cloaked.qc:3
entity makeXonoticMutatorInstaGibTab()
Definition ui_instagib.qc:7
entity makeXonoticMutatorInvincibleProjectilesTab()
entity makeXonoticMutatorMidAirTab()
Definition ui_midair.qc:6
entity makeXonoticMutatorNadesTab()
Definition ui_nades.qc:10
entity makeXonoticMutatorNewToysTab()
Definition ui_new_toys.qc:5
entity makeXonoticMutatorNIXTab()
Definition ui_nix.qc:6
entity makeXonoticMutatorPinataTab()
Definition ui_pinata.qc:3
entity makeXonoticMutatorPowerupsTab()
Definition ui_powerups.qc:9
entity makeXonoticMutatorRocketFlyingTab()
entity makeXonoticMutatorTouchExplodeTab()
entity makeXonoticMutatorVampireTab()
Definition ui_vampire.qc:7