]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use menu_sync in hud configs instead of menu_restart, it's A LOT faster and can be...
authorterencehill <piuntn@gmail.com>
Thu, 2 Sep 2010 22:31:02 +0000 (00:31 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 2 Sep 2010 22:31:02 +0000 (00:31 +0200)
Note: at startup menu_sync doesn't really get executed, since before executing hud_default.cfg it's defined as ""

defaultXonotic.cfg
hud_default.cfg
hud_luminos_default.cfg
hud_nexuiz.cfg
qcsrc/client/hud.qc

index 691e2d853fd4cf79290aa0b28aaad58580794afc..07e3b49d931b61bbb9050bfc1f47857175bb760e 100644 (file)
@@ -1338,7 +1338,7 @@ seta sbar_info_pos 0 "Y-axis distance from lower right corner for engine info pr
 
 // hud cvar descriptions
 exec _hud_descriptions.cfg
 
 // hud cvar descriptions
 exec _hud_descriptions.cfg
-// exec the default skin config. remember, NO menu_restart in the deafault cfg (dp segfaults at startup otherwise)
+// exec the default skin config
 // please add any new cvars into the hud_save script in qcsrc/client/hud.qc for consistency
 exec hud_default.cfg
 
 // please add any new cvars into the hud_save script in qcsrc/client/hud.qc for consistency
 exec hud_default.cfg
 
index 1a85affd042da662c9c5a0c9bc80f9ea681e24d8..813947b7eae507da16f8a8ba9d3d17dc6c90be91 100644 (file)
@@ -201,3 +201,5 @@ seta hud_panel_infomessages_bg_alpha ""
 seta hud_panel_infomessages_bg_border ""
 seta hud_panel_infomessages_bg_padding "0"
 seta hud_panel_infomessages_flip "1"
 seta hud_panel_infomessages_bg_border ""
 seta hud_panel_infomessages_bg_padding "0"
 seta hud_panel_infomessages_flip "1"
+
+menu_sync
index 65331cf9d859cc51857581f9a2d8975b92011abf..813947b7eae507da16f8a8ba9d3d17dc6c90be91 100644 (file)
@@ -202,4 +202,4 @@ seta hud_panel_infomessages_bg_border ""
 seta hud_panel_infomessages_bg_padding "0"
 seta hud_panel_infomessages_flip "1"
 
 seta hud_panel_infomessages_bg_padding "0"
 seta hud_panel_infomessages_flip "1"
 
-menu_restart
+menu_sync
index 8b695514e49c98308f6c05460084cf74110bb41f..93e8c99591f6ddd6cae1ad6d64b832e35a7e2dfd 100644 (file)
@@ -202,4 +202,4 @@ seta hud_panel_infomessages_bg_border ""
 seta hud_panel_infomessages_bg_padding ""
 seta hud_panel_infomessages_flip "1"
 
 seta hud_panel_infomessages_bg_padding ""
 seta hud_panel_infomessages_flip "1"
 
-menu_restart
+menu_sync
index 3d1a5403712789388290c088c81e9856319a3863..91dc1658be6fc3e64c9577ce913e8489bfe54c1e 100644 (file)
@@ -517,7 +517,7 @@ void HUD_Panel_ExportCfg(string cfgname)
                        }
                        fputs(fh, "\n");
                }
                        }
                        fputs(fh, "\n");
                }
-               fputs(fh, strcat("menu_restart", "\n")); // force a menu update when execing config, so that the dialogs are updated
+               fputs(fh, strcat("menu_sync", "\n")); // force the menu to reread the cvars, so that the dialogs are updated
 
                print("^2Successfully exported to hud_", autocvar_hud_skin, "_", cfgname, ".cfg! (Note: It's saved in data/data/)\n");
        }
 
                print("^2Successfully exported to hud_", autocvar_hud_skin, "_", cfgname, ".cfg! (Note: It's saved in data/data/)\n");
        }