From 03e2fd1de296e32524840f822c7029f13fdc036f Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 7 Mar 2015 00:43:49 +0100 Subject: [PATCH] HUD editor: CTRL s to quickly save the current configuration --- qcsrc/client/hud_config.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index ad4ef2bf2..884d61584 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -896,6 +896,12 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) highlightedPanel_backup = world; } } + else if(nPrimary == 's' && hudShiftState & S_CTRL) // save config + { + if (bInputType == 1 || mouseClicked) + return true; + localcmd("hud save myconfig\n"); + } else if(nPrimary == K_UPARROW || nPrimary == K_DOWNARROW || nPrimary == K_LEFTARROW || nPrimary == K_RIGHTARROW) { if (bInputType == 1) -- 2.39.2