diff --git a/README.md b/README.md index f0eb55e..ed79fbb 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,50 @@ # biscottiHUD -v. 1.51 +v. 1.52 This is my custom HUD for Team Fortress 2 (TF2). -I'd appreciate if you'd credit me for the HUD if you use it for pseudo-commercial uses like YouTube or Twitch. -As of right now, I don't have all the resource files included in this release, only the ones I've changed. Let me know if I should include all the files. That would make it easier to customize but much harder to update as more files have potentiel changes made and then you need to update them for no real reason as they weren't supposed to be changed anyway. +I'd appreciate if you'd credit me for the HUD if you use it for pseudo-commercial uses like YouTube or Twitch. -# IMPORTANT! Minmode +**Table of Contents** +* [Compatibility](#compatibility) +* [IMPORTANT! Minmode](#important-minmode) +* [Installation](#installation) +* [Customization](#customization) +* [Incognito](#incognito) +* [Close Captions](#close-captions) +* [Credits](#credits) + +# [^](#top "Back to Top")Compatibility +| Operating System | Compatible? | +|:----------------:|:-----------:| +| Windows | Yes! | +| Mac | Probably not. | +| Linux | No idea. | + +| Resolution | Compatible? | +|:----------:|:-----------:| +| 16:10 | Yes! | +| 16:9 | Yes! | +| 5:4 | Maybe?.. | +| 4:3 | Yes! | + +By compatible I mean that they work, not necessarily that it follows the design philosophy of the HUD. But at least there's nothing clipping out of the side of the screen. + +# [^](#top "Back to Top")IMPORTANT! Minmode This HUD is a **minmode HUD**, meaning I designed it around using minmode (**cl_hud_minmode 1**). But it also has a **non-minmode** version for people who like the HP and ammo to be higher up and closer to the centre. I personally don't like this and thus designed it in minmode. -To change between them use **cl_hud_minmode 0/1** where 1 is minmode, and 0 is non-minmode. -All the screenshots on huds.tf are in minmode (cl_hud_minmode 1). +To change between them use `cl_hud_minmode 0/1` where 1 is minmode, and 0 is non-minmode. +All the screenshots on huds.tf are in minmode (`cl_hud_minmode 1`). -#Installation +# [^](#top "Back to Top")Installation Click the button that says **Download ZIP**. -Then extract it to your **/tf/custom/** folder so that inside your custom folder there is a folder called **biscottiHUD**. +Then extract it to your `/tf/custom/` folder so that inside your custom folder there is a folder called **biscottiHUD**. -#Customization -If you want to re-enable the HP cross when overhealed or low on health, navigate to **/resource/ui/hudplayerhealth.res** and remove the **NULL** at the end of the **HealthBonusImage** (the **"fieldName"**). +# [^](#top "Back to Top")Customization +If you want to re-enable the HP cross when overhealed or low on health, navigate to `/resource/ui/hudplayerhealth.res` and remove the `NULL` at the end of the `HealthBonusImage` (the `"fieldName"`). -Inside **/scripts/hudanimations_tf.txt** will also find the animations for things like being **overhealed** or **low on health and ammo**. +Inside `/scripts/hudanimations_tf.txt` will also find the animations for things like being **overhealed** or **low on health and ammo**. There you can disable the **box being coloured** when in different states of health (i.e. overhealed). You can also re-enable the shaded image that pops up on screen when disguising or picking of the intelligence. @@ -28,24 +52,36 @@ This is done by uncommenting the respective lines at the top of the file. This HUD includes **multiple scoreboards** with tweaked sizes for **24**, **32**, **18**, and **12** man servers. (**Normal**, **32 man**, **Highlander**, and **6's**). -To change the scoreboard, copy the contents of the one you want to use into the one just named **scoreboard.res**. - -I've included multiple copies of the **Main Menu** located in the **customization** folder. Three with custom design by me, and a pretty background, of which one includes a separate **full button** with text for **Training**, the second uses an **icon** as a button for **Training**, and the third has the buttons lowered slightly. +To change the scoreboard, copy the contents of the one you want to use into the one just named `scoreboard.res`. -Lastly, there's one menu that's a copy of the **stock** menu but with two extra buttons added. Of course, these extra buttons are in all the menus. +I've included multiple copies of the **Main Menu** located in the **customization** folder. One with a **custom** design by me, and one with the **stock** design but with two extra buttons added. -To change the menu, copy the one you want from the **customization** folder into **resource/ui/**. Note that the **customization** folder has those folders in it. +To change the menu, copy the one you want from the **customization** folder into `/resource/ui/`. Note that the **customization** folder has those folders in it. -I've also included a **chat** file that uses a **bigger font**, and a set of **scoreboards** that have a **bigger topbar**. There is also a version of the **winpanels** that use a **smaller font** for the team score. +I've also included a **chat** file that uses a **bigger font**. There is also a version of the **winpanels** that use a **bigger font** for the team score. To change those, use the same procedure as when described above. -If you want to make the font of the buttons different in the main menu, use a text editor like **notepad++** and replace **HudFontMediumBold** with **something else** in **resource/ui/mainmenuoverride.res**. +If you want to make the font of the buttons different in the main menu, use a text editor like **notepad++** and replace `HudFontMediumBold` with **something else** in `/resource/ui/mainmenuoverride.res` -#Incognito +# [^](#top "Back to Top")Incognito I've made an **incognito** mode designed for streamers that disables all names on the HUD. To enable it, copy the contents of the **incognito** folder into the parent folder (so that the folders match up). To disable it again, copy the contents of **incognito_revert** into the parent folder to overwrite the incognito ones. Note that I think custom weapon names still show up. -#Credits +# [^](#top "Back to Top")Close Captions +The Close Captions were created by **Clovervidia** and edited by me. +To enable them, put this in your `autoexec.cfg` + +``` +closecaption 1 +cc_subtitles 1 +cc_lang biscotti +``` + +If you want more thorough captions set `cc_subtitles 0`. + +[Here](https://steamcommunity.com/sharedfiles/filedetails/?id=167785751 "Clovervidia's Guide to CC") is a guide by **Clovervidia** that explains CC and how to use it. + +# [^](#top "Back to Top")Credits This is HUD is greatly inspired by **BroeselHUD**, **e.v.e HUD**, and **7HUD**. Thank you to all those people for making awesome HUDs and for making the code so readily available so that we all can learn how to realize our own ideas. @@ -56,4 +92,8 @@ I took the RED and BLU buttons on the loadout screen from Ray (I think). The main menu was inspired by WhiskerBiscuit's **budhud**. As was the concept of incognito to hide player names, but was of course implemented manually by me. +The Close Captions were created by **Clovervidia** and edited by me. + +A lot of README formatting inspired by Omni. + **Hope you enjoy!** diff --git a/biscottiHUD/incognito/scripts/hudlayout.res b/biscottiHUD/incognito/scripts/hudlayout.res index 6aa602b..f112e2d 100644 --- a/biscottiHUD/incognito/scripts/hudlayout.res +++ b/biscottiHUD/incognito/scripts/hudlayout.res @@ -613,7 +613,7 @@ "tall" "136" [$WIN32] "tall" "176" [$X360] - "BgAlpha" "128" + "BgAlpha" "64" // 128 "GrowTime" "0.25" "ItemHiddenTime" "0.2" // Nearly same as grow time so that the item doesn't start to show until growth is finished diff --git a/biscottiHUD/incognito_revert/scripts/hudlayout.res b/biscottiHUD/incognito_revert/scripts/hudlayout.res index de61676..10d457b 100644 --- a/biscottiHUD/incognito_revert/scripts/hudlayout.res +++ b/biscottiHUD/incognito_revert/scripts/hudlayout.res @@ -613,7 +613,7 @@ "tall" "136" [$WIN32] "tall" "176" [$X360] - "BgAlpha" "128" + "BgAlpha" "64" // 128 "GrowTime" "0.25" "ItemHiddenTime" "0.2" // Nearly same as grow time so that the item doesn't start to show until growth is finished diff --git a/biscottiHUD/resource/clientscheme.res b/biscottiHUD/resource/clientscheme.res index 36b4ea7..37bcda4 100644 --- a/biscottiHUD/resource/clientscheme.res +++ b/biscottiHUD/resource/clientscheme.res @@ -1758,57 +1758,62 @@ Scheme { "1" { - "name" "Tahoma" + "name" "TF2 Secondary" // Tahoma "tall" "24" "tall_hidef" "32" "weight" "500" "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "antialias" "1" } } "CloseCaption_Italic" { "1" { - "name" "Tahoma" + "name" "TF2 Secondary" // Tahoma "tall" "24" "tall_hidef" "32" "weight" "500" "italic" "1" "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "antialias" "1" } } "CloseCaption_Bold" { "1" { - "name" "Tahoma" + "name" "TF2 Secondary" // Tahoma "tall" "24" "tall_hidef" "32" "weight" "900" "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "antialias" "1" } } "CloseCaption_BoldItalic" { "1" { - "name" "Tahoma" + "name" "TF2 Secondary" // Tahoma "tall" "24" "tall_hidef" "32" "weight" "900" "italic" "1" "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "antialias" "1" } } "CloseCaption_Small" { "1" { - "name" "Tahoma" + "name" "TF2 Secondary" // Tahoma "tall" "16" "tall_hidef" "24" "weight" "900" "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "antialias" "1" } } diff --git a/biscottiHUD/resource/closecaption_biscotti.dat b/biscottiHUD/resource/closecaption_biscotti.dat new file mode 100644 index 0000000..528d4f3 Binary files /dev/null and b/biscottiHUD/resource/closecaption_biscotti.dat differ diff --git a/biscottiHUD/resource/closecaption_biscotti.txt b/biscottiHUD/resource/closecaption_biscotti.txt new file mode 100644 index 0000000..44600c6 Binary files /dev/null and b/biscottiHUD/resource/closecaption_biscotti.txt differ diff --git a/biscottiHUD/resource/gamemenu.res b/biscottiHUD/resource/gamemenu.res index f0b03ee..61e750d 100644 --- a/biscottiHUD/resource/gamemenu.res +++ b/biscottiHUD/resource/gamemenu.res @@ -2,7 +2,7 @@ { "Version" { - "label" "biscottiHUD v. 1.51" + "label" "biscottiHUD v. 1.52" "command" "engine showconsole echo .............................................................................................................. echo .............................................................................................................. @@ -15,7 +15,8 @@ echo ...................................... Thank you for using biscottiHUD! ...................................... echo ......................................... Made by Medico di Biscotti ......................................... echo ............................................ huds.tf/biscottihud ............................................. - echo .................................. github.com/MedicodiBiscotti/biscottiHUD ..................................." + echo .................................. github.com/MedicodiBiscotti/biscottiHUD ................................... + echo .................... Close Captions created by Clovervidia. Edited by Medico di Biscotti ....................." } "TopLeftDataPanel" diff --git a/biscottiHUD/resource/ui/hudpasstimeballstatus.res b/biscottiHUD/resource/ui/hudpasstimeballstatus.res index 6a095d6..b88a555 100644 --- a/biscottiHUD/resource/ui/hudpasstimeballstatus.res +++ b/biscottiHUD/resource/ui/hudpasstimeballstatus.res @@ -257,8 +257,8 @@ "xpos" "0" "ypos" "0" "zpos" "10" - "wide" "42" - "tall" "42" + "wide" "32" + "tall" "32" "autoResize" "0" "pinCorner" "0" "visible" "1" @@ -296,7 +296,7 @@ "enabled" "1" "zpos" "-400" "xpos" "0" - "ypos" "0" + "ypos" "-6" "wide" "150" "tall" "16" "textAlignment" "center" diff --git a/biscottiHUD/resource/ui/hudpasstimepassnotify.res b/biscottiHUD/resource/ui/hudpasstimepassnotify.res new file mode 100644 index 0000000..9a7ef28 --- /dev/null +++ b/biscottiHUD/resource/ui/hudpasstimepassnotify.res @@ -0,0 +1,151 @@ +// enum PinCorner_e +// { +// PIN_TOPLEFT = 0, +// PIN_TOPRIGHT, +// PIN_BOTTOMLEFT, +// PIN_BOTTOMRIGHT, + +// // For sibling pinning +// PIN_CENTER_TOP, +// PIN_CENTER_RIGHT, +// PIN_CENTER_BOTTOM, +// PIN_CENTER_LEFT, +// }; + +Resource/UI/HudPasstimePassNotify.res +{ + HudPasstimePassNotify + { + ControlName EditablePanel + fieldName HudPasstimePassNotify + xpos 0 + ypos 0 + zpos 0 + wide f0 + tall 480 + visible 1 + enabled 1 + } + + TextBox + { + ControlName EditablePanel + fieldName TextBox + xpos c-100 + ypos c-160 + zpos 1 + wide 200 + tall 40 + visible 1 + enabled 1 + border TFFatLineBorder + RoundedCorners 255 + + TextInPassRange + { + ControlName CExLabel + fieldName TextInPassRange + font HudFontMediumSmallBold + xpos 0 + ypos 0 + zpos 3 + wide 200 + tall 24 + visible 1 + enabled 1 + centerwrap 1 + textAlignment center + labelText #Msg_PasstimeInPassRange + fgcolor_override "224 217 197 180" + } + + TextLockedOn + { + ControlName CExLabel + fieldName TextLockedOn + font HudFontMediumSmallBold + xpos 0 + ypos 0 + zpos 3 + wide 200 + tall 24 + visible 1 + enabled 1 + centerwrap 1 + textAlignment center + labelText #Msg_PasstimeLockedOn + fgcolor_override "224 217 197 180" + } + + TextPassIncoming + { + ControlName CExLabel + fieldName TextPassIncoming + font HudFontMediumSmallBold + xpos 0 + ypos 0 + zpos 3 + wide 200 + tall 24 + visible 1 + enabled 1 + centerwrap 1 + textAlignment center + labelText #Msg_PasstimePassIncoming + fgcolor_override "224 217 197 180" + } + + TextPlayerName + { + ControlName CExLabel + fieldName TextPlayerName + font HudFontSmall + xpos 0 + ypos 22 + zpos 3 + wide 200 + tall 16 + visible 1 + enabled 1 + textAlignment center + labelText "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" + fgcolor_override "224 217 197 180" + } + } + + PassLockIndicator + { + ControlName ImagePanel + fieldName PassLockIndicator + xpos 8 + ypos 0 + wide 38 + zpos 3 + tall 38 + visible 1 + enabled 1 + scaleImage 1 + image "../passtime/hud/passtime_ball_reticle_incomingpass" + pin_to_sibling TextBox + pin_corner_to_sibling 0 + pin_to_sibling_corner 1 + } + + SpeechIndicator + { + ControlName ImagePanel + fieldName SpeechIndicator + xpos 8 + ypos 0 + zpos 3 + wide 38 + tall 38 + visible 1 + enabled 1 + scaleImage 1 + image "../passtime/hud/passtime_pass_to_me_prompt" + pin_to_sibling TextBox + pin_corner_to_sibling 1 + pin_to_sibling_corner 0 + } +} diff --git a/biscottiHUD/scripts/hudlayout.res b/biscottiHUD/scripts/hudlayout.res index de61676..10d457b 100644 --- a/biscottiHUD/scripts/hudlayout.res +++ b/biscottiHUD/scripts/hudlayout.res @@ -613,7 +613,7 @@ "tall" "136" [$WIN32] "tall" "176" [$X360] - "BgAlpha" "128" + "BgAlpha" "64" // 128 "GrowTime" "0.25" "ItemHiddenTime" "0.2" // Nearly same as grow time so that the item doesn't start to show until growth is finished