HUD: Added Team name next to Role name#1726
Conversation
I've noticed this as well. Quite a few YouTubers that played TTT2 for hours, did never notice any of the icons. Peter from PietSmiet was once confused what the red knife next to the corpse of a dead traitor means. I was taken aback, because this icon is shown as a team and role icon, ALL THE TIME. I'm conflicted if we should make it more prominent like you did, or just find a way to teach players to use the UI. Regarding your implementation: You have to support translations |
gamemodes/terrortown/gamemode/shared/hud_elements/tttinfopanel/pure_skin_playerinfo.lua
Outdated
Show resolved
Hide resolved
|
Regarding the translations, will Google Translate do? Or is there a better resource to use, since I only speak English? |
Sorry, I was unclear. The team name should be translated. That is already a feature in TTT2. just use |
|
This is better, but the default team is probably not the best. You should probably get the team of the player (e.g. if you're a sidekick, your team won't be the default team). |
|
Good catch, I did not think about roles like that! |
|
Just a hint: we use spaces to indent. And if you install stylua in VSCode it autoformats the file for you |
|
Haha I think I got it now thank you! I am used to tabs and I use notepad++ so it was a little confusing figuring out what was wrong |
Hello! I have encountered a problem on my friends server where if we have many roles installed, some players who join will not know what every single role is, and they will become confused, especially with what team they are supposed to play on. This new change will allow players to see what team they are on, immediately next to their role name. I know there is a team ICON next to the time remaining in the match on the top of the screen, but our players either never even noticed it, or did not know what it meant. I have included a toggle in the F1 menu, under HUD Switcher so that players who feel like they don't need to see the team can turn it off and enjoy the game their way. If you guys have any changes to be made I would love to hear it, I think this change will help new player retention! Here are some previews of how it will look, including the F1 menu and an example with a long role name!    --------- Co-authored-by: Tim Goll <github@timgoll.de>
|
I encountered an issue with new players on the server where a setting is enabled by default, but it isn't actually active. We need to disable it and then re-enable it for it to work properly. |
|
That's weird. This setting should be disabled by default |

Hello!
I have encountered a problem on my friends server where if we have many roles installed, some players who join will not know what every single role is, and they will become confused, especially with what team they are supposed to play on.
This new change will allow players to see what team they are on, immediately next to their role name. I know there is a team ICON next to the time remaining in the match on the top of the screen, but our players either never even noticed it, or did not know what it meant.
I have included a toggle in the F1 menu, under HUD Switcher so that players who feel like they don't need to see the team can turn it off and enjoy the game their way.
If you guys have any changes to be made I would love to hear it, I think this change will help new player retention!
Here are some previews of how it will look, including the F1 menu and an example with a long role name!


