Skip to content

Commit c70a015

Browse files
authored
RoleLayering: Fixed layered roles not having working toggle (#1725)
Layered roles were not toggleable upon menu rebuilt.
1 parent b46e0e2 commit c70a015

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gamemodes/terrortown/gamemode/client/cl_vskin/vgui/drolelayeringreceiver_ttt2.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ function PANEL:InitRoles(layeredRoles)
235235
ic:SetColor(roleData.color)
236236
ic:SetTooltip(roleData.name)
237237
ic:SetTooltipFixedPosition(0, 64)
238+
ic:SetServerConVar("ttt_" .. roleData.name .. "_enabled")
239+
ic:EnableIndicator(true)
238240

239241
ic.subrole = subrole
240242

0 commit comments

Comments
 (0)