+#include "../menu.qh"
+
#include "../../common/command/commands.qc"
#include "menu_cmd.qc"
#include "menu_cmd.qh"
+#include "../menu.qh"
+#include "../oo/classes.qc"
+
#include "../../common/command/generic.qh"
+.entity firstChild, nextSibling;
+
string _dumptree_space;
void _dumptree_open(entity pass, entity me)
{
}
}
+float updateConwidths(float width, float height, float pixelheight);
+
void GameCommand(string theCommand)
{
float argc;
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
-#endif
+#include "draw.qh"
+#include "../common/util.qh"
+#include "../common/constants.qh"
string draw_mousepointer;
vector draw_mousepointer_offset;
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
-#endif
+#include "menu.qh"
+#include "oo/classes.qc"
+#include "xonotic/util.qh"
+
+#include "../common/weapons/weapons.qh"
+#include "../common/mapinfo.qh"
///////////////////////////////////////////////
// Menu Source File
void m_sync();
+void draw_reset_cropped();
+
// sounds
const string MENU_SOUND_CLEAR = "sound/menu/clear.wav";
#ifndef BASE_H
#define BASE_H
+#include "../../common/util.qh"
+#include "../../dpdefs/keycodes.qh"
+
#define NULL (null_entity)
#define world NULL
#define NEW(cname) (spawn##cname(null_entity, null_entity))
+#define CLASS(cname, base) \
+entity spawn##cname(entity this, entity basevtbl) { \
+ this = NEW(base); basevtbl = base##_vtbl; \
+}
+
+#define METHOD(cname, name, prototype) \
+prototype cname##_##name; \
+.prototype name; \
+[[accumulate]] entity spawn##cname(entity this, entity basevtbl) { \
+ this.name = cname##_##name; \
+}
+
+#define ATTRIB(cname, name, type, val) \
+.type name; \
+[[accumulate]] entity spawn##cname(entity this, entity basevtbl) { \
+ this.name = val; \
+}
+
+#define ATTRIBARRAY(cname, name, type, cnt) \
+.type name[cnt];
+
+#define ENDCLASS(cname) \
+.bool instanceOf##cname; \
+entity cname##_vtbl; \
+[[last]] entity spawn##cname(entity this, entity basevtbl) { \
+ this.instanceOf##cname = true; \
+ this.classname = #cname; \
+ if (!cname##_vtbl) cname##_vtbl = spawnVtbl(this, basevtbl); \
+ return this; \
+}
+
+#define SUPER(cname) (cname##_vtbl.vtblbase)
+
#endif
+#ifndef CLASSES_H
+#define CLASSES_H
#include "base.qh"
-#ifdef CLASS
-#undef CLASS
-#undef METHOD
-#undef ATTRIB
-#undef ATTRIBARRAY
-#undef ENDCLASS
-#undef SUPER
-#endif
-
-#define CLASS(cname, base) \
-entity spawn##cname(entity this, entity basevtbl) { \
- this = NEW(base); basevtbl = base##_vtbl; \
-}
-
-#define METHOD(cname, name, prototype) \
-prototype cname##_##name; \
-.prototype name; \
-[[accumulate]] entity spawn##cname(entity this, entity basevtbl) { \
- this.name = cname##_##name; \
-}
-
-#define ATTRIB(cname, name, type, val) \
-.type name; \
-[[accumulate]] entity spawn##cname(entity this, entity basevtbl) { \
- this.name = val; \
-}
-
-#define ATTRIBARRAY(cname, name, type, cnt) \
-.type name[cnt];
-
-#define ENDCLASS(cname) \
-.bool instanceOf##cname; \
-entity cname##_vtbl; \
-[[last]] entity spawn##cname(entity this, entity basevtbl) { \
- this.instanceOf##cname = true; \
- this.classname = #cname; \
- if (!cname##_vtbl) cname##_vtbl = spawnVtbl(this, basevtbl); \
- return this; \
-}
-
-#define SUPER(cname) (cname##_vtbl.vtblbase)
-
-#ifdef IMPLEMENTATION
-#undef IMPLEMENTATION
-#endif
-
#include "../classes.inc"
-
-#ifndef IMPLEMENTATION
#define IMPLEMENTATION
-#endif
-
#include "../classes.inc"
+
+#endif
+#include "util.qh"
+#include "../menu.qh"
+#include "../oo/base.qh"
+#include "../../common/campaign_common.qh"
+#include "../../common/constants.qh"
+#include "../../common/mapinfo.qh"
#include "../../common/urllib.qh"
+#include "../../common/util.qh"
+#include "../../common/command/generic.qh"
float GL_CheckExtension(string ext)
{
return string_null;
}
+.entity parent, firstChild, nextSibling;
void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass)
{
depthfirst(root, parent, firstChild, nextSibling, funcPre, funcPost, pass);
void SUB_Null_ee(entity e1, entity e2)
{
}
+
+.void(entity) saveCvars;
void saveCvarsOf(entity ignore, entity e)
{
if(e.saveCvars)
e.saveCvars(e);
}
+
+.void(entity) loadCvars;
void loadCvarsOf(entity ignore, entity e)
{
if(e.loadCvars)
.string cvarString_setDependent;
.string cvarValue_setDependent;
.float(entity) func_setDependent;
+.bool disabled;
void setDependent_Check(entity e)
{
float f;
setDependent_Check(e);
e.draw_setDependent(e);
}
+.void(entity) draw;
void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax)
{
e.draw_setDependent = e.draw;
draw_CenterText('0.5 0.1 0', sprintf(_("^1%s TEST BUILD"), autocvar_menu_watermark), globalToBoxSize('32 32 0', draw_scale), '1 1 1', 0.05, 1);
}
}
+void DialogOpenButton_Click_withCoords(entity button, entity tab, vector theOrigin, vector theSize);
+.entity winnerDialog;
void preMenuDraw()
{
vector fs, sz = '0 0 0', line, mid;
return "";
}
+.void(entity) TR;
+.void(entity, float, float, entity) TD;
+.void(entity, float) TDempty;
+entity makeXonoticTextLabel(float theAlign, string theText);
+entity makeXonoticTextSlider(string);
+.void(entity, string, string) addValue;
+.void(entity) configureXonoticTextSliderValues;
+entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar);
+entity makeXonoticCheckBoxString(string, string, string, string);
+entity makeXonoticCheckBox(float, string, string);
+.bool sendCvars;
+
void dialog_hudpanel_common_notoggle(entity me, string panelname)
{
float i;
serverdefs=("-DSVQC" "common/util-pre.qh" "server/sys-pre.qh" "dpdefs/progsdefs.qh" "dpdefs/dpextensions.qh" "server/sys-post.qh" "server/defs.qh" "server/autocvars.qh")
check "server" serverdefs[@]
-# menudefs=("-DMENUQC" "common/util-pre.qh" "dpdefs/menudefs.qh" "menu/oo/interface.qc" "menu/oo/implementation.qc")
-# check "menu" menudefs[@]
+menudefs=("-DMENUQC" "common/util-pre.qh" "dpdefs/menudefs.qh")
+check "menu" menudefs[@]