Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This script allows you to turn on/off the user interface.
- // There are four modes:
- // - Disable the replay overlay UI
- // - Disable most of the UI except minimap and healthbars
- // - Disable all of the UI
- // - Enable the full UI
- // Disabling portrait requires sv_cheats 1 (replays and local lobbies only).
- // Thanks to cyborgmatt for the initial version.
- bind F6 toggle_ui
- // Primary aliases
- // Set your screen resolution to properly restore the HUD
- //ui_restore_screen ui_restore_screen_1920x1080
- alias ui_restore_screen ui_restore_screen_1920x1200
- // Switch between disabling replay UI, disabling most UI,
- // disabling all UI, and enabling all UI.
- alias toggle_ui ui_noreplay
- // Disable the replay UI. Only useful in a replay or DotaTV
- alias ui_noreplay "echo Disabling replay UI; ui_disable_overlays; ui_disable_replay; alias toggle_ui ui_some"
- // Disable all of the except the the hero portrait
- alias ui_some "echo Disabling some UI; ui_expand_screen; ui_disable_player; alias toggle_ui ui_none"
- // Disable all of the UI
- alias ui_none "echo Disabling all UI; ui_disable_portrait; alias toggle_ui ui_full"
- // Reenable all of the UI
- alias ui_full "echo Enabling UI; ui_restore_screen; ui_enable_replay; ui_enable_player; ui_enable_portrait; alias toggle_ui ui_noreplay"
- // Component aliases
- // Aliases to disable UI
- alias ui_disable_overlays "developer 0; net_graph 0"
- alias ui_disable_replay "dota_sf_hud_stats_dropdown 0; dota_sf_hud_force_spec -1"
- alias ui_disable_player "dota_sf_hud_actionpanel 0; dota_sf_hud_inventory 0; dota_sf_hud_top 0"
- //alias ui_disable_controls "dota_sf_hud_chat 0; dota_sf_hud_channel_bar 0; dota_hud_healthbars 0"
- //alias ui_disable_portrait "cl_drawhud 0; dota_no_minimap 1"
- alias ui_disable_portrait "dota_draw_portrait 0"
- // Aliases to enable UI
- alias ui_enable_overlays "developer 1; net_graph 1"
- alias ui_enable_replay "dota_sf_hud_stats_dropdown 1; dota_sf_hud_force_spec 0"
- alias ui_enable_player "dota_sf_hud_actionpanel 1; dota_sf_hud_inventory 1; dota_sf_hud_top 1"
- //alias ui_enable_portrait "cl_drawhud 1; dota_no_minimap 0"
- alias ui_enable_portrait "dota_draw_portrait 1"
- // Expands the renderable area of the screen when disabling the UI
- alias ui_expand_screen "dota_render_crop_height 0; dota_render_y_inset 0"
- // Restores the renderable area of the screen when reenabling the UI
- alias ui_restore_screen_1920x1080 "dota_render_crop_height 166; dota_render_y_inset 31"
- alias ui_restore_screen_1920x1200 "dota_render_crop_height 148; dota_render_y_inset 31"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement