]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Friendly fire damagetext menu items
authorFreddy <schro.sb@gmail.com>
Sat, 2 Jul 2016 16:00:13 +0000 (18:00 +0200)
committerFreddy <schro.sb@gmail.com>
Sat, 2 Jul 2016 16:02:53 +0000 (18:02 +0200)
qcsrc/common/mutators/mutator/damagetext/damagetext.qc

index f7bfe15782694c1659afa5afaccb564ffb141d14..5452c4d8dc386d0d5f3142a5cb99f2c42f74ee9d 100644 (file)
@@ -190,6 +190,17 @@ CLASS(XonoticDamageTextSettings, XonoticTab)
                 setDependent(e, "cl_damagetext", 1, 1);
             this.TD(this, 2, 2, e = makeXonoticColorpickerString("cl_damagetext_color", "cl_damagetext_color"));
                 setDependent(e, "cl_damagetext", 1, 1);
+        this.TR(this);
+        this.TR(this);
+        // friendly fire
+            this.TD(this, 1, 3, e = makeXonoticCheckBox(0, "cl_damagetext_friendlyfire", _("Draw damage numbers for friendly fire")));
+                setDependent(e, "cl_damagetext", 1, 1);
+        this.TR(this);
+            this.TD(this, 1, 1, e = makeXonoticTextLabel(0, _("Color (Friendly Fire):")));
+                setDependentAND(e, "cl_damagetext", 1, 1, "cl_damagetext_friendlyfire", 1, 1);
+            this.TD(this, 2, 2, e = makeXonoticColorpickerString("cl_damagetext_friendlyfire_color", "cl_damagetext_friendlyfire_color"));
+                setDependentAND(e, "cl_damagetext", 1, 1, "cl_damagetext_friendlyfire", 1, 1);
+        this.TR(this);
     }
 ENDCLASS(XonoticDamageTextSettings)
 #endif