From: Rudolf Polzer Date: Thu, 30 Jan 2014 17:41:29 +0000 (+0100) Subject: Quick visual fix for long cvar descriptions. X-Git-Tag: xonotic-v0.8.0~230 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bc54a6428ad0b5689a28e6024e7ed39190f3870a;p=xonotic%2Fxonotic-data.pk3dir.git Quick visual fix for long cvar descriptions. --- diff --git a/qcsrc/menu/xonotic/dialog_settings_misc_cvars.c b/qcsrc/menu/xonotic/dialog_settings_misc_cvars.c index 724c868fd..f511ec361 100644 --- a/qcsrc/menu/xonotic/dialog_settings_misc_cvars.c +++ b/qcsrc/menu/xonotic/dialog_settings_misc_cvars.c @@ -40,8 +40,8 @@ void XonoticCvarsDialog_fill(entity me) // in this dialog, use SKINCOLOR_CVARLIS e.onChangeEntity = cvarlist; cvarlist.controlledTextbox = e; // this COULD also be the Value box, but this leads to accidentally editing stuff me.TR(me); - me.TD(me, me.rows - me.currentRow - 7, me.columns, cvarlist); - me.gotoRC(me, me.rows - 6, 0); + me.TD(me, me.rows - me.currentRow - 9, me.columns, cvarlist); + me.gotoRC(me, me.rows - 8, 0); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Setting:"))); me.TD(me, 1, me.columns - 1, e = makeXonoticTextLabel(0, string_null)); cvarlist.cvarNameBox = e; @@ -68,6 +68,7 @@ void XonoticCvarsDialog_fill(entity me) // in this dialog, use SKINCOLOR_CVARLIS e.onClickEntity = cvarlist; e.allowCut = 1; e.marginLeft = e.marginRight = 0.5; + me.TR(me); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Description:"))); me.TD(me, 1, me.columns - 1, e = makeXonoticTextLabel(0, string_null));