Advertisement
aveyo

dota2_v7_spectator_annoyances - outdated!

Apr 24th, 2017
4,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.06 KB | None | 0 0
  1. diff --git a/game/dota/pak01_dir/panorama/layout/hud/dota_hud_spectator_dvr.xml b/game/dota/pak01_dir/panorama/layout/hud/dota_hud_spectator_dvr.xml
  2. index 3c6442d..62ce53e 100644
  3. --- a/game/dota/pak01_dir/panorama/layout/hud/dota_hud_spectator_dvr.xml
  4. +++ b/game/dota/pak01_dir/panorama/layout/hud/dota_hud_spectator_dvr.xml
  5. (4,4):          <include src="s2r://panorama/styles/hudstyles.vcss_c" />
  6. (5,5):          <include src="s2r://panorama/styles/hud/dota_hud_spectator_dvr.vcss_c" />
  7. (6,6):  </styles>
  8. +7:+<!-- AveYo [ -->
  9. +8:+  <script>
  10. +9:+            function AveyoTheAbsoluteMadman(){
  11. +10:+                   $.DispatchEventAsync(0.0, 'ToggleVisibility');
  12. +11:+                   var dvrpanel = $.GetContextPanel();
  13. +12:+                   var centerpanel = $.GetContextPanel().GetParent().FindChildTraverse("center_with_stats");
  14. +13:+                   if (centerpanel) centerpanel.SetHasClass( "WithDVR", !dvrpanel.BHasClass("ForceVisible") );
  15. +14:+           }
  16. +15:+   </script>
  17. +16:+<!-- AveYo ] -->
  18. (7,17):         <DOTASpectatorDVR hittest="false">
  19. (8,18):                 <Panel id="DVRControls" hittest="true">
  20. (9,19):                         <Panel id="TimeDisplay">
  21. (20,30):                        <Button id="SkipBackButton" />
  22. (21,31):                        <Button id="PlayButton" />
  23. (22,32):                </Panel>
  24. -23:-
  25. -24:-           <Button id="ExpandButton" onactivate="ToggleVisibility()" hittest="true">
  26. +33:+<!-- AveYo [ -->
  27. +34:+<!--               <Button id="ExpandButton" onactivate="ToggleVisibility()" hittest="true"> -->
  28. +35:+           <Button id="ExpandButton" onactivate="AveyoTheAbsoluteMadman();" hittest="true">
  29. +36:+<!-- AveYo ] -->
  30. (25,37):                        <Panel id="ExpandButtonIcon"/>
  31. (26,38):                </Button>
  32. (27,39):        </DOTASpectatorDVR>
  33.  
  34.  
  35. diff --git a/game/dota/pak01_dir/panorama/scripts/hud/dota_hud_pregame.js b/game/dota/pak01_dir/panorama/scripts/hud/dota_hud_pregame.js
  36. index c3b46f8..c9fbcf1 100644
  37. --- a/game/dota/pak01_dir/panorama/scripts/hud/dota_hud_pregame.js
  38. +++ b/game/dota/pak01_dir/panorama/scripts/hud/dota_hud_pregame.js
  39. (97,97):     $.Schedule( mapLoadingOutroDuration, function () {
  40. (98,98):         $.GetContextPanel().MapLoadingOutroFinished();
  41. (99,99):     } );
  42. +100:+
  43. +101:+//// AveYo [
  44. +102:+    preGame.GetParent().FindChild("spectator_dvr").SetHasClass( "ForceVisible", false );
  45. +103:+    $.DispatchEventAsync(0.0, 'DOTASetSpectatorOptionsVisible', false );
  46. +104:+//// AveYo ]
  47. +105:+
  48. (100,106): }
  49.  
  50.  
  51. diff --git a/game/dota/pak01_dir/panorama/styles/hud/hud_reborn.css b/game/dota/pak01_dir/panorama/styles/hud/hud_reborn.css
  52. index 12a258f..47abe8b 100644
  53. --- a/game/dota/pak01_dir/panorama/styles/hud/hud_reborn.css
  54. +++ b/game/dota/pak01_dir/panorama/styles/hud/hud_reborn.css
  55. (83,83):        transition-timing-function: ease-in-out;
  56. (84,84): }
  57. (85,85):
  58. +86:+//// AveYo [
  59. +87:+.WithDVR
  60. +88:+{
  61. +89:+   margin-bottom: 54px;
  62. +90:+}
  63. +91:+//// AveYo ]
  64. +92:+
  65. (86,93): DOTAHud.IsBeforeGameplay #lower_hud,
  66. (87,94): DOTAHud.IsBeforeGameplay #minimap_container
  67. (88,95): {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement