]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add cl_allow_uidranking to the Profile menu
authorMario <mario@smbclan.net>
Thu, 29 Aug 2019 04:56:38 +0000 (14:56 +1000)
committerMario <mario@smbclan.net>
Thu, 29 Aug 2019 04:56:38 +0000 (14:56 +1000)
qcsrc/client/defs.qh
qcsrc/menu/xonotic/dialog_multiplayer_profile.qc
xonotic-client.cfg

index 7720f071b912a57c8e4cc2f0088bc689271f5b17..7d111f174194349990d711be5cd42f1dd1cd8a0e 100644 (file)
@@ -111,6 +111,7 @@ vector w_org, w_backoff;
 
 float autoswitch;
 bool cvar_cl_allow_uid2name;
+bool cvar_cl_allow_uidranking;
 float cvar_cl_autoscreenshot;
 float cvar_cl_autotaunt;
 float cvar_cl_clippedspectating;
@@ -129,6 +130,7 @@ bool cvar_cl_weapon_switch_fallback_to_impulse;
 
 REPLICATE(autoswitch, bool, "cl_autoswitch");
 REPLICATE(cvar_cl_allow_uid2name, bool, "cl_allow_uid2name");
+REPLICATE(cvar_cl_allow_uidranking, bool, "cl_allow_uidranking");
 REPLICATE(cvar_cl_autoscreenshot, int, "cl_autoscreenshot");
 REPLICATE(cvar_cl_autotaunt, float, "cl_autotaunt");
 REPLICATE(cvar_cl_clippedspectating, bool, "cl_clippedspectating");
index f87e0dbbe05f905e761c37918868870f4968837a..4405d98de7d3f34be00cd3ce8fce0ca8c1d655da 100644 (file)
@@ -131,7 +131,12 @@ void XonoticProfileTab_fill(entity me)
                me.TD(me, 1, 2.5, e = makeXonoticCheckBox(0, "cl_allow_uid2name", _("Allow player statistics to use your nickname")));
                        e.sendCvars = true;
                        setDependent(e, "cl_allow_uidtracking", 1, 1);
-       me.gotoRC(me, 4, 3.1); // TOP RIGHT
+       me.TR(me);
+               me.TDempty(me, 0.25);
+               me.TD(me, 1, 2.5, e = makeXonoticCheckBox(0, "cl_allow_uidranking", _("Allow player statistics to rank you in leaderboards")));
+                       e.sendCvars = true;
+                       setDependent(e, "cl_allow_uidtracking", 1, 1);
+       me.gotoRC(me, 4.5, 3.1); // TOP RIGHT
        //me.gotoRC(me, 12.5, 3.1); // BOTTOM RIGHT
        //me.gotoRC(me, 12.5, 0); // BOTTOM LEFT
                me.TDempty(me, 0.25);
index 68ee079173d7e2cb6a8bc7a94a95254fff148b35..4f6a006ef899cb73b427b73a7253e6c837bef046 100644 (file)
@@ -810,7 +810,6 @@ set cl_db_saveasdump 0 "write client.db in dump format (loads slower, easier to
 seta cl_allow_uid2name -1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid2name (allows showing your name in race rankings for instance)"
 seta cl_allow_uidtracking 1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid tracking (allows associating your data with your player ID)"
 seta cl_allow_uidranking 1 "0 = disable, 1 = enable uid ranking (allows statistics like elo to rank you in leaderboards)"
-// FIXME set to -1 before release, once we have a dialog for this!
 
 // polygonoffset for submodel SUCKS SUCKS SUCKS (only a hack for quake1, we don't need that)
 r_polygonoffset_submodel_offset 0