]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add gridsize to the hud configs so that the player won't have to find out which grids...
authorFruitieX <rasse@rasse-lappy.localdomain>
Fri, 16 Jul 2010 22:47:10 +0000 (01:47 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Fri, 16 Jul 2010 22:47:10 +0000 (01:47 +0300)
_hud_descriptions.cfg
defaultXonotic.cfg
hud_luminos_default.cfg
hud_old_nexuiz.cfg
qcsrc/client/hud.qc

index d4ac1096e3c600a961f64c3e25bedd76715791bd..488cfeb7b9f0454cba0873010e25de154b1031e9 100644 (file)
@@ -24,6 +24,10 @@ seta hud_progressbar_nexball_color "" "R G B vector of the progress bar backgrou
 
 seta _hud_panelorder "" "contains order in which panels are to be drawn"
 
+seta hud_configure_grid "" "snap to grid when moving/resizing panels"
+seta hud_configure_grid_xsize "" "snap to X * vid_conwidth"
+seta hud_configure_grid_ysize "" "snap to Y * vid_conheight"
+
 seta hud_weaponicons "" "enable/disable this panel"
 seta hud_weaponicons_pos "" "position of this panel"
 seta hud_weaponicons_size "" "size of this panel"
index be59bea457e87beb53a1dfbab0b883f5ea34d133..9947e97b4b87c3a6586564ce43a08eee2caf922f 100644 (file)
@@ -1327,9 +1327,6 @@ set _hud_configure 0 "1 = configure the HUD"
 seta hud_configure_teamcolorforced 1 "1 = force display of team colors in configure mode"
 seta hud_configure_checkcollisions 1 "check for collisions against other panels when in hud configure mode"
 seta hud_configure_bg_minalpha 0.25 "minimum panel background alpha when in hud configure mode"
-seta hud_configure_grid 1 "snap to grid when moving/resizing panels"
-seta hud_configure_grid_xsize 0.01 "snap to X * vid_conwidth"
-seta hud_configure_grid_ysize 0.01 "snap to Y * vid_conheight"
 seta hud_configure_grid_alpha 0.15 "alpha for visible grid when in configure mode"
 
 seta sbar_info_pos 0 "Y-axis distance from lower right corner for engine info prints"
index ab3a55bd09206fe348879951043ccdff781ee630..9771ba061e7c467dd6fc8d301ea588350fcf2560 100644 (file)
@@ -22,6 +22,10 @@ seta hud_progressbar_nexball_color "0.7 0.1 0"
 
 seta _hud_panelorder "6 5 9 3 1 7 12 0 4 10 2 11 14 8 13 "
 
+seta hud_configure_grid 1
+seta hud_configure_grid_xsize 0.01
+seta hud_configure_grid_ysize 0.01
+
 seta hud_panel_weapons 1
 seta hud_panel_weapons_pos "0.908906 0.088047"
 seta hud_panel_weapons_size "0.066564 0.641367"
index 6d732f7623bc1e6e42dfc6e7962eabdbb789f07e..c43751dcc8fd54c4ad1e077a7d38f05a2702b8ca 100644 (file)
@@ -12,6 +12,10 @@ seta hud_dock_color "0 0.5 0.35"
 seta hud_dock_color_team "0.700000"
 seta hud_dock_alpha "1"
 
+seta hud_configure_grid 1
+seta hud_configure_grid_xsize 0.01
+seta hud_configure_grid_ysize 0.01
+
 seta hud_progressbar_alpha 0
 seta hud_progressbar_strength_color "0 0 0.6"
 seta hud_progressbar_shield_color "0.6 0 0.6"
index d7007fbf75db12a5dcaaad86f008787cfa3fc69e..9fa3be8068347e903c2fb22994cfcc12fefa705a 100644 (file)
@@ -448,6 +448,11 @@ void HUD_Panel_ExportCfg(string cfgname)
                fputs(fh, strcat("seta _hud_panelorder \"", cvar_string("_hud_panelorder"), "\"", "\n"));
                fputs(fh, "\n");
 
+               fputs(fh, strcat("seta hud_configure_grid \"", cvar_string("hud_configure_grid"), "\"", "\n"));
+               fputs(fh, strcat("seta hud_configure_grid_xsize \"", cvar_string("hud_configure_grid_xsize"), "\"", "\n"));
+               fputs(fh, strcat("seta hud_configure_grid_ysize \"", cvar_string("hud_configure_grid_ysize"), "\"", "\n"));
+               fputs(fh, "\n");
+
                // common cvars for all panels
                float i;
                for (i = 0; i < HUD_PANEL_NUM; ++i)
@@ -504,6 +509,7 @@ void HUD_Panel_ExportCfg(string cfgname)
                        }
                        fputs(fh, "\n");
                }
+               fputs(fh, strcat("menu_restart", "\n")); // force a menu update when execing config, so that the dialogs are updated
 
                print("^2Successfully exported to hud_", autocvar_hud_skin, "_", cfgname, ".cfg! (Note: It's saved in data/data/)\n");
        }