CheckEngineExtensions();
- // list all game dirs (TEST)
- if (cvar("developer") > 0)
- {
- for (int i = 0; ; ++i)
- {
- string s = getgamedirinfo(i, GETGAMEDIRINFO_NAME);
- if (!s) break;
- LOG_TRACE(s, ": ", getgamedirinfo(i, GETGAMEDIRINFO_DESCRIPTION));
- }
- }
-
registercvar("_menu_cmd_closemenu_available", "0", 0);
cvar_set("_menu_cmd_closemenu_available", "1");
#include <menu/xonotic/skinlist.qc>
#include <menu/xonotic/slider.qc>
#include <menu/xonotic/slider_decibels.qc>
-#include <menu/xonotic/slider_particles.qc>
#include <menu/xonotic/slider_picmip.qc>
#include <menu/xonotic/slider_resolution.qc>
#include <menu/xonotic/slider_sbfadetime.qc>
#include <menu/xonotic/skinlist.qh>
#include <menu/xonotic/slider.qh>
#include <menu/xonotic/slider_decibels.qh>
-#include <menu/xonotic/slider_particles.qh>
#include <menu/xonotic/slider_picmip.qh>
#include <menu/xonotic/slider_resolution.qh>
#include <menu/xonotic/slider_sbfadetime.qh>
e.addValue(e, _("Always"), "1");
e.configureXonoticTextSliderValues(e);
e.sendCvars = true;
- me.TR(me);
- me.TR(me);
- if(cvar("developer") > 0)
- me.TD(me, 1, 3, makeXonoticCheckBox(0, "showsound", _("Debug info about sounds")));
me.gotoRC(me, me.rows - 1, 0);
me.TD(me, 1, me.columns, audioApplyButton);
float n;
me.TR(me);
me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Quality preset:")));
- n = 5 + 2 * boolean(cvar("developer") > 0);
- if(cvar("developer") > 0)
- {
- me.TD(me, 1, 5 / n, e = makeXonoticCommandButton(ZCTX(_("PRE^OMG!")), '1 0 1', "exec effects-omg.cfg", 0));
- e.applyButton = effectsApplyButton;
- }
+ n = 5;
me.TD(me, 1, 5 / n, e = makeXonoticCommandButton(ZCTX(_("PRE^Low")), '0 0 0', "exec effects-low.cfg", 0));
e.applyButton = effectsApplyButton;
me.TD(me, 1, 5 / n, e = makeXonoticCommandButton(ZCTX(_("PRE^Medium")), '0 0 0', "exec effects-med.cfg", 0));
e.applyButton = effectsApplyButton;
me.TD(me, 1, 5 / n, e = makeXonoticCommandButton(ZCTX(_("PRE^Ultra")), '0 0 0', "exec effects-ultra.cfg", 0));
e.applyButton = effectsApplyButton;
- if(cvar("developer") > 0)
- {
- me.TD(me, 1, 5 / n, e = makeXonoticCommandButton(ZCTX(_("PRE^Ultimate")), '0.5 0 0', "exec effects-ultimate.cfg", 0));
- e.applyButton = effectsApplyButton;
- }
me.gotoRC(me, 1.25, 0);
me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Geometry detail:")));
me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Texture resolution:")));
setDependent(e, "r_showsurfaces", 0, 0);
me.TD(me, 1, 2, e = makeXonoticPicmipSlider());
- if(cvar("developer") > 0)
- e.addValue(e, ZCTX(_("RES^Leet")), "1337");
- e.addValue(e, ZCTX(_("RES^Lowest")), "3");
+ e.addValue(e, ZCTX(_("RES^Lowest")), "1337");
e.addValue(e, ZCTX(_("RES^Very low")), "2");
e.addValue(e, ZCTX(_("RES^Low")), "1");
e.addValue(e, ZCTX(_("RES^Normal")), "0");
me.TR(me);
me.TDempty(me, 0.2);
me.TD(me, 1, 1, e = makeXonoticCheckBoxEx_T(1, 0, "r_sky", _("Show sky"), _("Disable sky for performance and visibility")));
- if(cvar("developer") > 0)
- {
- me.TD(me, 1, 1, e = makeXonoticCheckBoxEx_T(3, 0, "r_showsurfaces", _("Show surfaces"),
- _("Disable textures completely for very slow hardware. This gives a huge performance boost, but looks very ugly.")));
- }
me.TR(me);
me.TD(me, 1, 1, e = makeXonoticCheckBox_T(1, "mod_q3bsp_nolightmaps", _("Use lightmaps"),
_("Use high resolution lightmaps, which will look pretty but use up some extra video memory")));
me.TR(me);
if(cvar_type("crypto_aeslevel") & CVAR_TYPEFLAG_ENGINE)
me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "crypto_aeslevel", _("Use encryption (AES) when available")));
- if(cvar("developer") > 0)
- {
- me.TR(me);
- me.TR(me);
- me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Local latency:")));
- me.TD(me, 1, 2, e = makeXonoticSlider(0, 1000, 25, "cl_netlocalping"));
- }
me.TR(me);
me.TR(me);
me.TD(me, 1, 3.25, e = makeXonoticHeaderLabel(_("HTTP downloads")));
_("Show current date and time of day, useful on screenshots")));
makeMulti(e, "showdate");
me.TR(me);
- me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "developer", _("Enable developer mode")));
- e.applyButton = miscApplyButton;
-
me.TR(me);
me.TDempty(me, 0.5);
me.TD(me, 1, 2, e = makeXonoticButton_T(_("Advanced settings..."), '0 0 0',
me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "vid_gl20", _("Use OpenGL 2.0 shaders (GLSL)")));
e.applyButton = videoApplyButton;
}
- if(cvar("developer") > 0)
- {
- me.TR(me);
- me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "v_flipped", _("Flip view horizontally"),
- _("Poor man's left handed mode")));
- me.TR(me);
- me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "v_psycho", _("Psycho coloring (easter egg)")));
- if(cvar_type("vid_gl20") & CVAR_TYPEFLAG_ENGINE)
- setDependent(e, "vid_gl20", 1, 1);
- me.TR(me);
- me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "r_trippy", _("Trippy vertices (easter egg)")));
- if(cvar_type("vid_gl20") & CVAR_TYPEFLAG_ENGINE)
- setDependent(e, "vid_gl20", 1, 1);
- }
me.gotoRC(me, me.rows - 1, 0);
me.TD(me, 1, me.columns, videoApplyButton);
+++ /dev/null
-#include "slider_particles.qh"
-
-entity makeXonoticParticlesSlider()
-{
- entity me;
- me = NEW(XonoticParticlesSlider);
- me.configureXonoticParticlesSlider(me);
- return me;
-}
-void XonoticParticlesSlider_configureXonoticParticlesSlider(entity me)
-{
- me.configureXonoticTextSlider(me, "cl_particles_quality",
- _("Multiplier for amount of particles. Less means less particles, which in turn gives for better performance"));
- if(cvar("developer") > 0) { me.addValue(me, ZCTX(_("PART^OMG")), "0.25 250 0"); }
- me.addValue(me, ZCTX(_("PARTQUAL^Low")), "0.5 500 0");
- me.addValue(me, ZCTX(_("PARTQUAL^Medium")), "0.75 750 0");
- me.addValue(me, ZCTX(_("PARTQUAL^Normal")), "1.0 1000 1");
- me.addValue(me, ZCTX(_("PARTQUAL^High")), "1.5 1500 1");
- me.addValue(me, ZCTX(_("PARTQUAL^Ultra")), "2.0 2000 2");
- if(cvar("developer") > 0) { me.addValue(me, ZCTX(_("PARTQUAL^Ultimate")), "3.0 3000 2"); }
- me.configureXonoticTextSliderValues(me);
-}
-void XonoticParticlesSlider_loadCvars(entity me)
-{
- me.setValueFromIdentifier_noAnim(me, sprintf("%s %s %s",
- cvar_string("cl_particles_quality"),
- cvar_string("r_drawparticles_drawdistance"),
- cvar_string("cl_damageeffect")
- ));
-}
-void XonoticParticlesSlider_saveCvars(entity me)
-{
- if(me.value >= 0 || me.value < me.nValues)
- {
- tokenize_console(me.getIdentifier(me));
- cvar_set("cl_particles_quality", argv(0));
- cvar_set("r_drawparticles_drawdistance", argv(1));
- cvar_set("cl_damageeffect", argv(2));
- }
-}
+++ /dev/null
-#pragma once
-
-#include "textslider.qh"
-CLASS(XonoticParticlesSlider, XonoticTextSlider)
- METHOD(XonoticParticlesSlider, configureXonoticParticlesSlider, void(entity));
- METHOD(XonoticParticlesSlider, loadCvars, void(entity));
- METHOD(XonoticParticlesSlider, saveCvars, void(entity));
-ENDCLASS(XonoticParticlesSlider)
-entity makeXonoticParticlesSlider();