exec hud_luminos_default.cfg
// user preference cvars (i.e. shouldn't be adjusted by a skin config)
-seta hud_weapons_label 1 "1 = show number of weapon, 2 = show bound key of weapon"
-seta hud_weapons_complainbubble_time 1 "time that a new entry stays until it fades out"
-seta hud_weapons_complainbubble_fadetime 0.25 "fade out time"
-seta hud_weapons_accuracy 1 "show accuracy color as the weapon icon background"
-seta hud_weapons_accuracy_color0 "1 0 0"
-seta hud_weapons_accuracy_color1 "1 1 0"
-seta hud_weapons_accuracy_color2 "0 1 0"
-seta hud_weapons_accuracy_color_levels "0 20 100" "accuracy values at which a specified color (hud_weapons_accuracy_color<X>) will be used. If your accuracy is between 2 of these values then a mix of the Xth and X+1th colors will be used. You can specify up to 10 values, in increasing order"
-seta hud_weapons_ammo 1 "show ammo as a status bar"
-seta hud_weapons_ammo_full_shells 40 "show 100% of the status bar at this ammo count"
-seta hud_weapons_ammo_full_nails 100 "show 100% of the status bar at this ammo count"
-seta hud_weapons_ammo_full_cells 60 "show 100% of the status bar at this ammo count"
-seta hud_weapons_ammo_full_rockets 60 "show 100% of the status bar at this ammo count"
-seta hud_weapons_ammo_full_fuel 100 "show 100% of the status bar at this ammo count"
-
-seta hud_notify_time 10 "time that a new entry stays until it fades out"
-seta hud_notify_fadetime 3 "fade out time"
-
-seta hud_timer_increment 0 "show elapsed time instead of remaining time"
-
-seta hud_radar_scale 4096 "distance you can see on the team radar"
-seta hud_radar_rotation 0 "rotation mode: you set what points up. 0 = player, 1 = west, 2 = south, 3 = east, 4 = north"
-seta hud_radar_zoommode 0 "zoom mode: 0 = zoomed by default, 1 = zoomed when +zoom, 2 = always zoomed, 3 = always zoomed out"
-alias hud_radar_rotate "toggle hud_radar_rotation 0 1 2 3 4"
-
-seta hud_engineinfo_framecounter_time 1 "time between framerate display updates, smaller values yield less accuracy"
-seta hud_engineinfo_framecounter_decimals 0 "amount of decimals to show"
-seta hud_engineinfo_framecounter_exponentialmovingaverage 1 "use an averaging method for calculating fps instead of counting frametime like engine does"
-seta hud_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point"
-seta hud_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster"
+seta hud_panel_weapons_label 1 "1 = show number of weapon, 2 = show bound key of weapon"
+seta hud_panel_weapons_complainbubble_time 1 "time that a new entry stays until it fades out"
+seta hud_panel_weapons_complainbubble_fadetime 0.25 "fade out time"
+seta hud_panel_weapons_accuracy 1 "show accuracy color as the weapon icon background"
+seta hud_panel_weapons_accuracy_color0 "1 0 0"
+seta hud_panel_weapons_accuracy_color1 "1 1 0"
+seta hud_panel_weapons_accuracy_color2 "0 1 0"
+seta hud_panel_weapons_accuracy_color_levels "0 20 100" "accuracy values at which a specified color (hud_panel_weapons_accuracy_color<X>) will be used. If your accuracy is between 2 of these values then a mix of the Xth and X+1th colors will be used. You can specify up to 10 values, in increasing order"
+seta hud_panel_weapons_ammo 1 "show ammo as a status bar"
+seta hud_panel_weapons_ammo_full_shells 40 "show 100% of the status bar at this ammo count"
+seta hud_panel_weapons_ammo_full_nails 100 "show 100% of the status bar at this ammo count"
+seta hud_panel_weapons_ammo_full_cells 60 "show 100% of the status bar at this ammo count"
+seta hud_panel_weapons_ammo_full_rockets 60 "show 100% of the status bar at this ammo count"
+seta hud_panel_weapons_ammo_full_fuel 100 "show 100% of the status bar at this ammo count"
+
+seta hud_panel_notify_time 10 "time that a new entry stays until it fades out"
+seta hud_panel_notify_fadetime 3 "fade out time"
+
+seta hud_panel_timer_increment 0 "show elapsed time instead of remaining time"
+
+seta hud_panel_radar_scale 4096 "distance you can see on the team radar"
+seta hud_panel_radar_rotation 0 "rotation mode: you set what points up. 0 = player, 1 = west, 2 = south, 3 = east, 4 = north"
+seta hud_panel_radar_zoommode 0 "zoom mode: 0 = zoomed by default, 1 = zoomed when +zoom, 2 = always zoomed, 3 = always zoomed out"
+alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4"
+
+seta hud_panel_engineinfo_framecounter_time 1 "time between framerate display updates, smaller values yield less accuracy"
+seta hud_panel_engineinfo_framecounter_decimals 0 "amount of decimals to show"
+seta hud_panel_engineinfo_framecounter_exponentialmovingaverage 1 "use an averaging method for calculating fps instead of counting frametime like engine does"
+seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point"
+seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster"
// scoreboard
seta scoreboard_columns default
seta _hud_panelorder "6 5 9 3 1 7 12 0 4 10 2 11 14 8 13 "
-seta hud_weapons 1
-seta hud_weapons_pos "0.908906 0.088047"
-seta hud_weapons_size "0.066564 0.641367"
-seta hud_weapons_bg "border_vertical"
-seta hud_weapons_bg_color ""
-seta hud_weapons_bg_color_team ""
-seta hud_weapons_bg_alpha ""
-seta hud_weapons_bg_border ""
-seta hud_weapons_bg_padding ""
-seta hud_weapons_complainbubble "1"
-seta hud_weapons_complainbubble_padding "-10"
-seta hud_weapons_complainbubble_color_outofammo "0.8 0 0"
-seta hud_weapons_complainbubble_color_donthave "0.8 0.5 0"
-seta hud_weapons_complainbubble_color_unavailable "0 0.3 0.8"
-seta hud_weapons_ammo_color "0 1 0"
-seta hud_weapons_ammo_alpha "1"
-seta hud_weapons_aspect "1"
-
-seta hud_ammo 1
-seta hud_ammo_pos "0.193516 0.925605"
-seta hud_ammo_size "0.093750 0.061719"
-seta hud_ammo_bg ""
-seta hud_ammo_bg_color ""
-seta hud_ammo_bg_color_team ""
-seta hud_ammo_bg_alpha ""
-seta hud_ammo_bg_border ""
-seta hud_ammo_bg_padding ""
-seta hud_ammo_onlycurrent "1"
-seta hud_ammo_iconalign "0"
-
-seta hud_powerups 1
-seta hud_powerups_pos "0.363282 0.015742"
-seta hud_powerups_size "0.262500 0.048047"
-seta hud_powerups_bg ""
-seta hud_powerups_bg_color ""
-seta hud_powerups_bg_color_team ""
-seta hud_powerups_bg_alpha "0"
-seta hud_powerups_bg_border ""
-seta hud_powerups_bg_padding ""
-seta hud_powerups_flip "1"
-seta hud_powerups_iconalign "0"
-seta hud_powerups_baralign "0"
-
-seta hud_healtharmor 1
-seta hud_healtharmor_pos "0.305859 0.925606"
-seta hud_healtharmor_size "0.311485 0.061230"
-seta hud_healtharmor_bg ""
-seta hud_healtharmor_bg_color ""
-seta hud_healtharmor_bg_color_team "0"
-seta hud_healtharmor_bg_alpha "1"
-seta hud_healtharmor_bg_border ""
-seta hud_healtharmor_bg_padding ""
-seta hud_healtharmor_flip "0
-seta hud_healtharmor_iconalign "0"
-seta hud_healtharmor_baralign "0"
-
-seta hud_notify 1
-seta hud_notify_pos "0.700625 0.747950"
-seta hud_notify_size "0.282500 0.180586"
-seta hud_notify_bg ""
-seta hud_notify_bg_color ""
-seta hud_notify_bg_color_team ""
-seta hud_notify_bg_alpha "0"
-seta hud_notify_bg_border ""
-seta hud_notify_bg_padding ""
-seta hud_notify_flip "0"
-seta hud_notify_print "0"
-
-seta hud_timer 1
-seta hud_timer_pos "0.880000 0.012070"
-seta hud_timer_size "0.100000 0.032520"
-seta hud_timer_bg ""
-seta hud_timer_bg_color ""
-seta hud_timer_bg_color_team ""
-seta hud_timer_bg_alpha ""
-seta hud_timer_bg_border ""
-seta hud_timer_bg_padding "0"
-
-seta hud_radar 1
-seta hud_radar_pos "0.023750 0.024395"
-seta hud_radar_size "0.182969 0.224140"
-seta hud_radar_bg "border_vertical"
-seta hud_radar_bg_color ""
-seta hud_radar_bg_color_team ""
-seta hud_radar_bg_alpha ""
-seta hud_radar_bg_border ""
-seta hud_radar_bg_padding "-3"
-seta hud_radar_foreground_alpha "0.800000"
-
-seta hud_score 1
-seta hud_score_pos "0.023516 0.925605"
-seta hud_score_size "0.152344 0.060254"
-seta hud_score_bg ""
-seta hud_score_bg_color ""
-seta hud_score_bg_color_team ""
-seta hud_score_bg_alpha ""
-seta hud_score_bg_border ""
-seta hud_score_bg_padding ""
-
-seta hud_racetimer 1
-seta hud_racetimer_pos "0.354531 0.206289"
-seta hud_racetimer_size "0.280000 0.093333"
-seta hud_racetimer_bg ""
-seta hud_racetimer_bg_color ""
-seta hud_racetimer_bg_color_team ""
-seta hud_racetimer_bg_alpha "0"
-seta hud_racetimer_bg_border ""
-seta hud_racetimer_bg_padding ""
-
-seta hud_vote 1
-seta hud_vote_pos "0.021094 0.650586"
-seta hud_vote_size "0.264218 0.102462"
-seta hud_vote_bg ""
-seta hud_vote_bg_color ""
-seta hud_vote_bg_color_team ""
-seta hud_vote_bg_alpha ""
-seta hud_vote_bg_border ""
-seta hud_vote_bg_padding ""
-seta hud_vote_alreadyvoted_alpha "0.750000"
-
-seta hud_modicons 1
-seta hud_modicons_pos "0.036563 0.271796"
-seta hud_modicons_size "0.084766 0.199903"
-seta hud_modicons_bg ""
-seta hud_modicons_bg_color ""
-seta hud_modicons_bg_color_team ""
-seta hud_modicons_bg_alpha ""
-seta hud_modicons_bg_border ""
-seta hud_modicons_bg_padding ""
-
-seta hud_pressedkeys 1
-seta hud_pressedkeys_pos "0.411562 0.545429"
-seta hud_pressedkeys_size "0.177656 0.120531"
-seta hud_pressedkeys_bg ""
-seta hud_pressedkeys_bg_color ""
-seta hud_pressedkeys_bg_color_team "0"
-seta hud_pressedkeys_bg_alpha "0"
-seta hud_pressedkeys_bg_border ""
-seta hud_pressedkeys_bg_padding ""
-seta hud_pressedkeys_aspect "1.600000"
-
-seta hud_chat 1
-seta hud_chat_pos "0.020000 0.774374"
-seta hud_chat_size "0.627968 0.112696"
-seta hud_chat_bg ""
-seta hud_chat_bg_color ""
-seta hud_chat_bg_color_team ""
-seta hud_chat_bg_alpha "0"
-seta hud_chat_bg_border ""
-seta hud_chat_bg_padding ""
-
-seta hud_engineinfo 1
-seta hud_engineinfo_pos "0.860000 0.950000"
-seta hud_engineinfo_size "0.130000 0.034667"
-seta hud_engineinfo_bg ""
-seta hud_engineinfo_bg_color ""
-seta hud_engineinfo_bg_color_team ""
-seta hud_engineinfo_bg_alpha "0"
-seta hud_engineinfo_bg_border ""
-seta hud_engineinfo_bg_padding ""
-
-seta hud_infomessages 1
-seta hud_infomessages_pos "0.388751 0.378243"
-seta hud_infomessages_size "0.233282 0.061679"
-seta hud_infomessages_bg ""
-seta hud_infomessages_bg_color ""
-seta hud_infomessages_bg_color_team ""
-seta hud_infomessages_bg_alpha "0"
-seta hud_infomessages_bg_border ""
-seta hud_infomessages_bg_padding ""
+seta hud_panel_weapons 1
+seta hud_panel_weapons_pos "0.908906 0.088047"
+seta hud_panel_weapons_size "0.066564 0.641367"
+seta hud_panel_weapons_bg "border_vertical"
+seta hud_panel_weapons_bg_color ""
+seta hud_panel_weapons_bg_color_team ""
+seta hud_panel_weapons_bg_alpha ""
+seta hud_panel_weapons_bg_border ""
+seta hud_panel_weapons_bg_padding ""
+seta hud_panel_weapons_complainbubble "1"
+seta hud_panel_weapons_complainbubble_padding "-10"
+seta hud_panel_weapons_complainbubble_color_outofammo "0.8 0 0"
+seta hud_panel_weapons_complainbubble_color_donthave "0.8 0.5 0"
+seta hud_panel_weapons_complainbubble_color_unavailable "0 0.3 0.8"
+seta hud_panel_weapons_ammo_color "0 1 0"
+seta hud_panel_weapons_ammo_alpha "1"
+seta hud_panel_weapons_aspect "1"
+
+seta hud_panel_ammo 1
+seta hud_panel_ammo_pos "0.193516 0.925605"
+seta hud_panel_ammo_size "0.093750 0.061719"
+seta hud_panel_ammo_bg ""
+seta hud_panel_ammo_bg_color ""
+seta hud_panel_ammo_bg_color_team ""
+seta hud_panel_ammo_bg_alpha ""
+seta hud_panel_ammo_bg_border ""
+seta hud_panel_ammo_bg_padding ""
+seta hud_panel_ammo_onlycurrent "1"
+seta hud_panel_ammo_iconalign "0"
+
+seta hud_panel_powerups 1
+seta hud_panel_powerups_pos "0.363282 0.015742"
+seta hud_panel_powerups_size "0.262500 0.048047"
+seta hud_panel_powerups_bg ""
+seta hud_panel_powerups_bg_color ""
+seta hud_panel_powerups_bg_color_team ""
+seta hud_panel_powerups_bg_alpha "0"
+seta hud_panel_powerups_bg_border ""
+seta hud_panel_powerups_bg_padding ""
+seta hud_panel_powerups_flip "1"
+seta hud_panel_powerups_iconalign "0"
+seta hud_panel_powerups_baralign "0"
+
+seta hud_panel_healtharmor 1
+seta hud_panel_healtharmor_pos "0.305859 0.925606"
+seta hud_panel_healtharmor_size "0.311485 0.061230"
+seta hud_panel_healtharmor_bg ""
+seta hud_panel_healtharmor_bg_color ""
+seta hud_panel_healtharmor_bg_color_team "0"
+seta hud_panel_healtharmor_bg_alpha "1"
+seta hud_panel_healtharmor_bg_border ""
+seta hud_panel_healtharmor_bg_padding ""
+seta hud_panel_healtharmor_flip "0
+seta hud_panel_healtharmor_iconalign "0"
+seta hud_panel_healtharmor_baralign "0"
+
+seta hud_panel_notify 1
+seta hud_panel_notify_pos "0.700625 0.747950"
+seta hud_panel_notify_size "0.282500 0.180586"
+seta hud_panel_notify_bg ""
+seta hud_panel_notify_bg_color ""
+seta hud_panel_notify_bg_color_team ""
+seta hud_panel_notify_bg_alpha "0"
+seta hud_panel_notify_bg_border ""
+seta hud_panel_notify_bg_padding ""
+seta hud_panel_notify_flip "0"
+seta hud_panel_notify_print "0"
+
+seta hud_panel_timer 1
+seta hud_panel_timer_pos "0.880000 0.012070"
+seta hud_panel_timer_size "0.100000 0.032520"
+seta hud_panel_timer_bg ""
+seta hud_panel_timer_bg_color ""
+seta hud_panel_timer_bg_color_team ""
+seta hud_panel_timer_bg_alpha ""
+seta hud_panel_timer_bg_border ""
+seta hud_panel_timer_bg_padding "0"
+
+seta hud_panel_radar 1
+seta hud_panel_radar_pos "0.023750 0.024395"
+seta hud_panel_radar_size "0.182969 0.224140"
+seta hud_panel_radar_bg "border_vertical"
+seta hud_panel_radar_bg_color ""
+seta hud_panel_radar_bg_color_team ""
+seta hud_panel_radar_bg_alpha ""
+seta hud_panel_radar_bg_border ""
+seta hud_panel_radar_bg_padding "-3"
+seta hud_panel_radar_foreground_alpha "0.800000"
+
+seta hud_panel_score 1
+seta hud_panel_score_pos "0.023516 0.925605"
+seta hud_panel_score_size "0.152344 0.060254"
+seta hud_panel_score_bg ""
+seta hud_panel_score_bg_color ""
+seta hud_panel_score_bg_color_team ""
+seta hud_panel_score_bg_alpha ""
+seta hud_panel_score_bg_border ""
+seta hud_panel_score_bg_padding ""
+
+seta hud_panel_racetimer 1
+seta hud_panel_racetimer_pos "0.354531 0.206289"
+seta hud_panel_racetimer_size "0.280000 0.093333"
+seta hud_panel_racetimer_bg ""
+seta hud_panel_racetimer_bg_color ""
+seta hud_panel_racetimer_bg_color_team ""
+seta hud_panel_racetimer_bg_alpha "0"
+seta hud_panel_racetimer_bg_border ""
+seta hud_panel_racetimer_bg_padding ""
+
+seta hud_panel_vote 1
+seta hud_panel_vote_pos "0.021094 0.650586"
+seta hud_panel_vote_size "0.264218 0.102462"
+seta hud_panel_vote_bg ""
+seta hud_panel_vote_bg_color ""
+seta hud_panel_vote_bg_color_team ""
+seta hud_panel_vote_bg_alpha ""
+seta hud_panel_vote_bg_border ""
+seta hud_panel_vote_bg_padding ""
+seta hud_panel_vote_alreadyvoted_alpha "0.750000"
+
+seta hud_panel_modicons 1
+seta hud_panel_modicons_pos "0.036563 0.271796"
+seta hud_panel_modicons_size "0.084766 0.199903"
+seta hud_panel_modicons_bg ""
+seta hud_panel_modicons_bg_color ""
+seta hud_panel_modicons_bg_color_team ""
+seta hud_panel_modicons_bg_alpha ""
+seta hud_panel_modicons_bg_border ""
+seta hud_panel_modicons_bg_padding ""
+
+seta hud_panel_pressedkeys 1
+seta hud_panel_pressedkeys_pos "0.411562 0.545429"
+seta hud_panel_pressedkeys_size "0.177656 0.120531"
+seta hud_panel_pressedkeys_bg ""
+seta hud_panel_pressedkeys_bg_color ""
+seta hud_panel_pressedkeys_bg_color_team "0"
+seta hud_panel_pressedkeys_bg_alpha "0"
+seta hud_panel_pressedkeys_bg_border ""
+seta hud_panel_pressedkeys_bg_padding ""
+seta hud_panel_pressedkeys_aspect "1.600000"
+
+seta hud_panel_chat 1
+seta hud_panel_chat_pos "0.020000 0.774374"
+seta hud_panel_chat_size "0.627968 0.112696"
+seta hud_panel_chat_bg ""
+seta hud_panel_chat_bg_color ""
+seta hud_panel_chat_bg_color_team ""
+seta hud_panel_chat_bg_alpha "0"
+seta hud_panel_chat_bg_border ""
+seta hud_panel_chat_bg_padding ""
+
+seta hud_panel_engineinfo 1
+seta hud_panel_engineinfo_pos "0.860000 0.950000"
+seta hud_panel_engineinfo_size "0.130000 0.034667"
+seta hud_panel_engineinfo_bg ""
+seta hud_panel_engineinfo_bg_color ""
+seta hud_panel_engineinfo_bg_color_team ""
+seta hud_panel_engineinfo_bg_alpha "0"
+seta hud_panel_engineinfo_bg_border ""
+seta hud_panel_engineinfo_bg_padding ""
+
+seta hud_panel_infomessages 1
+seta hud_panel_infomessages_pos "0.388751 0.378243"
+seta hud_panel_infomessages_size "0.233282 0.061679"
+seta hud_panel_infomessages_bg ""
+seta hud_panel_infomessages_bg_color ""
+seta hud_panel_infomessages_bg_color_team ""
+seta hud_panel_infomessages_bg_alpha "0"
+seta hud_panel_infomessages_bg_border ""
+seta hud_panel_infomessages_bg_padding ""
seta hud_progressbar_fuel_color "0.6 0.6 0"
seta hud_progressbar_nexball_color "0.7 0.1 0"
-seta hud_weapons 1
-seta hud_weapons_pos "0.370000 0.870000"
-seta hud_weapons_size "0.330000 0.050000"
-seta hud_weapons_bg ""
-seta hud_weapons_bg_color ""
-seta hud_weapons_bg_color_team ""
-seta hud_weapons_bg_alpha ""
-seta hud_weapons_bg_border ""
-seta hud_weapons_bg_padding "-5"
-seta hud_weapons_accuracy_yellow 40
-
-seta hud_ammo 1
-seta hud_ammo_pos "0.160000 0.910000"
-seta hud_ammo_size "0.190000 0.090000"
-seta hud_ammo_bg ""
-seta hud_ammo_bg_color ""
-seta hud_ammo_bg_color_team ""
-seta hud_ammo_bg_alpha ""
-seta hud_ammo_bg_border ""
-seta hud_ammo_bg_padding ""
-seta hud_ammo_onlycurrent 0
-
-seta hud_powerups 1
-seta hud_powerups_pos "0.670000 0.910000"
-seta hud_powerups_size "0.100000 0.080000"
-seta hud_powerups_bg ""
-seta hud_powerups_bg_color ""
-seta hud_powerups_bg_color_team ""
-seta hud_powerups_bg_alpha ""
-seta hud_powerups_bg_border ""
-seta hud_powerups_bg_padding ""
-seta hud_powerups_flip 1
-seta hud_powerups_mirror 0
-
-seta hud_healtharmor 1
-seta hud_healtharmor_pos "0.370000 0.930000"
-seta hud_healtharmor_size "0.300000 0.070000"
-seta hud_healtharmor_bg ""
-seta hud_healtharmor_bg_color ""
-seta hud_healtharmor_bg_color_team ""
-seta hud_healtharmor_bg_alpha ""
-seta hud_healtharmor_bg_border ""
-seta hud_healtharmor_bg_padding ""
-seta hud_healtharmor_flip 0
-seta hud_healtharmor_mirror 0
-
-seta hud_notify 1
-seta hud_notify_pos "0.690000 0.660000"
-seta hud_notify_size "0.300000 0.070000"
-seta hud_notify_bg ""
-seta hud_notify_bg_color ""
-seta hud_notify_bg_color_team ""
-seta hud_notify_bg_alpha "0"
-seta hud_notify_bg_border ""
-seta hud_notify_bg_padding ""
-seta hud_notify_flip 0
-seta hud_notify_info_top 0
-
-seta hud_timer 1
-seta hud_timer_pos "0.860000 0"
-seta hud_timer_size "0.140000 0.045528"
-seta hud_timer_bg "border"
-seta hud_timer_bg_color "0 0.5 0.35"
-seta hud_timer_bg_color_team ""
-seta hud_timer_bg_alpha "0.800000"
-seta hud_timer_bg_border ""
-seta hud_timer_bg_padding "0"
-
-seta hud_radar 2
-seta hud_radar_pos "0.800000 0"
-seta hud_radar_size "0.200000 0.260000"
-seta hud_radar_bg "border_radar"
-seta hud_radar_bg_color ""
-seta hud_radar_bg_color_team ""
-seta hud_radar_bg_alpha ""
-seta hud_radar_bg_border ""
-seta hud_radar_bg_padding "-10"
-seta hud_radar_foreground_alpha 0.800000
-seta hud_radar_alreadyvoted_alpha 0
-
-seta hud_score 1
-seta hud_score_pos "0.760000 0.913333"
-seta hud_score_size "0.240000 0.080000"
-seta hud_score_bg ""
-seta hud_score_bg_color ""
-seta hud_score_bg_color_team ""
-seta hud_score_bg_alpha ""
-seta hud_score_bg_border ""
-seta hud_score_bg_padding ""
-
-seta hud_racetimer 1
-seta hud_racetimer_pos "0.360000 0.140000"
-seta hud_racetimer_size "0.280000 0.093333"
-seta hud_racetimer_bg ""
-seta hud_racetimer_bg_color ""
-seta hud_racetimer_bg_color_team ""
-seta hud_racetimer_bg_alpha "0"
-seta hud_racetimer_bg_border ""
-seta hud_racetimer_bg_padding ""
-
-seta hud_vote 1
-seta hud_vote_pos "0.690000 0.750000"
-seta hud_vote_size "0.300000 0.100000"
-seta hud_vote_bg ""
-seta hud_vote_bg_color "0 0.5 0.35"
-seta hud_vote_bg_color_team ""
-seta hud_vote_bg_alpha "0.800000"
-seta hud_vote_bg_border ""
-seta hud_vote_bg_padding "-3"
-seta hud_vote_alreadyvoted_alpha 0.750000
-
-seta hud_modicons 1
-seta hud_modicons_pos "0.010000 0.910000"
-seta hud_modicons_size "0.135000 0.090000"
-seta hud_modicons_bg ""
-seta hud_modicons_bg_color ""
-seta hud_modicons_bg_color_team ""
-seta hud_modicons_bg_alpha ""
-seta hud_modicons_bg_border ""
-seta hud_modicons_bg_padding ""
-
-seta hud_pressedkeys 1
-seta hud_pressedkeys_pos "0.440000 0.740000"
-seta hud_pressedkeys_size "0.120000 0.094368"
-seta hud_pressedkeys_bg ""
-seta hud_pressedkeys_bg_color ""
-seta hud_pressedkeys_bg_color_team ""
-seta hud_pressedkeys_bg_alpha "0"
-seta hud_pressedkeys_bg_border ""
-seta hud_pressedkeys_bg_padding ""
-
-seta hud_chat 1
-seta hud_chat_pos "0 0.760000"
-seta hud_chat_size "0.420000 0.130000"
-seta hud_chat_bg ""
-seta hud_chat_bg_color ""
-seta hud_chat_bg_color_team ""
-seta hud_chat_bg_alpha "0"
-seta hud_chat_bg_border ""
-seta hud_chat_bg_padding ""
-
-seta hud_engineinfo 1
-seta hud_engineinfo_pos "0.020000 0.820000"
-seta hud_engineinfo_size "0.112500 0.030000"
-seta hud_engineinfo_bg ""
-seta hud_engineinfo_bg_color ""
-seta hud_engineinfo_bg_color_team ""
-seta hud_engineinfo_bg_alpha "0"
-seta hud_engineinfo_bg_border ""
-seta hud_engineinfo_bg_padding ""
+seta hud_panel_weapons 1
+seta hud_panel_weapons_pos "0.370000 0.870000"
+seta hud_panel_weapons_size "0.330000 0.050000"
+seta hud_panel_weapons_bg ""
+seta hud_panel_weapons_bg_color ""
+seta hud_panel_weapons_bg_color_team ""
+seta hud_panel_weapons_bg_alpha ""
+seta hud_panel_weapons_bg_border ""
+seta hud_panel_weapons_bg_padding "-5"
+seta hud_panel_weapons_accuracy_yellow 40
+
+seta hud_panel_ammo 1
+seta hud_panel_ammo_pos "0.160000 0.910000"
+seta hud_panel_ammo_size "0.190000 0.090000"
+seta hud_panel_ammo_bg ""
+seta hud_panel_ammo_bg_color ""
+seta hud_panel_ammo_bg_color_team ""
+seta hud_panel_ammo_bg_alpha ""
+seta hud_panel_ammo_bg_border ""
+seta hud_panel_ammo_bg_padding ""
+seta hud_panel_ammo_onlycurrent 0
+
+seta hud_panel_powerups 1
+seta hud_panel_powerups_pos "0.670000 0.910000"
+seta hud_panel_powerups_size "0.100000 0.080000"
+seta hud_panel_powerups_bg ""
+seta hud_panel_powerups_bg_color ""
+seta hud_panel_powerups_bg_color_team ""
+seta hud_panel_powerups_bg_alpha ""
+seta hud_panel_powerups_bg_border ""
+seta hud_panel_powerups_bg_padding ""
+seta hud_panel_powerups_flip 1
+seta hud_panel_powerups_mirror 0
+
+seta hud_panel_healtharmor 1
+seta hud_panel_healtharmor_pos "0.370000 0.930000"
+seta hud_panel_healtharmor_size "0.300000 0.070000"
+seta hud_panel_healtharmor_bg ""
+seta hud_panel_healtharmor_bg_color ""
+seta hud_panel_healtharmor_bg_color_team ""
+seta hud_panel_healtharmor_bg_alpha ""
+seta hud_panel_healtharmor_bg_border ""
+seta hud_panel_healtharmor_bg_padding ""
+seta hud_panel_healtharmor_flip 0
+seta hud_panel_healtharmor_mirror 0
+
+seta hud_panel_notify 1
+seta hud_panel_notify_pos "0.690000 0.660000"
+seta hud_panel_notify_size "0.300000 0.070000"
+seta hud_panel_notify_bg ""
+seta hud_panel_notify_bg_color ""
+seta hud_panel_notify_bg_color_team ""
+seta hud_panel_notify_bg_alpha "0"
+seta hud_panel_notify_bg_border ""
+seta hud_panel_notify_bg_padding ""
+seta hud_panel_notify_flip 0
+seta hud_panel_notify_info_top 0
+
+seta hud_panel_timer 1
+seta hud_panel_timer_pos "0.860000 0"
+seta hud_panel_timer_size "0.140000 0.045528"
+seta hud_panel_timer_bg "border"
+seta hud_panel_timer_bg_color "0 0.5 0.35"
+seta hud_panel_timer_bg_color_team ""
+seta hud_panel_timer_bg_alpha "0.800000"
+seta hud_panel_timer_bg_border ""
+seta hud_panel_timer_bg_padding "0"
+
+seta hud_panel_radar 2
+seta hud_panel_radar_pos "0.800000 0"
+seta hud_panel_radar_size "0.200000 0.260000"
+seta hud_panel_radar_bg "border_radar"
+seta hud_panel_radar_bg_color ""
+seta hud_panel_radar_bg_color_team ""
+seta hud_panel_radar_bg_alpha ""
+seta hud_panel_radar_bg_border ""
+seta hud_panel_radar_bg_padding "-10"
+seta hud_panel_radar_foreground_alpha 0.800000
+seta hud_panel_radar_alreadyvoted_alpha 0
+
+seta hud_panel_score 1
+seta hud_panel_score_pos "0.760000 0.913333"
+seta hud_panel_score_size "0.240000 0.080000"
+seta hud_panel_score_bg ""
+seta hud_panel_score_bg_color ""
+seta hud_panel_score_bg_color_team ""
+seta hud_panel_score_bg_alpha ""
+seta hud_panel_score_bg_border ""
+seta hud_panel_score_bg_padding ""
+
+seta hud_panel_racetimer 1
+seta hud_panel_racetimer_pos "0.360000 0.140000"
+seta hud_panel_racetimer_size "0.280000 0.093333"
+seta hud_panel_racetimer_bg ""
+seta hud_panel_racetimer_bg_color ""
+seta hud_panel_racetimer_bg_color_team ""
+seta hud_panel_racetimer_bg_alpha "0"
+seta hud_panel_racetimer_bg_border ""
+seta hud_panel_racetimer_bg_padding ""
+
+seta hud_panel_vote 1
+seta hud_panel_vote_pos "0.690000 0.750000"
+seta hud_panel_vote_size "0.300000 0.100000"
+seta hud_panel_vote_bg ""
+seta hud_panel_vote_bg_color "0 0.5 0.35"
+seta hud_panel_vote_bg_color_team ""
+seta hud_panel_vote_bg_alpha "0.800000"
+seta hud_panel_vote_bg_border ""
+seta hud_panel_vote_bg_padding "-3"
+seta hud_panel_vote_alreadyvoted_alpha 0.750000
+
+seta hud_panel_modicons 1
+seta hud_panel_modicons_pos "0.010000 0.910000"
+seta hud_panel_modicons_size "0.135000 0.090000"
+seta hud_panel_modicons_bg ""
+seta hud_panel_modicons_bg_color ""
+seta hud_panel_modicons_bg_color_team ""
+seta hud_panel_modicons_bg_alpha ""
+seta hud_panel_modicons_bg_border ""
+seta hud_panel_modicons_bg_padding ""
+
+seta hud_panel_pressedkeys 1
+seta hud_panel_pressedkeys_pos "0.440000 0.740000"
+seta hud_panel_pressedkeys_size "0.120000 0.094368"
+seta hud_panel_pressedkeys_bg ""
+seta hud_panel_pressedkeys_bg_color ""
+seta hud_panel_pressedkeys_bg_color_team ""
+seta hud_panel_pressedkeys_bg_alpha "0"
+seta hud_panel_pressedkeys_bg_border ""
+seta hud_panel_pressedkeys_bg_padding ""
+
+seta hud_panel_chat 1
+seta hud_panel_chat_pos "0 0.760000"
+seta hud_panel_chat_size "0.420000 0.130000"
+seta hud_panel_chat_bg ""
+seta hud_panel_chat_bg_color ""
+seta hud_panel_chat_bg_color_team ""
+seta hud_panel_chat_bg_alpha "0"
+seta hud_panel_chat_bg_border ""
+seta hud_panel_chat_bg_padding ""
+
+seta hud_panel_engineinfo 1
+seta hud_panel_engineinfo_pos "0.020000 0.820000"
+seta hud_panel_engineinfo_size "0.112500 0.030000"
+seta hud_panel_engineinfo_bg ""
+seta hud_panel_engineinfo_bg_color ""
+seta hud_panel_engineinfo_bg_color_team ""
+seta hud_panel_engineinfo_bg_alpha "0"
+seta hud_panel_engineinfo_bg_border ""
+seta hud_panel_engineinfo_bg_padding ""
var float autocvar_hud_bg_padding;
var float autocvar_hud_fg_alpha;
-var float autocvar_hud_weapons;
-var vector autocvar_hud_weapons_pos;
-var vector autocvar_hud_weapons_size;
-var string autocvar_hud_weapons_bg;
-var string autocvar_hud_weapons_bg_color;
-var string autocvar_hud_weapons_bg_color_team;
-var string autocvar_hud_weapons_bg_alpha;
-var string autocvar_hud_weapons_bg_border;
-var string autocvar_hud_weapons_bg_padding;
-var float autocvar_hud_weapons_aspect;
-var float autocvar_hud_weapons_accuracy;
-var float autocvar_hud_weapons_accuracy_yellow;
-var float autocvar_hud_weapons_ammo;
-var vector autocvar_hud_weapons_ammo_color;
-var float autocvar_hud_weapons_ammo_alpha;
-var float autocvar_hud_weapons_ammo_full_shells;
-var float autocvar_hud_weapons_ammo_full_nails;
-var float autocvar_hud_weapons_ammo_full_rockets;
-var float autocvar_hud_weapons_ammo_full_cells;
-var float autocvar_hud_weapons_ammo_full_fuel;
-var float autocvar_hud_weapons_label;
-var float autocvar_hud_weapons_complainbubble;
-var float autocvar_hud_weapons_complainbubble_padding;
-var float autocvar_hud_weapons_complainbubble_time;
-var float autocvar_hud_weapons_complainbubble_fadetime;
-var vector autocvar_hud_weapons_complainbubble_color_outofammo;
-var vector autocvar_hud_weapons_complainbubble_color_donthave;
-var vector autocvar_hud_weapons_complainbubble_color_unavailable;
-
-var float autocvar_hud_ammo;
-var vector autocvar_hud_ammo_pos;
-var vector autocvar_hud_ammo_size;
-var string autocvar_hud_ammo_bg;
-var string autocvar_hud_ammo_bg_color;
-var string autocvar_hud_ammo_bg_color_team;
-var string autocvar_hud_ammo_bg_alpha;
-var string autocvar_hud_ammo_bg_border;
-var string autocvar_hud_ammo_bg_padding;
-var float autocvar_hud_ammo_onlycurrent;
-var float autocvar_hud_ammo_iconalign;
-
-var float autocvar_hud_powerups;
-var vector autocvar_hud_powerups_pos;
-var vector autocvar_hud_powerups_size;
-var string autocvar_hud_powerups_bg;
-var string autocvar_hud_powerups_bg_color;
-var string autocvar_hud_powerups_bg_color_team;
-var string autocvar_hud_powerups_bg_alpha;
-var string autocvar_hud_powerups_bg_border;
-var string autocvar_hud_powerups_bg_padding;
-var float autocvar_hud_powerups_flip;
-var float autocvar_hud_powerups_iconalign;
-var float autocvar_hud_powerups_baralign;
-
-var float autocvar_hud_healtharmor;
-var vector autocvar_hud_healtharmor_pos;
-var vector autocvar_hud_healtharmor_size;
-var string autocvar_hud_healtharmor_bg;
-var string autocvar_hud_healtharmor_bg_color;
-var string autocvar_hud_healtharmor_bg_color_team;
-var string autocvar_hud_healtharmor_bg_alpha;
-var string autocvar_hud_healtharmor_bg_border;
-var string autocvar_hud_healtharmor_bg_padding;
-var float autocvar_hud_healtharmor_flip;
-var float autocvar_hud_healtharmor_iconalign;
-var float autocvar_hud_healtharmor_baralign;
-
-var float autocvar_hud_notify;
-var vector autocvar_hud_notify_pos;
-var vector autocvar_hud_notify_size;
-var string autocvar_hud_notify_bg;
-var string autocvar_hud_notify_bg_color;
-var string autocvar_hud_notify_bg_color_team;
-var string autocvar_hud_notify_bg_alpha;
-var string autocvar_hud_notify_bg_border;
-var string autocvar_hud_notify_bg_padding;
-var float autocvar_hud_notify_print;
-var float autocvar_hud_notify_time;
-var float autocvar_hud_notify_fadetime;
-var float autocvar_hud_notify_flip;
-
-var float autocvar_hud_timer;
-var vector autocvar_hud_timer_pos;
-var vector autocvar_hud_timer_size;
-var string autocvar_hud_timer_bg;
-var string autocvar_hud_timer_bg_color;
-var string autocvar_hud_timer_bg_color_team;
-var string autocvar_hud_timer_bg_alpha;
-var string autocvar_hud_timer_bg_border;
-var string autocvar_hud_timer_bg_padding;
-var float autocvar_hud_timer_increment;
-
-var float autocvar_hud_radar;
-var vector autocvar_hud_radar_pos;
-var vector autocvar_hud_radar_size;
-var string autocvar_hud_radar_bg;
-var string autocvar_hud_radar_bg_color;
-var string autocvar_hud_radar_bg_color_team;
-var string autocvar_hud_radar_bg_alpha;
-var string autocvar_hud_radar_bg_border;
-var string autocvar_hud_radar_bg_padding;
-
-var float autocvar_hud_score;
-var vector autocvar_hud_score_pos;
-var vector autocvar_hud_score_size;
-var string autocvar_hud_score_bg;
-var string autocvar_hud_score_bg_color;
-var string autocvar_hud_score_bg_color_team;
-var string autocvar_hud_score_bg_alpha;
-var string autocvar_hud_score_bg_border;
-var string autocvar_hud_score_bg_padding;
-
-var float autocvar_hud_racetimer;
-var vector autocvar_hud_racetimer_pos;
-var vector autocvar_hud_racetimer_size;
-var string autocvar_hud_racetimer_bg;
-var string autocvar_hud_racetimer_bg_color;
-var string autocvar_hud_racetimer_bg_color_team;
-var string autocvar_hud_racetimer_bg_alpha;
-var string autocvar_hud_racetimer_bg_border;
-var string autocvar_hud_racetimer_bg_padding;
-
-var float autocvar_hud_vote;
-var vector autocvar_hud_vote_pos;
-var vector autocvar_hud_vote_size;
-var string autocvar_hud_vote_bg;
-var string autocvar_hud_vote_bg_color;
-var string autocvar_hud_vote_bg_color_team;
-var string autocvar_hud_vote_bg_alpha;
-var string autocvar_hud_vote_bg_border;
-var string autocvar_hud_vote_bg_padding;
-var float autocvar_hud_vote_alreadyvoted_alpha;
-
-var float autocvar_hud_modicons;
-var vector autocvar_hud_modicons_pos;
-var vector autocvar_hud_modicons_size;
-var string autocvar_hud_modicons_bg;
-var string autocvar_hud_modicons_bg_color;
-var string autocvar_hud_modicons_bg_color_team;
-var string autocvar_hud_modicons_bg_alpha;
-var string autocvar_hud_modicons_bg_border;
-var string autocvar_hud_modicons_bg_padding;
-
-var float autocvar_hud_pressedkeys;
-var vector autocvar_hud_pressedkeys_pos;
-var vector autocvar_hud_pressedkeys_size;
-var string autocvar_hud_pressedkeys_bg;
-var string autocvar_hud_pressedkeys_bg_color;
-var string autocvar_hud_pressedkeys_bg_color_team;
-var string autocvar_hud_pressedkeys_bg_alpha;
-var string autocvar_hud_pressedkeys_bg_border;
-var string autocvar_hud_pressedkeys_bg_padding;
-var float autocvar_hud_pressedkeys_aspect;
-
-var float autocvar_hud_chat;
-var vector autocvar_hud_chat_pos;
-var vector autocvar_hud_chat_size;
-var string autocvar_hud_chat_bg;
-var string autocvar_hud_chat_bg_color;
-var string autocvar_hud_chat_bg_color_team;
-var string autocvar_hud_chat_bg_alpha;
-var string autocvar_hud_chat_bg_border;
-var string autocvar_hud_chat_bg_padding;
-
-var float autocvar_hud_engineinfo;
-var vector autocvar_hud_engineinfo_pos;
-var vector autocvar_hud_engineinfo_size;
-var string autocvar_hud_engineinfo_bg;
-var string autocvar_hud_engineinfo_bg_color;
-var string autocvar_hud_engineinfo_bg_color_team;
-var string autocvar_hud_engineinfo_bg_alpha;
-var string autocvar_hud_engineinfo_bg_border;
-var string autocvar_hud_engineinfo_bg_padding;
-
-var float autocvar_hud_infomessages;
-var vector autocvar_hud_infomessages_pos;
-var vector autocvar_hud_infomessages_size;
-var string autocvar_hud_infomessages_bg;
-var string autocvar_hud_infomessages_bg_color;
-var string autocvar_hud_infomessages_bg_color_team;
-var string autocvar_hud_infomessages_bg_alpha;
-var string autocvar_hud_infomessages_bg_border;
-var string autocvar_hud_infomessages_bg_padding;
-var float autocvar_hud_infomessages_flip;
+var float autocvar_hud_panel_weapons;
+var vector autocvar_hud_panel_weapons_pos;
+var vector autocvar_hud_panel_weapons_size;
+var string autocvar_hud_panel_weapons_bg;
+var string autocvar_hud_panel_weapons_bg_color;
+var string autocvar_hud_panel_weapons_bg_color_team;
+var string autocvar_hud_panel_weapons_bg_alpha;
+var string autocvar_hud_panel_weapons_bg_border;
+var string autocvar_hud_panel_weapons_bg_padding;
+var float autocvar_hud_panel_weapons_aspect;
+var float autocvar_hud_panel_weapons_accuracy;
+var float autocvar_hud_panel_weapons_accuracy_yellow;
+var float autocvar_hud_panel_weapons_ammo;
+var vector autocvar_hud_panel_weapons_ammo_color;
+var float autocvar_hud_panel_weapons_ammo_alpha;
+var float autocvar_hud_panel_weapons_ammo_full_shells;
+var float autocvar_hud_panel_weapons_ammo_full_nails;
+var float autocvar_hud_panel_weapons_ammo_full_rockets;
+var float autocvar_hud_panel_weapons_ammo_full_cells;
+var float autocvar_hud_panel_weapons_ammo_full_fuel;
+var float autocvar_hud_panel_weapons_label;
+var float autocvar_hud_panel_weapons_complainbubble;
+var float autocvar_hud_panel_weapons_complainbubble_padding;
+var float autocvar_hud_panel_weapons_complainbubble_time;
+var float autocvar_hud_panel_weapons_complainbubble_fadetime;
+var vector autocvar_hud_panel_weapons_complainbubble_color_outofammo;
+var vector autocvar_hud_panel_weapons_complainbubble_color_donthave;
+var vector autocvar_hud_panel_weapons_complainbubble_color_unavailable;
+
+var float autocvar_hud_panel_ammo;
+var vector autocvar_hud_panel_ammo_pos;
+var vector autocvar_hud_panel_ammo_size;
+var string autocvar_hud_panel_ammo_bg;
+var string autocvar_hud_panel_ammo_bg_color;
+var string autocvar_hud_panel_ammo_bg_color_team;
+var string autocvar_hud_panel_ammo_bg_alpha;
+var string autocvar_hud_panel_ammo_bg_border;
+var string autocvar_hud_panel_ammo_bg_padding;
+var float autocvar_hud_panel_ammo_onlycurrent;
+var float autocvar_hud_panel_ammo_iconalign;
+
+var float autocvar_hud_panel_powerups;
+var vector autocvar_hud_panel_powerups_pos;
+var vector autocvar_hud_panel_powerups_size;
+var string autocvar_hud_panel_powerups_bg;
+var string autocvar_hud_panel_powerups_bg_color;
+var string autocvar_hud_panel_powerups_bg_color_team;
+var string autocvar_hud_panel_powerups_bg_alpha;
+var string autocvar_hud_panel_powerups_bg_border;
+var string autocvar_hud_panel_powerups_bg_padding;
+var float autocvar_hud_panel_powerups_flip;
+var float autocvar_hud_panel_powerups_iconalign;
+var float autocvar_hud_panel_powerups_baralign;
+
+var float autocvar_hud_panel_healtharmor;
+var vector autocvar_hud_panel_healtharmor_pos;
+var vector autocvar_hud_panel_healtharmor_size;
+var string autocvar_hud_panel_healtharmor_bg;
+var string autocvar_hud_panel_healtharmor_bg_color;
+var string autocvar_hud_panel_healtharmor_bg_color_team;
+var string autocvar_hud_panel_healtharmor_bg_alpha;
+var string autocvar_hud_panel_healtharmor_bg_border;
+var string autocvar_hud_panel_healtharmor_bg_padding;
+var float autocvar_hud_panel_healtharmor_flip;
+var float autocvar_hud_panel_healtharmor_iconalign;
+var float autocvar_hud_panel_healtharmor_baralign;
+
+var float autocvar_hud_panel_notify;
+var vector autocvar_hud_panel_notify_pos;
+var vector autocvar_hud_panel_notify_size;
+var string autocvar_hud_panel_notify_bg;
+var string autocvar_hud_panel_notify_bg_color;
+var string autocvar_hud_panel_notify_bg_color_team;
+var string autocvar_hud_panel_notify_bg_alpha;
+var string autocvar_hud_panel_notify_bg_border;
+var string autocvar_hud_panel_notify_bg_padding;
+var float autocvar_hud_panel_notify_print;
+var float autocvar_hud_panel_notify_time;
+var float autocvar_hud_panel_notify_fadetime;
+var float autocvar_hud_panel_notify_flip;
+
+var float autocvar_hud_panel_timer;
+var vector autocvar_hud_panel_timer_pos;
+var vector autocvar_hud_panel_timer_size;
+var string autocvar_hud_panel_timer_bg;
+var string autocvar_hud_panel_timer_bg_color;
+var string autocvar_hud_panel_timer_bg_color_team;
+var string autocvar_hud_panel_timer_bg_alpha;
+var string autocvar_hud_panel_timer_bg_border;
+var string autocvar_hud_panel_timer_bg_padding;
+var float autocvar_hud_panel_timer_increment;
+
+var float autocvar_hud_panel_radar;
+var vector autocvar_hud_panel_radar_pos;
+var vector autocvar_hud_panel_radar_size;
+var string autocvar_hud_panel_radar_bg;
+var string autocvar_hud_panel_radar_bg_color;
+var string autocvar_hud_panel_radar_bg_color_team;
+var string autocvar_hud_panel_radar_bg_alpha;
+var string autocvar_hud_panel_radar_bg_border;
+var string autocvar_hud_panel_radar_bg_padding;
+
+var float autocvar_hud_panel_score;
+var vector autocvar_hud_panel_score_pos;
+var vector autocvar_hud_panel_score_size;
+var string autocvar_hud_panel_score_bg;
+var string autocvar_hud_panel_score_bg_color;
+var string autocvar_hud_panel_score_bg_color_team;
+var string autocvar_hud_panel_score_bg_alpha;
+var string autocvar_hud_panel_score_bg_border;
+var string autocvar_hud_panel_score_bg_padding;
+
+var float autocvar_hud_panel_racetimer;
+var vector autocvar_hud_panel_racetimer_pos;
+var vector autocvar_hud_panel_racetimer_size;
+var string autocvar_hud_panel_racetimer_bg;
+var string autocvar_hud_panel_racetimer_bg_color;
+var string autocvar_hud_panel_racetimer_bg_color_team;
+var string autocvar_hud_panel_racetimer_bg_alpha;
+var string autocvar_hud_panel_racetimer_bg_border;
+var string autocvar_hud_panel_racetimer_bg_padding;
+
+var float autocvar_hud_panel_vote;
+var vector autocvar_hud_panel_vote_pos;
+var vector autocvar_hud_panel_vote_size;
+var string autocvar_hud_panel_vote_bg;
+var string autocvar_hud_panel_vote_bg_color;
+var string autocvar_hud_panel_vote_bg_color_team;
+var string autocvar_hud_panel_vote_bg_alpha;
+var string autocvar_hud_panel_vote_bg_border;
+var string autocvar_hud_panel_vote_bg_padding;
+var float autocvar_hud_panel_vote_alreadyvoted_alpha;
+
+var float autocvar_hud_panel_modicons;
+var vector autocvar_hud_panel_modicons_pos;
+var vector autocvar_hud_panel_modicons_size;
+var string autocvar_hud_panel_modicons_bg;
+var string autocvar_hud_panel_modicons_bg_color;
+var string autocvar_hud_panel_modicons_bg_color_team;
+var string autocvar_hud_panel_modicons_bg_alpha;
+var string autocvar_hud_panel_modicons_bg_border;
+var string autocvar_hud_panel_modicons_bg_padding;
+
+var float autocvar_hud_panel_pressedkeys;
+var vector autocvar_hud_panel_pressedkeys_pos;
+var vector autocvar_hud_panel_pressedkeys_size;
+var string autocvar_hud_panel_pressedkeys_bg;
+var string autocvar_hud_panel_pressedkeys_bg_color;
+var string autocvar_hud_panel_pressedkeys_bg_color_team;
+var string autocvar_hud_panel_pressedkeys_bg_alpha;
+var string autocvar_hud_panel_pressedkeys_bg_border;
+var string autocvar_hud_panel_pressedkeys_bg_padding;
+var float autocvar_hud_panel_pressedkeys_aspect;
+
+var float autocvar_hud_panel_chat;
+var vector autocvar_hud_panel_chat_pos;
+var vector autocvar_hud_panel_chat_size;
+var string autocvar_hud_panel_chat_bg;
+var string autocvar_hud_panel_chat_bg_color;
+var string autocvar_hud_panel_chat_bg_color_team;
+var string autocvar_hud_panel_chat_bg_alpha;
+var string autocvar_hud_panel_chat_bg_border;
+var string autocvar_hud_panel_chat_bg_padding;
+
+var float autocvar_hud_panel_engineinfo;
+var vector autocvar_hud_panel_engineinfo_pos;
+var vector autocvar_hud_panel_engineinfo_size;
+var string autocvar_hud_panel_engineinfo_bg;
+var string autocvar_hud_panel_engineinfo_bg_color;
+var string autocvar_hud_panel_engineinfo_bg_color_team;
+var string autocvar_hud_panel_engineinfo_bg_alpha;
+var string autocvar_hud_panel_engineinfo_bg_border;
+var string autocvar_hud_panel_engineinfo_bg_padding;
+
+var float autocvar_hud_panel_infomessages;
+var vector autocvar_hud_panel_infomessages_pos;
+var vector autocvar_hud_panel_infomessages_size;
+var string autocvar_hud_panel_infomessages_bg;
+var string autocvar_hud_panel_infomessages_bg_color;
+var string autocvar_hud_panel_infomessages_bg_color_team;
+var string autocvar_hud_panel_infomessages_bg_alpha;
+var string autocvar_hud_panel_infomessages_bg_border;
+var string autocvar_hud_panel_infomessages_bg_padding;
+var float autocvar_hud_panel_infomessages_flip;
{
HUD_Panel_GetName(i)
- fputs(fh, strcat("seta hud_", panel_name, " ", cvar_string(strcat("hud_", panel_name)), "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_pos \"", cvar_string(strcat("hud_", panel_name, "_pos")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_size \"", cvar_string(strcat("hud_", panel_name, "_size")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg \"", cvar_string(strcat("hud_", panel_name, "_bg")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg_color \"", cvar_string(strcat("hud_", panel_name, "_bg_color")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg_color_team \"", cvar_string(strcat("hud_", panel_name, "_bg_color_team")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg_alpha \"", cvar_string(strcat("hud_", panel_name, "_bg_alpha")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg_border \"", cvar_string(strcat("hud_", panel_name, "_bg_border")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_bg_padding \"", cvar_string(strcat("hud_", panel_name, "_bg_padding")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, " ", cvar_string(strcat("hud_panel_", panel_name)), "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_pos \"", cvar_string(strcat("hud_panel_", panel_name, "_pos")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_size \"", cvar_string(strcat("hud_panel_", panel_name, "_size")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg \"", cvar_string(strcat("hud_panel_", panel_name, "_bg")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg_color \"", cvar_string(strcat("hud_panel_", panel_name, "_bg_color")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg_color_team \"", cvar_string(strcat("hud_panel_", panel_name, "_bg_color_team")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg_alpha \"", cvar_string(strcat("hud_panel_", panel_name, "_bg_alpha")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg_border \"", cvar_string(strcat("hud_panel_", panel_name, "_bg_border")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_bg_padding \"", cvar_string(strcat("hud_panel_", panel_name, "_bg_padding")), "\"", "\n"));
switch(i) {
case HUD_PANEL_WEAPONS:
- fputs(fh, strcat("seta hud_", panel_name, "_complainbubble \"", cvar_string(strcat("hud_", panel_name, "_complainbubble")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_complainbubble_padding \"", cvar_string(strcat("hud_", panel_name, "_complainbubble_padding")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_complainbubble_color_outofammo \"", cvar_string(strcat("hud_", panel_name, "_complainbubble_color_outofammo")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_complainbubble_color_donthave \"", cvar_string(strcat("hud_", panel_name, "_complainbubble_color_donthave")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_complainbubble_color_unavailable \"", cvar_string(strcat("hud_", panel_name, "_complainbubble_color_unavailable")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_ammo_color \"", cvar_string(strcat("hud_", panel_name, "_ammo_color")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_ammo_alpha \"", cvar_string(strcat("hud_", panel_name, "_ammo_alpha")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_aspect \"", cvar_string(strcat("hud_", panel_name, "_ammo_alpha")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_complainbubble \"", cvar_string(strcat("hud_panel_", panel_name, "_complainbubble")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_complainbubble_padding \"", cvar_string(strcat("hud_panel_", panel_name, "_complainbubble_padding")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_complainbubble_color_outofammo \"", cvar_string(strcat("hud_panel_", panel_name, "_complainbubble_color_outofammo")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_complainbubble_color_donthave \"", cvar_string(strcat("hud_panel_", panel_name, "_complainbubble_color_donthave")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_complainbubble_color_unavailable \"", cvar_string(strcat("hud_panel_", panel_name, "_complainbubble_color_unavailable")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_ammo_color \"", cvar_string(strcat("hud_panel_", panel_name, "_ammo_color")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_ammo_alpha \"", cvar_string(strcat("hud_panel_", panel_name, "_ammo_alpha")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_aspect \"", cvar_string(strcat("hud_panel_", panel_name, "_ammo_alpha")), "\"", "\n"));
break;
case HUD_PANEL_AMMO:
- fputs(fh, strcat("seta hud_", panel_name, "_onlycurrent \"", cvar_string(strcat("hud_", panel_name, "_onlycurrent")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_iconalign \"", cvar_string(strcat("hud_", panel_name, "_iconalign")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_onlycurrent \"", cvar_string(strcat("hud_panel_", panel_name, "_onlycurrent")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_iconalign \"", cvar_string(strcat("hud_panel_", panel_name, "_iconalign")), "\"", "\n"));
break;
case HUD_PANEL_POWERUPS:
- fputs(fh, strcat("seta hud_", panel_name, "_flip \"", cvar_string(strcat("hud_", panel_name, "_flip")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_iconalign \"", cvar_string(strcat("hud_", panel_name, "_iconalign")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_baralign \"", cvar_string(strcat("hud_", panel_name, "_baralign")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_flip \"", cvar_string(strcat("hud_panel_", panel_name, "_flip")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_iconalign \"", cvar_string(strcat("hud_panel_", panel_name, "_iconalign")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_baralign \"", cvar_string(strcat("hud_panel_", panel_name, "_baralign")), "\"", "\n"));
break;
case HUD_PANEL_HEALTHARMOR:
- fputs(fh, strcat("seta hud_", panel_name, "_flip \"", cvar_string(strcat("hud_", panel_name, "_flip")), "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_iconalign \"", cvar_string(strcat("hud_", panel_name, "_iconalign")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_baralign \"", cvar_string(strcat("hud_", panel_name, "_baralign")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_flip \"", cvar_string(strcat("hud_panel_", panel_name, "_flip")), "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_iconalign \"", cvar_string(strcat("hud_panel_", panel_name, "_iconalign")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_baralign \"", cvar_string(strcat("hud_panel_", panel_name, "_baralign")), "\"", "\n"));
break;
case HUD_PANEL_NOTIFY:
- fputs(fh, strcat("seta hud_", panel_name, "_flip \"", cvar_string(strcat("hud_", panel_name, "_flip")), "\"", "\n"));
- fputs(fh, strcat("seta hud_", panel_name, "_print \"", cvar_string(strcat("hud_", panel_name, "_print")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_flip \"", cvar_string(strcat("hud_panel_", panel_name, "_flip")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_print \"", cvar_string(strcat("hud_panel_", panel_name, "_print")), "\"", "\n"));
break;
case HUD_PANEL_RADAR:
- fputs(fh, strcat("seta hud_", panel_name, "_foreground_alpha \"", cvar_string(strcat("hud_", panel_name, "_foreground_alpha")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_foreground_alpha \"", cvar_string(strcat("hud_panel_", panel_name, "_foreground_alpha")), "\"", "\n"));
break;
case HUD_PANEL_VOTE:
- fputs(fh, strcat("seta hud_", panel_name, "_alreadyvoted_alpha \"", cvar_string(strcat("hud_", panel_name, "_alreadyvoted_alpha")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_alreadyvoted_alpha \"", cvar_string(strcat("hud_panel_", panel_name, "_alreadyvoted_alpha")), "\"", "\n"));
break;
case HUD_PANEL_PRESSEDKEYS:
- fputs(fh, strcat("seta hud_", panel_name, "_aspect \"", cvar_string(strcat("hud_", panel_name, "_aspect")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_panel_", panel_name, "_aspect \"", cvar_string(strcat("hud_panel_", panel_name, "_aspect")), "\"", "\n"));
break;
}
fputs(fh, "\n");
s = strcat(ftos(pos_x/vid_conwidth), " ", ftos(pos_y/vid_conheight));
HUD_Panel_GetName(highlightedPanel);
- cvar_set(strcat("hud_", panel_name, "_pos"), s);
+ cvar_set(strcat("hud_panel_", panel_name, "_pos"), s);
}
// check if resize will result in panel being moved into another panel. If so, return snapped vector, otherwise return the given vector
HUD_Panel_GetName(highlightedPanel);
string s;
s = strcat(ftos(mySize_x/vid_conwidth), " ", ftos(mySize_y/vid_conheight));
- cvar_set(strcat("hud_", panel_name, "_size"), s);
+ cvar_set(strcat("hud_panel_", panel_name, "_size"), s);
s = strcat(ftos(myPos_x/vid_conwidth), " ", ftos(myPos_y/vid_conheight));
- cvar_set(strcat("hud_", panel_name, "_pos"), s);
+ cvar_set(strcat("hud_panel_", panel_name, "_pos"), s);
}
float mouseClicked;
}
}
-#define acc_color(i) stov(cvar_string(strcat("hud_weapons_accuracy_color", ftos(i))))
+#define acc_color(i) stov(cvar_string(strcat("hud_panel_weapons_accuracy_color", ftos(i))))
#define MAX_ACCURACY_LEVELS 10
float acc_lev[MAX_ACCURACY_LEVELS];
void HUD_Weapons(void)
{
- if(!autocvar_hud_weapons && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_weapons && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_WEAPONS;
weapon_number = weapon_stats & 63;
weapon_fired[weapon_number-WEP_FIRST] = floor(weapon_stats / 64);
- if(cvar_or("hud_weapons_fade", 1))
+ if(cvar_or("hud_panel_weapons_fade", 1))
{
fade = 3.2 - 2 * (time - weapontime);
fade = bound(0.7, fade, 1);
float rows, columns;
rows = mySize_y/mySize_x;
- rows = bound(1, floor((sqrt(4 * autocvar_hud_weapons_aspect * rows * WEP_COUNT + rows * rows) + rows + 0.5) / 2), WEP_COUNT);
+ rows = bound(1, floor((sqrt(4 * autocvar_hud_panel_weapons_aspect * rows * WEP_COUNT + rows * rows) + rows + 0.5) / 2), WEP_COUNT);
columns = ceil(WEP_COUNT/rows);
float row, column;
float a, type, fullammo;
float when;
- when = autocvar_hud_weapons_complainbubble_time;
+ when = autocvar_hud_panel_weapons_complainbubble_time;
float fadetime;
- fadetime = autocvar_hud_weapons_complainbubble_fadetime;
+ fadetime = autocvar_hud_panel_weapons_complainbubble_fadetime;
vector color;
vector wpnpos;
vector wpnsize;
float acc_levels;
- if(autocvar_hud_weapons_accuracy && !(gametype == GAME_RACE || gametype == GAME_CTS))
+ if(autocvar_hud_panel_weapons_accuracy && !(gametype == GAME_RACE || gametype == GAME_CTS))
{
- acc_levels = tokenize(cvar_string("hud_weapons_accuracy_color_levels"));
+ acc_levels = tokenize(cvar_string("hud_panel_weapons_accuracy_color_levels"));
if (acc_levels > MAX_ACCURACY_LEVELS)
acc_levels = MAX_ACCURACY_LEVELS;
{
drawpic_aspect_skin(wpnpos, strcat("weapon", self.netname), wpnsize, '1 1 1', fade * panel_fg_alpha, DRAWFLAG_NORMAL);
- if(autocvar_hud_weapons_number == 1) // weapon number
+ if(autocvar_hud_panel_weapons_label == 1) // weapon number
drawstring(wpnpos, ftos(weapid), '1 1 0' * 0.5 * mySize_y*(1/rows), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
- else if(autocvar_hud_weapons_number == 2) // bind
+ else if(autocvar_hud_panel_weapons_label == 2) // bind
drawstring(wpnpos, getcommandkey(ftos(weapid), strcat("impulse ", ftos(weapid))), '1 1 0' * 0.5 * mySize_y*(1/rows), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
// draw ammo status bar
- if(autocvar_hud_weapons_ammo && weapid != WEP_TUBA && weapid != WEP_LASER && weapid != WEP_PORTO)
+ if(autocvar_hud_panel_weapons_ammo && weapid != WEP_TUBA && weapid != WEP_LASER && weapid != WEP_PORTO)
{
a = 0;
type = GetAmmoTypeForWep(weapid);
if(a > 0)
{
switch(type) {
- case 0: fullammo = autocvar_hud_weapons_ammo_full_shells; break;
- case 1: fullammo = autocvar_hud_weapons_ammo_full_nails; break;
- case 2: fullammo = autocvar_hud_weapons_ammo_full_rockets; break;
- case 3: fullammo = autocvar_hud_weapons_ammo_full_cells; break;
- case 4: fullammo = autocvar_hud_weapons_ammo_full_fuel; break;
+ case 0: fullammo = autocvar_hud_panel_weapons_ammo_full_shells; break;
+ case 1: fullammo = autocvar_hud_panel_weapons_ammo_full_nails; break;
+ case 2: fullammo = autocvar_hud_panel_weapons_ammo_full_rockets; break;
+ case 3: fullammo = autocvar_hud_panel_weapons_ammo_full_cells; break;
+ case 4: fullammo = autocvar_hud_panel_weapons_ammo_full_fuel; break;
default: fullammo = 60;
}
vector barsize;
vector barpos;
- if(wpnsize_x/wpnsize_y > autocvar_hud_weapons_aspect)
+ if(wpnsize_x/wpnsize_y > autocvar_hud_panel_weapons_aspect)
{
- barsize_x = autocvar_hud_weapons_aspect * wpnsize_y;
+ barsize_x = autocvar_hud_panel_weapons_aspect * wpnsize_y;
barsize_y = wpnsize_y;
barpos_x = wpnpos_x + (wpnsize_x - barsize_x) / 2;
}
else
{
- barsize_y = 1/autocvar_hud_weapons_aspect * wpnsize_x;
+ barsize_y = 1/autocvar_hud_panel_weapons_aspect * wpnsize_x;
barsize_x = wpnsize_x;
barpos_y = wpnpos_y + (wpnsize_y - barsize_y) / 2;
barpos_y,
barsize_x * bound(0, a/fullammo, 1),
barsize_y);
- drawpic_aspect_skin(wpnpos, "weapon_ammo", wpnsize, autocvar_hud_weapons_ammo_color, panel_fg_alpha * autocvar_hud_weapons_ammo_alpha, DRAWFLAG_NORMAL);
+ drawpic_aspect_skin(wpnpos, "weapon_ammo", wpnsize, autocvar_hud_panel_weapons_ammo_color, panel_fg_alpha * autocvar_hud_panel_weapons_ammo_alpha, DRAWFLAG_NORMAL);
drawresetcliparea();
}
}
}
// draw the complain message
- if(time - complain_weapon_time < when + fadetime && self.weapon == complain_weapon && autocvar_hud_weapons_complainbubble)
+ if(time - complain_weapon_time < when + fadetime && self.weapon == complain_weapon && autocvar_hud_panel_weapons_complainbubble)
{
if(fadetime)
{
string s;
if(complain_weapon_type == 0) {
s = "Out of ammo";
- color = autocvar_hud_weapons_complainbubble_color_outofammo;
+ color = autocvar_hud_panel_weapons_complainbubble_color_outofammo;
}
else if(complain_weapon_type == 1) {
s = "Don't have";
- color = autocvar_hud_weapons_complainbubble_color_donthave;
+ color = autocvar_hud_panel_weapons_complainbubble_color_donthave;
}
else {
s = "Unavailable";
- color = autocvar_hud_weapons_complainbubble_color_unavailable;
+ color = autocvar_hud_panel_weapons_complainbubble_color_unavailable;
}
- drawpic_aspect_skin(wpnpos + '1 1 0' * autocvar_hud_weapons_complainbubble_padding, "weapon_complainbubble", wpnsize - '2 2 0' * autocvar_hud_weapons_complainbubble_padding, color, a * panel_fg_alpha, DRAWFLAG_NORMAL);
- drawstring_aspect(wpnpos + '1 1 0' * autocvar_hud_weapons_complainbubble_padding, s, wpnsize - '2 2 0' * autocvar_hud_weapons_complainbubble_padding, '1 1 1', panel_fg_alpha * a, DRAWFLAG_NORMAL);
+ drawpic_aspect_skin(wpnpos + '1 1 0' * autocvar_hud_panel_weapons_complainbubble_padding, "weapon_complainbubble", wpnsize - '2 2 0' * autocvar_hud_panel_weapons_complainbubble_padding, color, a * panel_fg_alpha, DRAWFLAG_NORMAL);
+ drawstring_aspect(wpnpos + '1 1 0' * autocvar_hud_panel_weapons_complainbubble_padding, s, wpnsize - '2 2 0' * autocvar_hud_panel_weapons_complainbubble_padding, '1 1 1', panel_fg_alpha * a, DRAWFLAG_NORMAL);
}
++row;
}
vector picpos, numpos;
- if(autocvar_hud_ammo_iconalign)
+ if(autocvar_hud_panel_ammo_iconalign)
{
numpos = newPos;
picpos = newPos + eX * 2 * newSize_y;
void HUD_Ammo(void)
{
- if(!autocvar_hud_ammo && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_ammo && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_AMMO;
// ammo
for (i = 0; i < AMMO_COUNT; ++i) {
currently_selected = getstati(STAT_ITEMS) & GetAmmoItemCode(i);
- if(autocvar_hud_ammo_onlycurrent) {
+ if(autocvar_hud_panel_ammo_onlycurrent) {
if(autocvar__hud_configure)
i = 2;
if (currently_selected || autocvar__hud_configure)
// Powerups (#2)
//
void HUD_Powerups(void) {
- if(!autocvar_hud_powerups && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_powerups && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_POWERUPS;
string leftname, rightname;
float leftcnt, rightcnt;
float leftexact, rightexact;
- if (autocvar_hud_powerups_flip) {
+ if (autocvar_hud_panel_powerups_flip) {
leftname = "strength";
leftcnt = ceil(strength_time);
leftexact = strength_time;
{
if(leftcnt)
{
- if(autocvar_hud_powerups_baralign == 1 || autocvar_hud_powerups_baralign == 3) { // right align
+ if(autocvar_hud_panel_powerups_baralign == 1 || autocvar_hud_panel_powerups_baralign == 3) { // right align
barpos = pos + eX * 0.5 * mySize_x - eX * 0.5 * mySize_x * min(1, leftcnt/30);
barsize = eX * 0.5 * mySize_x * min(1, leftcnt/30) + eY * mySize_y;
} else { // left align
HUD_Panel_GetProgressBarColor(leftname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha * bound(0, max(strength_time, shield_time), 1), DRAWFLAG_NORMAL);
if(leftcnt > 1)
- DrawNumIcon(autocvar_hud_powerups_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, '1 1 1', 1);
+ DrawNumIcon(autocvar_hud_panel_powerups_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, '1 1 1', 1);
if(leftcnt <= 5)
- DrawNumIcon_expanding(autocvar_hud_powerups_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, '1 1 1', bound(0, (leftcnt - leftexact) / 0.5, 1));
+ DrawNumIcon_expanding(autocvar_hud_panel_powerups_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, '1 1 1', bound(0, (leftcnt - leftexact) / 0.5, 1));
}
if(rightcnt)
{
- if(autocvar_hud_powerups_baralign == 0 || autocvar_hud_powerups_baralign == 3) { // left align
+ if(autocvar_hud_panel_powerups_baralign == 0 || autocvar_hud_panel_powerups_baralign == 3) { // left align
barpos = pos + eX * 0.5 * mySize_x;
barsize = eX * 0.5 * mySize_x * min(1, rightcnt/30) + eY * mySize_y;
} else { // right align
HUD_Panel_GetProgressBarColor(rightname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha * bound(0, max(strength_time, shield_time), 1) * panel_fg_alpha, DRAWFLAG_NORMAL);
if(rightcnt > 1)
- DrawNumIcon(autocvar_hud_powerups_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, '1 1 1', 1);
+ DrawNumIcon(autocvar_hud_panel_powerups_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, '1 1 1', 1);
if(rightcnt <= 5)
- DrawNumIcon_expanding(autocvar_hud_powerups_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, '1 1 1', bound(0, (rightcnt - rightexact) / 0.5, 1));
+ DrawNumIcon_expanding(autocvar_hud_panel_powerups_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, '1 1 1', bound(0, (rightcnt - rightexact) / 0.5, 1));
}
}
else if (mySize_x/mySize_y > 1.5)
{
if(leftcnt)
{
- if(autocvar_hud_powerups_baralign == 1 || autocvar_hud_powerups_baralign == 3) { // right align
+ if(autocvar_hud_panel_powerups_baralign == 1 || autocvar_hud_panel_powerups_baralign == 3) { // right align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, leftcnt/30);
barsize = eX * mySize_x * min(1, leftcnt/30) + eY * 0.5 * mySize_y;
} else { // left align
HUD_Panel_GetProgressBarColor(leftname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha * bound(0, max(strength_time, shield_time), 1) * panel_fg_alpha, DRAWFLAG_NORMAL);
if(leftcnt > 1)
- DrawNumIcon(autocvar_hud_powerups_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, '1 1 1', 1);
+ DrawNumIcon(autocvar_hud_panel_powerups_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, '1 1 1', 1);
if(leftcnt <= 5)
- DrawNumIcon_expanding(autocvar_hud_powerups_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, '1 1 1', bound(0, (leftcnt - leftexact) / 0.5, 1));
+ DrawNumIcon_expanding(autocvar_hud_panel_powerups_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, '1 1 1', bound(0, (leftcnt - leftexact) / 0.5, 1));
}
if(rightcnt)
{
- if(autocvar_hud_powerups_baralign == 0 || autocvar_hud_powerups_baralign == 3) { // left align
+ if(autocvar_hud_panel_powerups_baralign == 0 || autocvar_hud_panel_powerups_baralign == 3) { // left align
barpos = pos + eY * 0.5 * mySize_y;
barsize = eX * mySize_x * min(1, rightcnt/30) + eY * 0.5 * mySize_y;
} else { // right align
HUD_Panel_GetProgressBarColor(rightname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha * bound(0, max(strength_time, shield_time), 1) * panel_fg_alpha, DRAWFLAG_NORMAL);
if(rightcnt > 1)
- DrawNumIcon(autocvar_hud_powerups_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, '1 1 1', 1);
+ DrawNumIcon(autocvar_hud_panel_powerups_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, '1 1 1', 1);
if(rightcnt <= 5)
- DrawNumIcon_expanding(autocvar_hud_powerups_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, '1 1 1', bound(0, (rightcnt - rightexact) / 0.5, 1));
+ DrawNumIcon_expanding(autocvar_hud_panel_powerups_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, '1 1 1', bound(0, (rightcnt - rightexact) / 0.5, 1));
}
}
else
{
if(leftcnt)
{
- if(autocvar_hud_powerups_baralign == 1 || autocvar_hud_powerups_baralign == 3) { // down align
+ if(autocvar_hud_panel_powerups_baralign == 1 || autocvar_hud_panel_powerups_baralign == 3) { // down align
barpos = pos + eY * mySize_y - eY * mySize_y * min(1, leftcnt/30);
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, leftcnt/30);
} else { // up align
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, leftcnt/30);
}
- if(autocvar_hud_powerups_iconalign == 1 || autocvar_hud_powerups_iconalign == 3) { // down align
+ if(autocvar_hud_panel_powerups_iconalign == 1 || autocvar_hud_panel_powerups_iconalign == 3) { // down align
picpos = pos + eX * 0.05 * mySize_x + eY * (mySize_y - 0.65 * mySize_x);
numpos = pos + eY * mySize_y - eY * 0.25 * mySize_x;
} else { // up align
if(rightcnt)
{
- if(autocvar_hud_powerups_baralign == 0 || autocvar_hud_powerups_baralign == 3) { // up align
+ if(autocvar_hud_panel_powerups_baralign == 0 || autocvar_hud_panel_powerups_baralign == 3) { // up align
barpos = pos + eX * 0.5 * mySize_x;
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, rightcnt/30);
} else { // down align
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, rightcnt/30);
}
- if(autocvar_hud_powerups_iconalign == 0 || autocvar_hud_powerups_iconalign == 3) { // up align
+ if(autocvar_hud_panel_powerups_iconalign == 0 || autocvar_hud_panel_powerups_iconalign == 3) { // up align
picpos = pos + eX * 0.05 * mySize_x + eX * 0.5 * mySize_x;
numpos = pos + eY * 0.4 * mySize_x + eX * 0.5 * mySize_x;
} else { // down align
//
void HUD_HealthArmor(void)
{
- if(!autocvar_hud_healtharmor && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_healtharmor && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_HEALTHARMOR;
vector numpos;
drawfont = hud_bigfont;
- if(autocvar_hud_healtharmor == 2) // combined health and armor display
+ if(autocvar_hud_panel_healtharmor == 2) // combined health and armor display
{
vector v;
v = healtharmor_maxdamage(health, armor, armorblockpercent);
float x;
x = floor(v_x + 1);
- if(autocvar_hud_healtharmor_baralign == 1 || autocvar_hud_healtharmor_baralign == 3) { // right align
+ if(autocvar_hud_panel_healtharmor_baralign == 1 || autocvar_hud_panel_healtharmor_baralign == 3) { // right align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, x/400);
barsize = eX * mySize_x * min(1, x/400) + eY * mySize_y;
} else { // left align
if(health)
drawpic_aspect_skin(pos + eX * mySize_x - eX * 0.5 * mySize_y, "health", '0.5 0.5 0' * mySize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
}
- DrawNumIcon(autocvar_hud_healtharmor_iconalign, pos, mySize, x, biggercount, 1, HUD_Get_Num_Color(x, 2 * 200), 1);
+ DrawNumIcon(autocvar_hud_panel_healtharmor_iconalign, pos, mySize, x, biggercount, 1, HUD_Get_Num_Color(x, 2 * 200), 1);
// fuel
if(fuel)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, fuel/100);
barsize = eX * mySize_x * min(1, fuel/100) + eY * 0.2 * mySize_y;
} else {
float leftcnt, rightcnt;
float leftactive, rightactive;
float leftalpha, rightalpha;
- if (autocvar_hud_healtharmor_flip) { // old style layout with armor left/top of health
+ if (autocvar_hud_panel_healtharmor_flip) { // old style layout with armor left/top of health
leftname = "armor";
leftcnt = armor;
if(leftcnt)
{
if(leftactive)
{
- if(autocvar_hud_healtharmor_baralign == 1 || autocvar_hud_healtharmor_baralign == 3) { // right align
+ if(autocvar_hud_panel_healtharmor_baralign == 1 || autocvar_hud_panel_healtharmor_baralign == 3) { // right align
barpos = pos + eX * 0.5 * mySize_x - eX * 0.5 * mySize_x * min(1, leftcnt/200);
barsize = eX * 0.5 * mySize_x * min(1, leftcnt/200) + eY * mySize_y;
} else { // left align
HUD_Panel_GetProgressBarColor(leftname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- DrawNumIcon(autocvar_hud_healtharmor_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, HUD_Get_Num_Color(leftcnt, 200), 1);
+ DrawNumIcon(autocvar_hud_panel_healtharmor_iconalign, pos, eX * 0.5 * mySize_x + eY * mySize_y, leftcnt, leftname, 1, HUD_Get_Num_Color(leftcnt, 200), 1);
}
if(rightactive)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos + eX * 0.5 * mySize_x;
barsize = eX * 0.5 * mySize_x * min(1, rightcnt/200) + eY * mySize_y;
} else { // right align
HUD_Panel_GetProgressBarColor(rightname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- DrawNumIcon(autocvar_hud_healtharmor_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, HUD_Get_Num_Color(leftcnt, 200), 1);
+ DrawNumIcon(autocvar_hud_panel_healtharmor_iconalign, pos + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * mySize_y, rightcnt, rightname, 0, HUD_Get_Num_Color(leftcnt, 200), 1);
}
if(fuel)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, fuel/100);
barsize = eX * mySize_x * min(1, fuel/100) + eY * 0.2 * mySize_y;
} else {
{
if(leftactive)
{
- if(autocvar_hud_healtharmor_baralign == 1 || autocvar_hud_healtharmor_baralign == 3) { // right align
+ if(autocvar_hud_panel_healtharmor_baralign == 1 || autocvar_hud_panel_healtharmor_baralign == 3) { // right align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, leftcnt/200);
barsize = eX * mySize_x * min(1, leftcnt/200) + eY * 0.5 * mySize_y;
} else { // left align
HUD_Panel_GetProgressBarColor(leftname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- DrawNumIcon(autocvar_hud_healtharmor_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, HUD_Get_Num_Color(leftcnt, 200), 1);
+ DrawNumIcon(autocvar_hud_panel_healtharmor_iconalign, pos, eX * mySize_x + eY * 0.5 * mySize_y, leftcnt, leftname, 1, HUD_Get_Num_Color(leftcnt, 200), 1);
}
if(rightactive)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos + eY * 0.5 * mySize_y;
barsize = eX * mySize_x * min(1, rightcnt/200) + eY * 0.5 * mySize_y;
} else { // right align
HUD_Panel_GetProgressBarColor(rightname)
HUD_Panel_DrawProgressBar(barpos, 0, barsize, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- DrawNumIcon(autocvar_hud_healtharmor_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, HUD_Get_Num_Color(leftcnt, 200), 1);
+ DrawNumIcon(autocvar_hud_panel_healtharmor_iconalign, pos + eY * 0.5 * mySize_y, eX * mySize_x + eY * 0.5 * mySize_y, rightcnt, rightname, 0, HUD_Get_Num_Color(leftcnt, 200), 1);
}
if(fuel)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos + eX * mySize_x - eX * mySize_x * min(1, fuel/100);
barsize = eX * mySize_x * min(1, fuel/100) + eY * 0.1 * mySize_y;
} else {
{
if(leftactive)
{
- if(autocvar_hud_healtharmor_baralign == 1 || autocvar_hud_healtharmor_baralign == 3) { // down align
+ if(autocvar_hud_panel_healtharmor_baralign == 1 || autocvar_hud_panel_healtharmor_baralign == 3) { // down align
barpos = pos + eY * mySize_y - eY * mySize_y * min(1, leftcnt/200);
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, leftcnt/200);
} else { // up align
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, leftcnt/200);
}
- if(autocvar_hud_healtharmor_iconalign == 1 || autocvar_hud_healtharmor_iconalign == 3) { // down align
+ if(autocvar_hud_panel_healtharmor_iconalign == 1 || autocvar_hud_panel_healtharmor_iconalign == 3) { // down align
picpos = pos + eX * 0.05 * mySize_x + eY * (mySize_y - 0.65 * mySize_x);
numpos = pos + eY * mySize_y - eY * 0.25 * mySize_x;
} else { // up align
if(rightactive)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // up align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // up align
barpos = pos + eX * 0.5 * mySize_x;
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, rightcnt/200);
} else { // down align
barsize = eX * 0.5 * mySize_x + eY * mySize_y * min(1, rightcnt/200);
}
- if(autocvar_hud_healtharmor_iconalign == 0 || autocvar_hud_healtharmor_iconalign == 3) { // up align
+ if(autocvar_hud_panel_healtharmor_iconalign == 0 || autocvar_hud_panel_healtharmor_iconalign == 3) { // up align
picpos = pos + eX * 0.05 * mySize_x + eX * 0.5 * mySize_x;
numpos = pos + eY * 0.4 * mySize_x + eX * 0.5 * mySize_x;
} else { // down align
if(fuel)
{
- if(autocvar_hud_healtharmor_baralign == 0 || autocvar_hud_healtharmor_baralign == 3) { // left align
+ if(autocvar_hud_panel_healtharmor_baralign == 0 || autocvar_hud_panel_healtharmor_baralign == 3) { // left align
barpos = pos;
barsize = eX * 0.05 * mySize_x + eY * mySize_y * min(1, fuel/100);
} else {
{
float w;
float alsoprint, gentle;
- alsoprint = (autocvar_hud_notify_print || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
+ alsoprint = (autocvar_hud_panel_notify_print || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
if(msg == MSG_SUICIDE) {
void HUD_Notify (void)
{
- if(!autocvar_hud_notify && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_notify && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_NOTIFY;
float a;
float when;
- when = autocvar_hud_notify_time;
+ when = autocvar_hud_panel_notify_time;
float fadetime;
- fadetime = autocvar_hud_notify_fadetime;
+ fadetime = autocvar_hud_panel_notify_fadetime;
string s;
for(j = 0; j < entries; ++j)
{
s = "";
- if(autocvar_hud_notify_flip)
+ if(autocvar_hud_panel_notify_flip)
i = j;
else // rather nasty hack for ordering items from the bottom up
i = entries - j - 1;
void HUD_Timer(void)
{
- if(!autocvar_hud_timer && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_timer && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_TIMER;
else
timer_color = '1 0 0'; //red
- if (autocvar_hud_timer_increment || timelimit == 0 || warmup_stage) {
+ if (autocvar_hud_panel_timer_increment || timelimit == 0 || warmup_stage) {
if (time < getstatf(STAT_GAMESTARTTIME)) {
//while restart is still active, show 00:00
timer = seconds_tostring(0);
//
void HUD_Radar(void)
{
- if ((autocvar_hud_radar == 0 || (autocvar_hud_radar != 2 && !teamplay)) && !autocvar__hud_configure)
+ if ((autocvar_hud_panel_radar == 0 || (autocvar_hud_panel_radar != 2 && !teamplay)) && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_RADAR;
teamradar_loadcvars();
- switch(hud_radar_zoommode)
+ switch(hud_panel_radar_zoommode)
{
default:
case 0:
break;
}
- switch(hud_radar_rotation)
+ switch(hud_panel_radar_rotation)
{
case 0:
teamradar_angle = view_angles_y - 90;
break;
default:
- teamradar_angle = 90 * hud_radar_rotation;
+ teamradar_angle = 90 * hud_panel_radar_rotation;
break;
}
teamradar_extraclip_mins = teamradar_extraclip_maxs = '0 0 0'; // we always center
// pixels per world qu to match the teamradar_size2d_x range in the longest dimension
- if(hud_radar_rotation == 0)
+ if(hud_panel_radar_rotation == 0)
{
// max-min distance must fit the radar in any rotation
bigsize = vlen_minnorm2d(teamradar_size2d) * scale2d / (1.05 * vlen2d(mi_max - mi_min));
);
}
- normalsize = vlen_maxnorm2d(teamradar_size2d) * scale2d / hud_radar_scale;
+ normalsize = vlen_maxnorm2d(teamradar_size2d) * scale2d / hud_panel_radar_scale;
if(bigsize > normalsize)
normalsize = bigsize;
mySize_y
);
- draw_teamradar_background(hud_radar_background_alpha, hud_radar_foreground_alpha);
+ draw_teamradar_background(hud_panel_radar_background_alpha, hud_panel_radar_foreground_alpha);
for(tm = world; (tm = find(tm, classname, "radarlink")); )
draw_teamradar_link(tm.origin, tm.velocity, tm.team);
//
void HUD_Score(void)
{
- if(!autocvar_hud_score && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_score && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_SCORE;
// Race timer (#8)
//
void HUD_RaceTimer (void) {
- if(!autocvar_hud_racetimer && !(gametype == GAME_RACE || gametype == GAME_CTS) && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_racetimer && !(gametype == GAME_RACE || gametype == GAME_CTS) && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_RACETIMER;
void HUD_VoteWindow(void)
{
- if(!autocvar_hud_vote && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_vote && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_VOTE;
if(!vote_alpha)
return;
- a = vote_alpha * bound(autocvar_hud_vote_alreadyvoted_alpha, 1 - vote_highlighted, 1);
+ a = vote_alpha * bound(autocvar_hud_panel_vote_alreadyvoted_alpha, 1 - vote_highlighted, 1);
HUD_Panel_DrawBg(a);
if(panel_bg_padding)
void HUD_ModIcons(void)
{
- if(!autocvar_hud_modicons && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_modicons && !autocvar__hud_configure)
return;
if (gametype != GAME_KEYHUNT && gametype != GAME_CTF && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && !autocvar__hud_configure)
//
void HUD_DrawPressedKeys(void)
{
- if(!autocvar_hud_pressedkeys && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_pressedkeys && !autocvar__hud_configure)
return;
- if(!(spectatee_status > 0 || autocvar_hud_pressedkeys >= 2 || autocvar__hud_configure))
+ if(!(spectatee_status > 0 || autocvar_hud_panel_pressedkeys >= 2 || autocvar__hud_configure))
return;
active_panel = HUD_PANEL_PRESSEDKEYS;
}
// force custom aspect
- if(autocvar_hud_pressedkeys_aspect)
+ if(autocvar_hud_panel_pressedkeys_aspect)
{
vector newSize;
- if(mySize_x/mySize_y > autocvar_hud_pressedkeys_aspect)
+ if(mySize_x/mySize_y > autocvar_hud_panel_pressedkeys_aspect)
{
- newSize_x = autocvar_hud_pressedkeys_aspect * mySize_y;
+ newSize_x = autocvar_hud_panel_pressedkeys_aspect * mySize_y;
newSize_y = mySize_y;
pos_x = pos_x + (mySize_x - newSize_x) / 2;
}
else
{
- newSize_y = 1/autocvar_hud_pressedkeys_aspect * mySize_x;
+ newSize_y = 1/autocvar_hud_panel_pressedkeys_aspect * mySize_x;
newSize_x = mySize_x;
pos_y = pos_y + (mySize_y - newSize_y) / 2;
//
void HUD_Chat(void)
{
- if(!autocvar_hud_chat && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_chat && !autocvar__hud_configure)
{
cvar_set("con_chatrect", "0");
return;
float frametimeavg2; // 2 frames ago
void HUD_EngineInfo(void)
{
- if(!autocvar_hud_engineinfo && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_engineinfo && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_ENGINEINFO;
mySize -= '2 2 0' * panel_bg_padding;
}
- if(cvar("hud_engineinfo_framecounter_exponentialmovingaverage"))
+ if(cvar("hud_panel_engineinfo_framecounter_exponentialmovingaverage"))
{
frametimeavg = (frametimeavg + frametimeavg1 + frametimeavg2 + frametime)/4; // average three frametimes into framecounter for slightly more stable fps readings :P
frametimeavg2 = frametimeavg1;
frametimeavg1 = frametimeavg;
float weight;
- weight = cvar("hud_engineinfo_framecounter_exponentialmovingaverage_new_weight");
+ weight = cvar("hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight");
if(frametime > 0.0001) // filter out insane values which sometimes seem to occur and throw off the average? If you are getting 10,000 fps or more, then you don't need a framerate counter.
{
- if(fabs(prevfps - (1/frametimeavg)) > prevfps * cvar("hud_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold")) // if there was a big jump in fps, just force prevfps at current (1/frametime) to make big updates instant
+ if(fabs(prevfps - (1/frametimeavg)) > prevfps * cvar("hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold")) // if there was a big jump in fps, just force prevfps at current (1/frametime) to make big updates instant
prevfps = (1/frametime);
prevfps = (1 - weight) * prevfps + weight * (1/frametimeavg); // framecounter just used so there's no need for a new variable, think of it as "frametime average"
}
else
{
framecounter += 1;
- if(time - prevfps_time > cvar("hud_engineinfo_framecounter_time"))
+ if(time - prevfps_time > cvar("hud_panel_engineinfo_framecounter_time"))
{
- prevfps = framecounter/cvar("hud_engineinfo_framecounter_time");
+ prevfps = framecounter/cvar("hud_panel_engineinfo_framecounter_time");
framecounter = 0;
prevfps_time = time;
}
vector color;
color = HUD_Get_Num_Color (prevfps, 100);
drawfont = hud_bigfont;
- drawstring_aspect(pos, strcat("FPS: ", ftos_decimals(prevfps, cvar("hud_engineinfo_framecounter_decimals"))), mySize, color, panel_fg_alpha, DRAWFLAG_NORMAL);
+ drawstring_aspect(pos, strcat("FPS: ", ftos_decimals(prevfps, cvar("hud_panel_engineinfo_framecounter_decimals"))), mySize, color, panel_fg_alpha, DRAWFLAG_NORMAL);
drawfont = hud_font;
}
//
void HUD_InfoMessages(void)
{
- if(!autocvar_hud_infomessages && !autocvar__hud_configure)
+ if(!autocvar_hud_panel_infomessages && !autocvar__hud_configure)
return;
active_panel = HUD_PANEL_INFOMESSAGES;
s = strcat("^1Press ^3", getcommandkey("primary fire", "+attack"), "^1 to spectate");
else
s = strcat("^1Press ^3", getcommandkey("primary fire", "+attack"), "^1 for another player");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
s = strcat("^1Use ^3", getcommandkey("next weapon", "weapnext"), "^1 or ^3", getcommandkey("previous weapon", "weapprev"), "^1 to change the speed");
else
s = strcat("^1Press ^3", getcommandkey("secondary fire", "+attack2"), "^1 to observe");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
s = strcat("^1Press ^3", getcommandkey("server info", "+show_info"), "^1 for gamemode info");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
}
else
s = strcat("^1Press ^3", getcommandkey("jump", "+jump"), "^1 to join");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
if(warmup_stage && !intermission)
{
s = "^2Currently in ^1warmup^2 stage!";
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
else
s = strcat("^2Waiting for others to ready up...");
}
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
else if(warmup_stage && !intermission && !spectatee_status)
{
s = strcat("^2Press ^3", getcommandkey("ready", "ready"), "^2 to end warmup");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
if (tm.team_size == ts_max)
s = strcat(s, " Press ^3", getcommandkey("team menu", "menu_showteamselect"), blinkcolor, " to adjust");
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
else
{
s = "^7Press ^3ESC ^7to show HUD options.";
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
s = "^3Doubleclick ^7a panel for panel-specific options.";
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
s = "^3CTRL ^7to disable collision testing, ^3SHIFT ^7and";
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
s = "^3ALT ^7+ ^3ARROW KEYS ^7for fine adjustments.";
- if(autocvar_hud_infomessages_flip)
+ if(autocvar_hud_panel_infomessages_flip)
o_x = pos_x + mySize_x - stringwidth(s, TRUE, fontsize);
drawcolorcodedstring(o, s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
o += eY * fontsize_y;
// Update all common cvars of given panel name
#define HUD_Panel_UpdateCvars(name) \
-panel_enabled = autocvar_hud_##name; \
-panel_pos = autocvar_hud_##name##_pos; \
-panel_size = autocvar_hud_##name##_size; \
-panel_bg_str = autocvar_hud_##name##_bg; \
-panel_bg_color_str = autocvar_hud_##name##_bg_color; \
-panel_bg_color_team_str = autocvar_hud_##name##_bg_color_team; \
-panel_bg_alpha_str = autocvar_hud_##name##_bg_alpha; \
-panel_bg_border_str = autocvar_hud_##name##_bg_border; \
-panel_bg_padding_str = autocvar_hud_##name##_bg_padding; \
+panel_enabled = autocvar_hud_panel_##name; \
+panel_pos = autocvar_hud_panel_##name##_pos; \
+panel_size = autocvar_hud_panel_##name##_size; \
+panel_bg_str = autocvar_hud_panel_##name##_bg; \
+panel_bg_color_str = autocvar_hud_panel_##name##_bg_color; \
+panel_bg_color_team_str = autocvar_hud_panel_##name##_bg_color_team; \
+panel_bg_alpha_str = autocvar_hud_panel_##name##_bg_alpha; \
+panel_bg_border_str = autocvar_hud_panel_##name##_bg_border; \
+panel_bg_padding_str = autocvar_hud_panel_##name##_bg_padding; \
HUD_Panel_StringVars()\
if(disable_menu_alphacheck == 2 && active_panel == highlightedPanel) {\
HUD_Panel_GetMenuSize()\
#define HUD_Panel_UpdateCvarsForId(id) \
switch(id) { \
case HUD_PANEL_WEAPONS: HUD_Panel_UpdateCvars(weapons) break; \
- case HUD_PANEL_INVENTORY: HUD_Panel_UpdateCvars(inventory) break; \
+ case HUD_PANEL_AMMO: HUD_Panel_UpdateCvars(ammo) break; \
case HUD_PANEL_POWERUPS: HUD_Panel_UpdateCvars(powerups) break; \
case HUD_PANEL_HEALTHARMOR: HUD_Panel_UpdateCvars(healtharmor) break; \
case HUD_PANEL_NOTIFY: HUD_Panel_UpdateCvars(notify) break; \
}
#define HUD_Panel_UpdatePosSize(name) \
-panel_pos = autocvar_hud_##name##_pos; \
-panel_size = autocvar_hud_##name##_size; \
+panel_pos = autocvar_hud_panel_##name##_pos; \
+panel_size = autocvar_hud_panel_##name##_size; \
HUD_Panel_GetScaledVectors()\
if(disable_menu_alphacheck == 2 && active_panel == highlightedPanel) {\
HUD_Panel_GetMenuSize()\
HUD_Panel_GetMenuPos()\
}\
-panel_bg_border_str = autocvar_hud_##name##_bg_border; \
+panel_bg_border_str = autocvar_hud_panel_##name##_bg_border; \
HUD_Panel_GetBorder()
// Update pos and size of given panel id
#define HUD_Panel_UpdatePosSizeForId(id) \
switch(id) { \
case HUD_PANEL_WEAPONS: HUD_Panel_UpdatePosSize(weapons) break;\
- case HUD_PANEL_INVENTORY: HUD_Panel_UpdatePosSize(inventory) break;\
+ case HUD_PANEL_AMMO: HUD_Panel_UpdatePosSize(ammo) break;\
case HUD_PANEL_POWERUPS: HUD_Panel_UpdatePosSize(powerups) break;\
case HUD_PANEL_HEALTHARMOR: HUD_Panel_UpdatePosSize(healtharmor) break;\
case HUD_PANEL_NOTIFY: HUD_Panel_UpdatePosSize(notify) break;\
rgb_x = 0;
rgb_y = 1;
}
- else if(weapon_stats > autocvar_hud_weaponicons_accuracy_yellow) {
- rgb_x = 1 - (weapon_stats-autocvar_hud_weaponicons_accuracy_yellow)/(100-autocvar_hud_weaponicons_accuracy_yellow); // red value between 1 -> 0
+ else if(weapon_stats > autocvar_hud_panel_weapons_accuracy_yellow) {
+ rgb_x = 1 - (weapon_stats-autocvar_hud_panel_weapons_accuracy_yellow)/(100-autocvar_hud_panel_weapons_accuracy_yellow); // red value between 1 -> 0
rgb_y = 1;
} else {
rgb_x = 1;
- rgb_y = weapon_stats/autocvar_hud_weaponicons_accuracy_yellow; // green value between 0 -> 1
+ rgb_y = weapon_stats/autocvar_hud_panel_weapons_accuracy_yellow; // green value between 0 -> 1
}
rgb_z = 0;
drawstring(pos + '1 0 0' * padding + '0 1 0' * height * (2/3), s, '1 1 0' * fontsize, rgb, scoreboard_alpha_fg, DRAWFLAG_NORMAL);
vector teamradar_size2d; // 2D size
vector teamradar_extraclip_mins, teamradar_extraclip_maxs; // for non-centered radar display
float teamradar_size; // 2D scale factor
-float hud_radar_scale; // window size = ...qu
-float hud_radar_nohudhack;
+float hud_panel_radar_scale; // window size = ...qu
+float hud_panel_radar_nohudhack;
float v_flipped;
float vlen2d(vector v)
R_EndPolygon();
}
-float hud_radar_scale;
-float hud_radar_background_alpha;
-float hud_radar_foreground_alpha;
-float hud_radar_rotation;
-vector hud_radar_size;
-vector hud_radar_position;
-float hud_radar_zoommode;
+float hud_panel_radar_scale;
+float hud_panel_radar_background_alpha;
+float hud_panel_radar_foreground_alpha;
+float hud_panel_radar_rotation;
+vector hud_panel_radar_size;
+vector hud_panel_radar_position;
+float hud_panel_radar_zoommode;
void teamradar_loadcvars()
{
v_flipped = cvar("v_flipped");
- hud_radar_scale = cvar("hud_radar_scale");
- hud_radar_background_alpha = cvar("hud_radar_background_alpha") * hud_fg_alpha;
- hud_radar_foreground_alpha = cvar("hud_radar_foreground_alpha") * hud_fg_alpha;
- hud_radar_rotation = cvar("hud_radar_rotation");
- hud_radar_zoommode = cvar("hud_radar_zoommode");
+ hud_panel_radar_scale = cvar("hud_panel_radar_scale");
+ hud_panel_radar_background_alpha = cvar("hud_panel_radar_background_alpha") * hud_fg_alpha;
+ hud_panel_radar_foreground_alpha = cvar("hud_panel_radar_foreground_alpha") * hud_fg_alpha;
+ hud_panel_radar_rotation = cvar("hud_panel_radar_rotation");
+ hud_panel_radar_zoommode = cvar("hud_panel_radar_zoommode");
// others default to 0
// match this to defaultXonotic.cfg!
- if(!hud_radar_scale) hud_radar_scale = 4096;
- if(!hud_radar_background_alpha) hud_radar_background_alpha = 0.4 * hud_fg_alpha;
- if(!hud_radar_foreground_alpha) hud_radar_foreground_alpha = 0.8 * hud_fg_alpha;
- if(!hud_radar_size_x) hud_radar_size_x = 128;
- if(!hud_radar_size_y) hud_radar_size_y = hud_radar_size_x;
-
- hud_radar_size_z = 0;
- hud_radar_nohudhack = hud_radar_position_z;
- hud_radar_position_z = 0;
+ if(!hud_panel_radar_scale) hud_panel_radar_scale = 4096;
+ if(!hud_panel_radar_background_alpha) hud_panel_radar_background_alpha = 0.4 * hud_fg_alpha;
+ if(!hud_panel_radar_foreground_alpha) hud_panel_radar_foreground_alpha = 0.8 * hud_fg_alpha;
+ if(!hud_panel_radar_size_x) hud_panel_radar_size_x = 128;
+ if(!hud_panel_radar_size_y) hud_panel_radar_size_y = hud_panel_radar_size_x;
+
+ hud_panel_radar_size_z = 0;
+ hud_panel_radar_nohudhack = hud_panel_radar_position_z;
+ hud_panel_radar_position_z = 0;
}
// radar links