From: terencehill Date: Mon, 28 Mar 2016 21:43:54 +0000 (+0200) Subject: Link more settings to the Apply button X-Git-Tag: xonotic-v0.8.2~982^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e94c461ba77860718485bd0aaad58dac0e605789;p=xonotic%2Fxonotic-data.pk3dir.git Link more settings to the Apply button --- diff --git a/qcsrc/menu/xonotic/dialog_settings_effects.qc b/qcsrc/menu/xonotic/dialog_settings_effects.qc index 1b0666c75..0f5c5a4af 100644 --- a/qcsrc/menu/xonotic/dialog_settings_effects.qc +++ b/qcsrc/menu/xonotic/dialog_settings_effects.qc @@ -135,6 +135,7 @@ void XonoticEffectsSettingsTab_fill(entity me) me.TR(me); me.TD(me, 1, 1, e = makeXonoticCheckBox_T(1, "mod_q3bsp_nolightmaps", _("Use lightmaps"), _("Use high resolution lightmaps, which will look pretty but use up some extra video memory (default: enabled)"))); + e.applyButton = effectsApplyButton; me.TD(me, 1, 1, e = makeXonoticCheckBox_T(0, "r_glsl_deluxemapping", _("Deluxe mapping"), _("Use per-pixel lighting effects (default: enabled)"))); setDependentAND(e, "vid_gl20", 1, 1, "mod_q3bsp_nolightmaps", 0, 0); diff --git a/qcsrc/menu/xonotic/dialog_settings_video.qc b/qcsrc/menu/xonotic/dialog_settings_video.qc index 1ec53c623..9320a6ebf 100644 --- a/qcsrc/menu/xonotic/dialog_settings_video.qc +++ b/qcsrc/menu/xonotic/dialog_settings_video.qc @@ -86,6 +86,7 @@ void XonoticVideoSettingsTab_fill(entity me) e.addValue(e, _("4x"), "4"); e.configureXonoticTextSliderValues(e); setDependent(e, "r_viewfbo", 0, 0); + e.applyButton = videoApplyButton; me.TR(me); me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 0, "r_viewfbo", _("High-quality frame buffer"))); setDependent(e, "vid_samples", 1, 1); @@ -154,6 +155,7 @@ void XonoticVideoSettingsTab_fill(entity me) _("Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines (default: disabled)"))); me.TR(me); me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "vid_gl20", _("Use OpenGL 2.0 shaders (GLSL)"))); + e.applyButton = videoApplyButton; me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 2.8, e = makeXonoticCheckBox_T(0, "v_glslgamma", _("Use GLSL to handle color control"),