Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ if CLIENT then
slf:SaveData()
end,
}

savingKeys.showTeamName = {
typ = "bool",
desc = "label_hud_show_team_name",
default = true,
OnChange = function(slf, bool)
slf:PerformLayout()
slf:SaveData()
end,
}

return table.Copy(savingKeys)
end
Expand Down Expand Up @@ -195,7 +205,11 @@ if CLIENT then
local round_state = gameloop.GetRoundState()

if cactive then
text = L[rd.name]
if self.showTeamName then
text = L[rd.name] .. " (" .. rd.defaultTeam .. ")"
else
text = L[rd.name]
end
else
if IsValid(tgt) and tgt:IsPlayer() then
text = tgt:Nick()
Expand Down
4 changes: 4 additions & 0 deletions lua/terrortown/lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,10 @@ L.searchbar_roles_placeholder = "Search roles..."
L.label_menu_search_no_items = "No items matched your search."

L.submenu_roles_overview_title = "Roles Overview (READ ME)"

-- 2025-01-20
L.label_hud_show_team_name = "Should you see your team name next to your role name?"

-- Is there a way to ahve some sort of external file that's possibly-localized?
L.roles_overview_html = [[
<h1>Overview</h1>
Expand Down