]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into fruitiex/newpanelhud
authorFruitieX <rasse@rasse-lappy.localdomain>
Mon, 17 May 2010 17:17:45 +0000 (20:17 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Mon, 17 May 2010 17:17:45 +0000 (20:17 +0300)
1  2 
defaultXonotic.cfg
qcsrc/client/Main.qc

diff --combined defaultXonotic.cfg
index b6c93ae0649fdf9934a95c23a991fbfb874ba343,2c579ac49f137621eb316fe6e94c3d4db8ccd2ad..4752f9100ea550ff61684be578d89da4e521e0eb
@@@ -1,17 -1,5 +1,5 @@@
  set g_xonoticversion 2.5svn   "Xonotic version (formatted for humans)"
  
- //!<showbrand
- showbrand 3
- echo
- echo A warning about this being a SVN development version was set up.
- echo This build shall be used for development and testing only!
- echo
- echo If you want to disable this warning, add the line
- echo   showbrand 0
- echo to your autoexec.cfg.
- echo
- //!>showbrand
  // changes a cvar and reports it to the server (for the menu to notify the
  // server about changes)
  alias setreport "set \"$1\" \"$2\" ; sendcvar \"$1\""
@@@ -105,7 -93,7 +93,7 @@@ mod_q3bsp_lightmapmergepower 
  // player defaults
  _cl_color 102
  _cl_name Player
- _cl_playermodel models/player/marine.zym
+ _cl_playermodel models/player/umbra.iqm
  _cl_playerskin 0
  crosshair 1
  seta crosshair_per_weapon 0   "when 1, each gun will display a different crosshair"
@@@ -907,7 -895,7 +895,7 @@@ alias +zoom +button
  alias -zoom -button4
  alias +crouch +button5
  alias -crouch -button5
 -alias weapnext "_weapnext_${_supports_weaponpriority}${sbar_hudselector}${cl_weaponpriority_useforcycling}"
 +alias weapnext "_weapnext_${_supports_weaponpriority}${hud_hudselector}${cl_weaponpriority_useforcycling}"
  alias _weapnext_000 "impulse 10"
  alias _weapnext_001 "impulse 10"
  alias _weapnext_010 "impulse 10"
@@@ -921,7 -909,7 +909,7 @@@ alias _weapnext_111 "impulse 15
  alias _weapnext_120 "impulse 18"
  alias _weapnext_121 "impulse 15"
  alias weaplast "impulse 11"
 -alias weapprev "_weapprev_${_supports_weaponpriority}${sbar_hudselector}${cl_weaponpriority_useforcycling}"
 +alias weapprev "_weapprev_${_supports_weaponpriority}${hud_hudselector}${cl_weaponpriority_useforcycling}"
  alias _weapprev_000 "impulse 12"
  alias _weapprev_001 "impulse 12"
  alias _weapprev_010 "impulse 12"
@@@ -1326,171 -1314,34 +1314,171 @@@ con_chatwidth 0.
  con_notifysize 10
  con_notifyalign 0
  
 -sbar_info_pos 50
 -seta sbar_alpha_bg 0.8 "alpha value of the HUD background"
 -seta sbar_alpha_fg 1 "alpha value of the HUD foreground items"
 -seta sbar_border_thickness 1 "scoreboard border thickness"
 -seta sbar_accuracy_border_thickness 1 "accuracy stats border thickness"
 -seta sbar_accuracy_doublerows 0 "use two rows instead of one"
 -seta sbar_accuracy_yellow 40 "percentage at which the accuracy color is yellow"
 -seta sbar_accuracy 1 "0 = no weapon accuracy stats panel on scoreboard"
 -seta sbar_accuracy_hud 1 "0 = no weapon accuracy bar on the weapon icons"
 -seta sbar_color_bg_r 0 "red color component of the HUD background"
 -seta sbar_color_bg_g 0.25 "green color component of the HUD background"
 -seta sbar_color_bg_b 0.17 "blue color component of the HUD background"
 -seta sbar_color_bg_team 0.5 "team color multiplier of the HUD background"
 -seta sbar_scoreboard_alpha_bg 0.6 "scoreboard background alpha"
 -seta sbar_scoreboard_alpha_fg 1 "scoreboard foreground alpha"
 -seta sbar_scoreboard_alpha_name 0.9 "alpha of player text in scoreboard list other than self"
 -seta sbar_scoreboard_alpha_name_self 1 "alpha of player text in scoreboard list of self" 
 -seta sbar_scoreboard_fadeinspeed 10 "speed at which scoreboard fades in, higher is faster (0 = instant)"
 -seta sbar_scoreboard_fadeoutspeed 5 "speed at which scoreboard fades out, higher is faster (0 = instant)"
 -seta sbar_scoreboard_highlight 1 "enable highlighting for rows and columns in the scoreboard"
 -seta sbar_scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on sbar_scoreboard_highlight 1)"
 -seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value"
 -seta sbar_hudselector 1       "0 = health/armor positions flipped, 1 = default hud layout, 2 = combined health and armor display"
 -seta sbar_showcurrentammo 0 "0 = show all ammo types, 1 = show only the ammo type of the current weapon"
 -seta sbar_showweaponicons 1 "1 = show icons of weapons that you have"
 -seta sbar_timer_increment 0 "1 = show elapsed time on the timer"
 -seta sbar_timer_scale 1 "scale multiplier of the timer"
 -seta sbar_vote_alreadyvoted_alpha 0.75 "alpha of the vote dialog after you have voted"
 +// hud variables
 +set _hud_configure 0 "1 = configure the HUD"
 +
 +seta hud_skin old "skin folder where to look for images"
 +seta hud_bg 0 "sets the default background for the panels, file must exist in data/gfx/hud/. 0 = disable background by default"
 +seta hud_bg_color "0 0.6 0.9" "sets the default background color for the panels"
 +seta hud_bg_alpha 0.8 "alpha of the background"
 +seta hud_bg_border 10 "sets the default border size for the panels"
 +seta hud_fg_alpha 1 "alpha of the foreground"
 +seta hud_progressbar_alpha "0.5" "alpha of progressbars"
 +
 +seta hud_configure_checkcollisions 1 "check for collisions against other panels when in hud configure mode"
 +seta hud_configure_bg_minalpha 0.5 "minimum panel background alpha when in hud configure mode"
 +seta hud_configure_grid 0 "snap to grid when moving/resizing panels"
 +seta hud_configure_grid_x 10 "snap each X pixels"
 +seta hud_configure_grid_y 10 "snap each Y pixels"
 +
 +seta hud_dock 1 "enable/disable a fullscreen background for the hud, useful for creating artificial docks"
 +seta hud_dock_color "0 0.6 0.9" "dock color"
 +seta hud_dock_alpha 0.8 "alpha of the dock"
 +
 +seta sbar_info_pos 50
 +
 +seta hud_weaponicons 1 "enable/disable this panel"
 +seta hud_weaponicons_pos "-0.635295 -0.134116" "position of this panel"
 +seta hud_weaponicons_size "0.352942 0.064845" "size of this panel"
 +seta hud_weaponicons_number 1 "show number of weapon"
 +seta hud_weaponicons_accuracy_height 3 "height of accuracy bar"
 +seta hud_weaponicons_accuracy_yellow 40 "percentage at which the accuracy color is yellow"
 +seta hud_weaponicons_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_weaponicons_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_weaponicons_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_weaponicons_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_weaponicons_bg_padding 0 "padding of contents from border"
 +
 +seta hud_inventory 1 "enable/disable this panel"
 +seta hud_inventory_pos "0.179783 -0.092189" "position of this panel"
 +seta hud_inventory_size "0.174227 0.092189" "size of this panel"
 +seta hud_inventory_onlycurrent 0 "1 = show only current ammo type"
 +seta hud_inventory_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_inventory_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_inventory_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_inventory_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_inventory_bg_padding 0 "padding of contents from border"
 +
 +seta hud_powerups 1 "enable/disable this panel"
 +seta hud_powerups_pos "-0.311922 -0.084896" "position of this panel"
 +seta hud_powerups_size "0.086719 0.077084" "size of this panel"
 +seta hud_powerups_flip 1 "flip strength/shield positions"
 +seta hud_powerups_mirror 0 "mirror alignment of panel items"
 +seta hud_powerups_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_powerups_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_powerups_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_powerups_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_powerups_bg_padding 0 "padding of contents from border"
 +seta hud_progressbar_strength_color "0 0 0.6" "R G B vector of the progress bar background color"
 +seta hud_progressbar_shield_color "0.6 0 0.6" "R G B vector of the progress bar background color"
 +
 +seta hud_healtharmor 1 "enable/disable this panel"
 +seta hud_healtharmor_pos "-0.627451 -0.066667" "position of this panel"
 +seta hud_healtharmor_size "0.291174 0.066667" "size of this panel"
 +seta hud_healtharmor_flip 1 "flip health/armor positions"
 +seta hud_healtharmor_mirror 0 "mirror alignment of panel items"
 +seta hud_healtharmor_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_healtharmor_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_healtharmor_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_healtharmor_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_healtharmor_bg_padding 0 "padding of contents from border"
 +seta hud_progressbar_health_color "0.6 0 0" "R G B vector of the progress bar background color"
 +seta hud_progressbar_armor_color "0 0.6 0" "R G B vector of the progress bar background color"
 +seta hud_progressbar_fuel_color "0.6 0.6 0" "R G B vector of the progress bar background color"
 +
 +seta hud_notify 0 "enable/disable this panel"
 +seta hud_notify_pos "0.1 0" "position of this base of the panel"
 +seta hud_notify_size "0.1 0.1" "size of this panel with all notifications on"
 +seta hud_notify_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_notify_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_notify_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_notify_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_notify_bg_padding 0 "padding of contents from border"
 +
 +seta hud_timer 1 "enable/disable this panel"
 +seta hud_timer_pos "-0.213725 0" "position of this base of the panel"
 +seta hud_timer_size "0.212735 0.054427" "size of this panel"
 +seta hud_timer_increment 0 "show elapsed time instead of remaining time"
 +seta hud_timer_bg border "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_timer_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_timer_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_timer_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_timer_bg_padding 0 "padding of contents from border"
 +
 +seta hud_radar 1 "enable/disable this panel"
 +seta hud_radar_pos "0 0" "position of this base of the panel"
 +seta hud_radar_size "0.215687 0.266667" "size of this panel"
 +seta hud_radar_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_radar_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_radar_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_radar_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_radar_bg_padding 0 "padding of contents from border"
 +
 +seta hud_score 1 "enable/disable this panel"
 +seta hud_score_pos "-0.225469 -0.084404" "position of this base of the panel"
 +seta hud_score_size "0.225469 0.075156" "size of this panel"
 +seta hud_score_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_score_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_score_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_score_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_score_bg_padding 0 "padding of contents from border"
 +
 +seta hud_racetimer 1 "enable/disable this panel"
 +seta hud_racetimer_pos "-0.614706 0" "position of this base of the panel"
 +seta hud_racetimer_size "0.231373 0.077124" "size of this panel"
 +seta hud_racetimer_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_racetimer_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_racetimer_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_racetimer_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_racetimer_bg_padding 0 "padding of contents from border"
 +
 +seta hud_vote 1 "enable/disable this panel"
 +seta hud_vote_pos "-0.321140 -0.268230" "position of this base of the panel"
 +seta hud_vote_size "0.320156 0.106719" "size of this panel"
 +seta hud_vote_alreadyvoted_alpha 0.75 "alpha of the vote dialog after you have voted"
 +seta hud_vote_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_vote_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_vote_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_vote_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_vote_bg_padding 0 "padding of contents from border"
 +
 +seta hud_modicons 1 "enable/disable this panel"
 +seta hud_modicons_pos "-0.571569 -0.265625" "position of this base of the panel"
 +seta hud_modicons_size "0.145098 0.114105" "size of this panel"
 +seta hud_modicons_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_modicons_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_modicons_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_modicons_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_modicons_bg_padding 0 "padding of contents from border"
 +seta hud_progressbar_nexball_color "0.7 0.1 0" "R G B vector of the progress bar background color"
 +
 +seta hud_pressedkeys 1 "enable/disable this panel, 1 = show only when spectating other players, 2 = show always"
 +seta hud_pressedkeys_pos "-0.571569 -0.265625" "position of this base of the panel"
 +seta hud_pressedkeys_size "0.145098 0.114105" "size of this panel"
 +seta hud_pressedkeys_bg "" "if set to something else than \"\" = override default background, if set to 0 = disable background"
 +seta hud_pressedkeys_bg_color "" "optional R G B string of the background color, otherwise use hud default"
 +seta hud_pressedkeys_bg_alpha 0 "if set to something else than 0 = override default alpha"
 +seta hud_pressedkeys_bg_border 0 "if set to something else than 0 = override size of border around the background"
 +seta hud_pressedkeys_bg_padding 0 "padding of contents from border"
 +
 +// scoreboard
 +seta scoreboard_border_thickness 1 "scoreboard border thickness"
 +seta scoreboard_accuracy_border_thickness 1 "accuracy stats border thickness"
 +seta scoreboard_accuracy_doublerows 0 "use two rows instead of one"
 +seta scoreboard_accuracy 1 "0 = no weapon accuracy stats panel on scoreboard"
 +seta scoreboard_color_bg_r 0 "red color component of the HUD background"
 +seta scoreboard_color_bg_g 0.25 "green color component of the HUD background"
 +seta scoreboard_color_bg_b 0.17 "blue color component of the HUD background"
 +seta scoreboard_color_bg_team 0.5 "team color multiplier of the HUD background"
 +seta scoreboard_alpha_bg 0.6 "scoreboard background alpha"
 +seta scoreboard_alpha_fg 1 "scoreboard foreground alpha"
 +seta scoreboard_alpha_name 0.9 "alpha of player text in scoreboard list other than self"
 +seta scoreboard_alpha_name_self 1 "alpha of player text in scoreboard list of self" 
 +seta scoreboard_fadeinspeed 10 "speed at which scoreboard fades in, higher is faster (0 = instant)"
 +seta scoreboard_fadeoutspeed 5 "speed at which scoreboard fades out, higher is faster (0 = instant)"
 +seta scoreboard_highlight 1 "enable highlighting for rows and columns in the scoreboard"
 +seta scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on hud_scoreboard_highlight 1)"
 +seta scoreboard_highlight_alpha_self 0.25 "self highlight alpha value"
  
  // for menu server list (eventually make them have engine support?)
  seta menu_slist_showfull 1 "show servers even if they are full and have no slots to join"
@@@ -1602,17 -1453,17 +1590,17 @@@ set sv_maxidle_spectatorsareidle 
  // CTF capture limit placeholder cvar
  set capturelimit 0
  
 -// sbar: font size
 -seta sbar_fontsize 11
 -seta sbar_fontsize_spec 16
 +// hud: font size
 +seta hud_fontsize 11
 +seta hud_fontsize_spec 16
  seta scr_centersize 11
 -seta sbar_width 560
 -// alias sbar_font "loadfont user1 ${1},gfx/fallback ${2-}; loadfont user2 ${1}-big ${2-}; sbar_columns_set"
 +seta hud_width 560
 +// alias hud_font "loadfont user1 ${1},gfx/fallback ${2-}; loadfont user2 ${1}-big ${2-}; hud_columns_set"
  alias sbar_font "set _requested_sbar_font \"${*}\""
 -seta sbar_columns default
 +seta hud_columns default
  sbar_font gfx/vera-sans 8 12 16 24 32
 -seta sbar_showbinds 1 "display actions / bound keys in the strings shown during the game. 0 displays only actions, 1 displays only bound keys, 2 displays both"
 -seta sbar_showbinds_limit 2   "maximum number of bound keys to show for an action. 0 for unlimited"
 +seta hud_showbinds 1  "display actions / bound keys in the strings shown during the game. 0 displays only actions, 1 displays only bound keys, 2 displays both"
 +seta hud_showbinds_limit 2    "maximum number of bound keys to show for an action. 0 for unlimited"
  
  // these entities are not referenced by anything directly, they just represent
  // teams and are found by find() when needed
@@@ -1660,8 -1511,8 +1648,8 @@@ seta g_start_delay 0    "delay before the 
  
  alias ons_map           "cl_cmd radar" // legacy alias
  alias radar             "cl_cmd radar"
 -alias sbar_columns_set  "cl_cmd sbar_columns_set $*"
 -alias sbar_columns_help "cl_cmd sbar_columns_help $*"
 +alias hud_columns_set  "cl_cmd hud_columns_set $*"
 +alias hud_columns_help "cl_cmd hud_columns_help $*"
  
  alias _gl_flashblend_update_00 "gl_flashblend 1"
  alias _gl_flashblend_update_10 "gl_flashblend 0"
diff --combined qcsrc/client/Main.qc
index b1e418215c9b86278bc4803615ec7219c720e5b0,575f8b0622deb1b433f54702e79c17a2cf10a352..c6d03916b7cd4639d4ed86701eb704642facfc6b
@@@ -60,6 -60,10 +60,10 @@@ void CSQC_Init(void
        
        check_unacceptable_compiler_bugs();
  
+ #ifdef WATERMARK
+       print("^4CSQC Build information: ", WATERMARK(), "\n");
+ #endif
        float i;
        CSQC_CheckEngine();
  
@@@ -82,8 -86,6 +86,8 @@@
        // localcmd("alias order \"cmd order $*\""); enable if ctf-command thingy is used
        //registercmd("ctf_menu");
        registercmd("ons_map");
 +      registercmd("hud_configure");
 +      registercmd("hud_save");
        //registercmd("menu_action");
  
        registercmd("+button3");
  #ifndef CAMERATEST
        }
  #endif
 -      registercvar("sbar_usecsqc", "1");
 -      registercvar("sbar_columns", "default", CVAR_SAVE);
 +      registercvar("hud_usecsqc", "1");
 +      registercvar("hud_columns", "default", CVAR_SAVE);
  
        gametype = 0;
  
 -      // sbar_fields uses strunzone on the titles!
 -      for(i = 0; i < MAX_SBAR_FIELDS; ++i)
 -              sbar_title[i] = strzone("(null)");
 +      // hud_fields uses strunzone on the titles!
 +      for(i = 0; i < MAX_HUD_FIELDS; ++i)
 +              hud_title[i] = strzone("(null)");
  
        postinit = false;
  
@@@ -323,9 -325,9 +327,9 @@@ void Playerchecker_Think(
                                e.ping_packetloss = 0;
                                e.ping_movementloss = 0;
                                //e.gotscores = 0; // we might already have the scores...
 -                              SetTeam(e, GetPlayerColor(i)); // will not hurt; later updates come with Sbar_UpdatePlayerTeams
 +                              SetTeam(e, GetPlayerColor(i)); // will not hurt; later updates come with HUD_UpdatePlayerTeams
                                RegisterPlayer(e);
 -                              Sbar_UpdatePlayerPos(e);
 +                              HUD_UpdatePlayerPos(e);
                        }
                }
        }
@@@ -337,7 -339,7 +341,7 @@@ void TrueAim_Init()
  void PostInit(void)
  {
        print(strcat("PostInit\n    maxclients = ", ftos(maxclients), "\n"));
 -      localcmd(strcat("\nsbar_columns_set ", cvar_string("sbar_columns"), ";\n"));
 +      localcmd(strcat("\nhud_columns_set ", cvar_string("hud_columns"), ";\n"));
  
        entity playerchecker;
        playerchecker = spawn();
  // CSQC_ConsoleCommand : Used to parse commands in the console that have been registered with the "registercmd" function
  // Return value should be 1 if CSQC handled the command, otherwise return 0 to have the engine handle it.
  float button_zoom;
 -void Cmd_Sbar_SetFields(float);
 -void Cmd_Sbar_Help(float);
 +void Cmd_HUD_SetFields(float);
 +void Cmd_HUD_Help(float);
  float CSQC_ConsoleCommand(string strMessage)
  {
        float argc;
        local string strCmd;
        strCmd = argv(0);
  
 -      if(strCmd == "+button4") { // zoom
 +      if(strCmd == "hud_configure") { // config hud
 +              cvar_set("_hud_configure", ftos(!cvar("_hud_configure")));
 +              return true;
 +      } else if(strCmd == "hud_save") { // save hud config
 +              if(argv(1) == "" || argv(2)) {
 +                      print("Usage:\n");
 +                      print("hud_save configname   (saves to hud_skinname_configname.cfg)\n");
 +              }
 +              else
 +                      HUD_Panel_ExportCfg(argv(1));
 +              return true;
 +      } else if(strCmd == "+button4") { // zoom
                // return false, because the message shall be sent to the server anyway (for demos/speccing)
                if(ignore_plus_zoom)
                {
@@@ -519,8 -510,8 +523,8 @@@ void GameCommand(string msg
                print("Usage: cl_cmd COMMAND..., where possible commands are:\n");
                print("  settemp cvar value\n");
                print("  radar\n");
 -              print("  sbar_columns_set ...\n");
 -              print("  sbar_columns_help\n");
 +              print("  hud_columns_set ...\n");
 +              print("  hud_columns_help\n");
                GameCommand_Generic("help");
                return;
        }
        else if(cmd == "radar") {
                ons_showmap = !ons_showmap;
        }
 -      else if(cmd == "sbar_columns_set") {
 -              Cmd_Sbar_SetFields(argc);
 +      else if(cmd == "hud_columns_set") {
 +              Cmd_HUD_SetFields(argc);
        }
 -      else if(cmd == "sbar_columns_help") {
 -              Cmd_Sbar_Help(argc);
 +      else if(cmd == "hud_columns_help") {
 +              Cmd_HUD_Help(argc);
        }
  #ifdef BLURTEST
        else if(cmd == "blurtest") {
  // bInputType = 0 is key pressed, 1 is key released, 2 is mouse input.
  // In the case of keyboard input, nPrimary is the ascii code, and nSecondary is 0.
  // In the case of mouse input, nPrimary is xdelta, nSecondary is ydelta.
 +float hudconf_active;
  float CSQC_InputEvent(float bInputType, float nPrimary, float nSecondary)
  {
        local float bSkipKey;
        bSkipKey = false;
  
 +      if(hudconf_active)
 +              if (HUD_Panel_InputEvent(bInputType, nPrimary, nSecondary))
 +                      return true;
 +
        if (MapVote_InputEvent(bInputType, nPrimary, nSecondary))
                return true;
  
@@@ -692,7 -678,7 +696,7 @@@ void Ent_ReadPlayerScore(
        float isNew;
        entity o;
  
 -      // damnit -.- don't want to go change every single .sv_entnum in sbar.qc AGAIN
 +      // damnit -.- don't want to go change every single .sv_entnum in hud.qc AGAIN
        // (no I've never heard of M-x replace-string, sed, or anything like that)
        isNew = !self.owner; // workaround for DP bug
        n = ReadByte()-1;
                }
  
        if(o.sort_prev)
 -              Sbar_UpdatePlayerPos(o); // if not registered, we cannot do this yet!
 +              HUD_UpdatePlayerPos(o); // if not registered, we cannot do this yet!
  
        self.entremove = Ent_RemovePlayerScore;
  }
@@@ -769,7 -755,7 +773,7 @@@ void Ent_ReadTeamScore(
                                o.(teamscores[i]) = ReadChar();
                }
  
 -      Sbar_UpdateTeamPos(o);
 +      HUD_UpdateTeamPos(o);
  }
  
  void Net_Reset()
@@@ -1017,7 -1003,7 +1021,7 @@@ void Ent_ScoresInfo(
                teamscores_label[i] = strzone(ReadString());
                teamscores_flags[i] = ReadByte();
        }
 -      Sbar_InitScores();
 +      HUD_InitScores();
        Gamemode_Init();
  }
  
@@@ -1323,7 -1309,7 +1327,7 @@@ string getcommandkey(string text, strin
        string keys;
        float n, j, k, l;
  
 -      if (!sbar_showbinds)
 +      if (!hud_showbinds)
                return text;
  
        keys = db_get(binddb, command);
                                        keys = strcat(keys, ", ", keynumtostring(k));
  
                                ++l;
 -                              if (sbar_showbinds_limit > 0 && sbar_showbinds_limit >= l) break;
 +                              if (hud_showbinds_limit > 0 && hud_showbinds_limit >= l) break;
                        }
  
                }
        }
  
        if ("" == keys) {
 -              if (sbar_showbinds > 1)
 +              if (hud_showbinds > 1)
                        return strcat(text, " (not bound)");
                else
                        return text;
        }
 -      else if (sbar_showbinds > 1)
 +      else if (hud_showbinds > 1)
                return strcat(text, " (", keys, ")");
        else
                return keys;