Skip to content

Commit

Permalink
1.52 [Captions]
Browse files Browse the repository at this point in the history
So I added my captions to the HUD and make things slightly nicer
looking.
Pass-time is better now.
The README got an overhaul as well.
  • Loading branch information
MedicodiBiscotti committed Dec 28, 2015
1 parent 0adf35e commit 36631f4
Show file tree
Hide file tree
Showing 10 changed files with 230 additions and 33 deletions.
80 changes: 60 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,87 @@
# 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.
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.

Expand All @@ -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!**
2 changes: 1 addition & 1 deletion biscottiHUD/incognito/scripts/hudlayout.res
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion biscottiHUD/incognito_revert/scripts/hudlayout.res
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions biscottiHUD/resource/clientscheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
Binary file added biscottiHUD/resource/closecaption_biscotti.dat
Binary file not shown.
Binary file added biscottiHUD/resource/closecaption_biscotti.txt
Binary file not shown.
5 changes: 3 additions & 2 deletions biscottiHUD/resource/gamemenu.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Version"
{
"label" "biscottiHUD v. 1.51"
"label" "biscottiHUD v. 1.52"
"command" "engine showconsole
echo ..............................................................................................................
echo ..............................................................................................................
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions biscottiHUD/resource/ui/hudpasstimeballstatus.res
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@
"xpos" "0"
"ypos" "0"
"zpos" "10"
"wide" "42"
"tall" "42"
"wide" "32"
"tall" "32"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
Expand Down Expand Up @@ -296,7 +296,7 @@
"enabled" "1"
"zpos" "-400"
"xpos" "0"
"ypos" "0"
"ypos" "-6"
"wide" "150"
"tall" "16"
"textAlignment" "center"
Expand Down
151 changes: 151 additions & 0 deletions biscottiHUD/resource/ui/hudpasstimepassnotify.res
Original file line number Diff line number Diff line change
@@ -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
}
}
Loading

0 comments on commit 36631f4

Please sign in to comment.