Skip to content

Commit

Permalink
RoleLayering: Fixed layered roles not having working toggle (#1725)
Browse files Browse the repository at this point in the history
Layered roles were not toggleable upon menu rebuilt.
  • Loading branch information
TimGoll authored Jan 20, 2025
1 parent b46e0e2 commit c70a015
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ function PANEL:InitRoles(layeredRoles)
ic:SetColor(roleData.color)
ic:SetTooltip(roleData.name)
ic:SetTooltipFixedPosition(0, 64)
ic:SetServerConVar("ttt_" .. roleData.name .. "_enabled")
ic:EnableIndicator(true)

ic.subrole = subrole

Expand Down

0 comments on commit c70a015

Please sign in to comment.