From: terencehill Date: Sun, 25 Dec 2011 11:05:24 +0000 (+0100) Subject: Tweak menu dialog and add progressbar and ratio options to it X-Git-Tag: xonotic-v0.8.1~12^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7075622fdd7ab85e013fc62c2214fea00be330d3;p=xonotic%2Fxonotic-data.pk3dir.git Tweak menu dialog and add progressbar and ratio options to it --- diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_itemstime.c b/qcsrc/menu/xonotic/dialog_hudpanel_itemstime.c index 7a0b32b26..7528bc06a 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_itemstime.c +++ b/qcsrc/menu/xonotic/dialog_hudpanel_itemstime.c @@ -19,14 +19,17 @@ void XonoticHUDItemsTimeDialog_fill(entity me) DIALOG_HUDPANEL_COMMON(); me.TR(me); - me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Items time display:"))); - me.TR(me); - me.TDempty(me, 0.2); me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Align icon:"))); - me.TD(me, 1, 2.4/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left"))); - me.TD(me, 1, 2.4/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right"))); + me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left"))); + me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right"))); + me.TR(me); + me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar", _("Enable status bar"))); + me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar_reduced", _("Reduced"))); + setDependent(e, "hud_panel_itemstime_progressbar", 1, 1); + me.TR(me); + me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Text/icon ratio:"))); + me.TD(me, 1, 2.6, e = makeXonoticSlider(2, 8, 0.5, "hud_panel_itemstime_ratio")); me.TR(me); - me.TDempty(me, 0.2); - me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_itemstime_showspawned", _("Show spawned items"))); + me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_showspawned", _("Show spawned items"))); } #endif