]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
HUD editor: CTRL s to quickly save the current configuration
authorterencehill <piuntn@gmail.com>
Fri, 6 Mar 2015 23:43:49 +0000 (00:43 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 6 Mar 2015 23:43:49 +0000 (00:43 +0100)
qcsrc/client/hud_config.qc

index ad4ef2bf25cd557bdb03b414bf7b694fd64551f2..884d61584cf18be7eb8359a0e9e7a92682eec85d 100644 (file)
@@ -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)