You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some actions for base_class: rename, expand/collapse, show/hide, write notes
some are class-specific: hitscan shoot, sound play/stop, command execute, event invert...
some are event-specific: timerx reset, command trigger, flashlight toggle
you can revert to only the base_class actions or ignore the base_class actions and only trigger actions when a specific action exists for the part
the options are in menu bar and node expander
Copy file name to clipboardExpand all lines: lua/pac3/core/client/base_part.lua
+129Lines changed: 129 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -606,6 +606,135 @@ do -- scene graph
606
606
end
607
607
end
608
608
609
+
localpac_doubleclick_type=CreateClientConVar("pac_doubleclick_action", "expand", true, true, "What function should be run if you double-click on a part node.\n\nexpand : expand or collapse the node\nrename : rename the part\nnotes : write notes for the part\nshowhide : shows or hides the part\nspecific_only : only trigger class-specific actions, such as playing sounds, triggering hitscans, etc.\nnone : disable double-click actions")
pnl:SetTitle("Long text with newline support for Notes.")
701
+
pnl:Center()
702
+
DButtonOK:SetText("OK")
703
+
DButtonOK:SetSize(80,20)
704
+
DButtonOK:SetPos(500, 775)
705
+
DText:SetPos(5,25)
706
+
DText:SetSize(1190,700)
707
+
DText:SetMultiline(true)
708
+
DText:SetContentAlignment(7)
709
+
pnl:MakePopup()
710
+
DText:RequestFocus()
711
+
DText:SetText(self:GetNotes())
712
+
713
+
DButtonOK.DoClick=function()
714
+
self:SetNotes(DText:GetText())
715
+
pace.RefreshTree(true)
716
+
pnl:Remove()
717
+
end
718
+
elseifpace.doubleclickfunc=="showhide" then
719
+
self:SetHide(notself:GetHide())
720
+
end
721
+
end
722
+
723
+
localpac_doubleclick_specified=CreateClientConVar("pac_doubleclick_action_specified", "2", true, true, "Whether the base_part functions for double-click should be replaced by specific functions when available.\n\nset to 0 : only use base_class actions (expand, rename, notes, showhide)\nset to 1 : Use specific actions. most single-shot parts will trigger (sounds play, commands run, hitscans fire etc.), and events will invert\nset to 2 : When appropriate, some event types will have even more specific actions. command events trigger or toggle (depending on the time), is_flashlight_on will toggle the flashlight, timerx events will reset\n\nIf your selected base action is none, These won't trigger.\n\nIf you only want specific actions, you may select specific_only in the pac_doubleclick_action command if you only want specifics")
0 commit comments