HUDS.TF

Hello There, Guest!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TF2 HUD Update for September 27th, 2016 - Casual Rematch
#1
With today's update you are now able to vote for a rematch after finishing your Casual game there needs to be a HUD element to allow you to vote, besides having some new files to modify for that there is also a required XP breakdown animation for the bar that shows up after every ranked/casual game and some small modifications to existing HUD files.

New Files:
resource/ui/matchmakingdashboard.res
resource/ui/matchmakingdashboardpopup.res
resource/ui/xpsourcepanel.res

Modified Files:
resource/clientscheme.res
resource/ui/hudmatchsummary.res
resource/ui/lobbycontainerframe_casual.res
resource/ui/lobbycontainerframe_comp.res
resource/ui/lobbypanel_comp.res
resource/ui/mainmenuoverride.res
resource/ui/matchmakingcategorypanel.res
scripts/hudanimations_tf.txt

Summary of changes
  • Font & Border definitions have been added in clientscheme.res for scoreboard connection status indication, Matchmaking Dashboard & XP Breakdown
  • Animations for the end of round casual/ranked Disconnect button have been removed from hudanimations_tf.txt
  • The XP breakdown has 2 required new animation events (XPSourceShow_Positive & XPSourceShow_Negative) in hudanimations_tf.txt
  • Removal of DisconnectButton from hudmatchsummary.res (which can now be found in matchmakingdashboard.res)
  • xpsourcepanel.res will show a breakdown of lost/gained XP and is positioned with xp_source_notification_center_x in the various lobbycontainerframe_ files for casual & ranked lobby screens
  • mainmenuoverride.res & matchmakingcategorypanel.res have a new stay_armed_on_click state on various buttons to keep them highlighted after clicking
  • End of round rematch vote menu and connection status are shown in matchmakingdashboardpopup.res and positioned with matchmakingdashboard.res along side the Disconnect button

The end of game Rematch Vote UI:
[Image: ZYpSLIy.png]

There should not be too many changes required to keep Team Fortress 2 from crashing when there are HUD modifications, but animation changes by Valve are one of the main causes of crashes, so make sure to update these!

Changes to scripts/hudanimations_tf.txt
Crashes at the end of the match in Casual/Ranked Matchmaking are most likely caused by missing animation events in hudanimations_tf.txt.

If you are a hud developer make sure you migrate your TF2 animations to use hudanimations_manifest.txt by following this guide to guarantee Valve updating/changing animations is not going to cause issues.
Code:
event XPSourceShow_Positive
{
Animate SourceLabel Alpha 0 Linear 0 0
Animate SourceLabelGlow Alpha 0 Linear 0 0

Animate SourceLabel Alpha 255 Linear 0.1 0.3
Animate SourceLabel FgColor "100 255 100 255" Linear 0.1 0
Animate SourceLabel FgColor CreditsGreen Linear 0.5 1
Animate SourceLabel ypos -25 Deaccel 0 3.0
Animate SourceLabel Alpha 0 Linear 2.9 0.3

Animate SourceLabelGlow Alpha 255 Linear 0.0 0.1
Animate SourceLabelGlow FgColor "100 255 100 255" Linear 0.1 0
Animate SourceLabelGlow FgColor CreditsGreen Linear 0.5 1
Animate SourceLabelGlow Alpha 200 Linear 0.5 1
Animate SourceLabelGlow ypos -25 Deaccel 0 3.0
Animate SourceLabelGlow Alpha 0 Linear 2.9 0.3
}

event XPSourceShow_Negative
{
Animate SourceLabel Alpha 0 Linear 0 0
Animate SourceLabelGlow Alpha 0 Linear 0 0

Animate SourceLabel Alpha 255 Linear 0.1 0.3
Animate SourceLabel FgColor "255 100 100 255" Linear 0.1 0
Animate SourceLabel FgColor RedSolid Linear 0.5 1
Animate SourceLabel Alpha 0 Linear 2.9 0.1
Animate SourceLabel ypos -15 Linear 0 0.4

Animate SourceLabelGlow Alpha 0 Linear 0 0
}

Changes to resource/clientscheme.res
When using #base to include the default clientscheme simply updating/extracting to the newest version will result in seeing the fonts for scoreboard connection status, the XP breakdown fonts and the borders for XP breakdown and Rematch vote HUD, otherwise add the following to their respective sections.
Code:
// Fonts
"ScoreboardSmallest"
{
"1"
{
"name" "Verdana"
"tall" "6"
"weight" "400"
"additive" "0"
"antialias" "1"
}
}
"XPSource"
{
"1"
{
"name" "TF2 Build"
"tall" "11"
"weight" "500"
"antialias" "1"
"custom" "1"
}
}

"XPSource_Glow"
{
"1"
{
"name" "TF2 Build"
"tall" "11"
"weight" "500"
"blur" "3"
"additive" "1"
"antialias" "1"
"custom" "1"
}
}

// Borders
OuterShadowBorder
{
"bordertype" "scalable_image"
"backgroundtype" "2"

"image" "outer_shadow_border"
"src_corner_height" "8" // pixels inside the image
"src_corner_width" "8"
"draw_corner_width" "8" // screen size of the corners ( and sides ), proportional
"draw_corner_height" "8"
}

OuterShadowBorderThin
{
"bordertype" "scalable_image"
"backgroundtype" "2"

"image" "outer_shadow_border"
"src_corner_height" "8" // pixels inside the image
"src_corner_width" "8"
"draw_corner_width" "4" // screen size of the corners ( and sides ), proportional
"draw_corner_height" "4"
}
As always with clientscheme.res changes, you'll need to relaunch your game for any modifications to take effect.

Cheers!



Copyright © 2014 - 2017 huds.tf | Site by omnibombulator | Powered by MyBB, © 2002 - 2017 MyBB Group and Steam.