]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
show boxes around inputbox too
authorRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 12:02:41 +0000 (13:02 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 12:02:41 +0000 (13:02 +0100)
qcsrc/menu/item/inputbox.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c

index 5b07afd4eef2997d11b9ec5057379fd5ec89d478..13351cfd32c8f2586a37157f2f0e4677c6a42818 100644 (file)
@@ -287,11 +287,14 @@ void InputBox_draw(entity me)
        }
        else
                draw_Text(me.realOrigin - eX * me.scrollPos, me.text, me.realFontSize, '1 1 1', 1, 0);
-               // skipping SUPER(InputBox).draw(me);
+
        if(!me.focused || (time - me.lastChangeTime) < floor(time - me.lastChangeTime) + 0.5)
                draw_Text(me.realOrigin + eX * (cursorPosInWidths - me.scrollPos), CURSOR, me.realFontSize, '1 1 1', 1, 0);
 
        draw_ClearClip();
+
+       // skipping SUPER(InputBox).draw(me);
+       Item_draw(me);
 }
 
 void InputBox_showNotify(entity me)
index e3adc47fc95c6849e9f435dfb441c5507d3b6422..6862705b78f32396757d98d72d0d41fd7103553f 100644 (file)
@@ -128,7 +128,7 @@ void XonoticPlayerSettingsTab_fill(entity me)
                        setDependent(e, "crosshair_enabled", 1, 2);
        me.TR(me);
                me.TDempty(me, 0.1);
-               me.TD(me, 1, 0.8, e = makeXonoticRadioButton(5, string_null, string_null, _("Custom")));
+               me.TD(me, 1, 0.9, e = makeXonoticRadioButton(5, string_null, string_null, _("Custom")));
                        setDependent(e, "crosshair_enabled", 1, 2);
                me.TD(me, 2, 2, e = makeXonoticColorpickerString("crosshair_color", "crosshair_color"));
                        setDependentAND3(e, "crosshair_color_per_weapon", 0, 0, "crosshair_color_by_health", 0, 0, "crosshair_enabled", 1, 2);