From: terencehill Date: Thu, 26 Nov 2015 16:38:02 +0000 (+0100) Subject: Nicer layout for the HUD skin selector X-Git-Tag: xonotic-v0.8.2~1467^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=372d06303670b1c1a33ba42707a208ae79124aa8;p=xonotic%2Fxonotic-data.pk3dir.git Nicer layout for the HUD skin selector --- diff --git a/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc b/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc index d261bb8bff..59f36326b1 100644 --- a/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc +++ b/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc @@ -24,23 +24,23 @@ void XonoticHUDExitDialog_fill(entity me) me.TR(me); me.TD(me, 1, 4, makeXonoticHeaderLabel(_("HUD skins"))); me.TR(me); - me.TD(me, 1, 0.9, e = makeXonoticButton(_("Refresh"), '0 0 0')); - e.onClick = HUDSkinList_Refresh_Click; - e.onClickEntity = hudskinlist; - me.TDempty(me, 0.1); - me.TD(me, 1, 1, e = makeXonoticTextLabel(1, _("Filter:"))); - me.TD(me, 1, 2, e = makeXonoticInputBox(0, string_null)); + me.TDempty(me, 0.2); + me.TD(me, 1, 0.7, e = makeXonoticTextLabel(0.5, _("Filter:"))); + me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null)); e.onChange = HUDSkinList_Filter_Change; e.onChangeEntity = hudskinlist; hudskinlist.controlledTextbox = e; me.TR(me); - me.TD(me, 12.5, 4, hudskinlist); - me.gotoRC(me, me.rows - 3.5, 0); - me.TDempty(me, 0.75); - me.TD(me, 1, 2.5, e = makeXonoticButton(_("Set skin"), '0 0 0')); + me.TD(me, 12, 4, hudskinlist); + me.gotoRC(me, me.rows - 4, 0); + me.TDempty(me, 0.2); + me.TD(me, 1, 1.4, e = makeXonoticButton(_("Refresh"), '0 0 0')); + e.onClick = HUDSkinList_Refresh_Click; + e.onClickEntity = hudskinlist; + me.TD(me, 1, 2.2, e = makeXonoticButton(_("Set skin"), '0 0 0')); e.onClick = SetHUDSkin_Click; e.onClickEntity = hudskinlist; - me.TR(me); + me.gotoRC(me, me.rows - 2.5, 0); me.TDempty(me, 0.75); me.TD(me, 1, 2.5, e = makeXonoticButton(_("Save current skin"), '0 0 0')); e.onClick = SaveHUDSkin_Click;