Skip to content

Commit aecb1a3

Browse files
committed
Fixed Enable Construct Display toggle
Checkbox was only disabling, not toggling. Wasn't passing/checking box status.
1 parent cdb9891 commit aecb1a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lua/weapons/gmod_tool/stools/precision_align

lua/weapons/gmod_tool/stools/precision_align/ui.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ do
372372
EnableConstructDisplays:SetValue(1)
373373
EnableConstructDisplays:SetTooltip("Show/Hide all constructs")
374374
EnableConstructDisplays:DockMargin(0, 0, 0, 4)
375-
function EnableConstructDisplays:OnChange()
376-
LocalPlayer():ConCommand(PA_ .. "displayhud")
375+
function EnableConstructDisplays:OnChange(checked)
376+
LocalPlayer():ConCommand(PA_ .. "displayhud " .. (checked and "1" or "0"))
377377
end
378378

379379
local SnapToEdges = Checkboxes:Add("DCheckBoxLabel")

0 commit comments

Comments
 (0)