From: terencehill Date: Fri, 6 Mar 2015 23:43:49 +0000 (+0100) Subject: HUD editor: CTRL s to quickly save the current configuration X-Git-Tag: xonotic-v0.8.1~58^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=03e2fd1de296e32524840f822c7029f13fdc036f;p=xonotic%2Fxonotic-data.pk3dir.git HUD editor: CTRL s to quickly save the current configuration --- 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)