From: terencehill Date: Thu, 17 Feb 2011 11:53:16 +0000 (+0100) Subject: Radio buttons for crosshair color selection, they work much better X-Git-Tag: xonotic-v0.5.0~311^2~6^2 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=2d71a1a23938f0a803ceef9c3ab3856a218d5140 Radio buttons for crosshair color selection, they work much better --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c index 8a804f91f..2b7b9a384 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c @@ -136,13 +136,12 @@ void XonoticPlayerSettingsTab_fill(entity me) me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, "Crosshair color:")); - me.TD(me, 1, 0.9, e = makeXonoticCheckBox(0, "crosshair_color_per_weapon", _("Per weapon"))); - setDependent(e, "crosshair_color_by_health", 0, 0); - me.TD(me, 1, 0.9, e = makeXonoticCheckBox(0, "crosshair_color_by_health", _("By health"))); - setDependent(e, "crosshair_color_per_weapon", 0, 0); + me.TD(me, 1, 0.9, e = makeXonoticRadioButton(4, "crosshair_color_per_weapon", string_null, _("Per weapon"))); + me.TD(me, 1, 0.9, e = makeXonoticRadioButton(4, "crosshair_color_by_health", string_null, _("By health"))); me.TR(me); - me.TDempty(me, 0.4); - me.TD(me, 2, 2.6, e = makeXonoticColorpickerString("crosshair_color", "crosshair_color")); + me.TDempty(me, 0.3); + me.TD(me, 1, 0.9, e = makeXonoticRadioButton(4, string_null, string_null, _("Custom"))); + me.TD(me, 2, 1.8, e = makeXonoticColorpickerString("crosshair_color", "crosshair_color")); setDependentAND(e, "crosshair_color_per_weapon", 0, 0, "crosshair_color_by_health", 0, 0); me.TR(me); me.TR(me);