@tlua/gmod 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +11 -13
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -19,6 +19,7 @@ interface ConstraintLib {
19
19
  * @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTable
20
20
  */
21
21
  AddConstraintTable(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
22
+
22
23
  /**
23
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
24
25
  *
@@ -30,6 +31,7 @@ interface ConstraintLib {
30
31
  * @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTableNoDelete
31
32
  */
32
33
  AddConstraintTableNoDelete(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
34
+
33
35
  /**
34
36
  * Creates an advanced ballsocket (ragdoll) constraint. See [constraint.Ballsocket](https://wiki.facepunch.com/gmod/constraint.Ballsocket) for the simpler version.
35
37
  *
@@ -38,30 +40,35 @@ interface ConstraintLib {
38
40
  * @source https://wiki.facepunch.com/gmod/constraint.AdvBallsocket
39
41
  */
40
42
  AdvBallsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2?: Vector, forceLimit?: number, torqueLimit?: number, xMin?: number, yMin?: number, zMin?: number, xMax?: number, yMax?: number, zMax?: number, xFric?: number, yFric?: number, zFric?: number, onlyRotation?: number, noCollide?: number): Entity;
43
+
41
44
  /**
42
45
  * Creates an axis constraint.
43
46
  * @realm server
44
47
  * @source https://wiki.facepunch.com/gmod/constraint.Axis
45
48
  */
46
49
  Axis(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, forceLimit?: number, torqueLimit?: number, friction?: number, noCollide?: number, localAxis?: Vector, dontAddTable?: boolean): Entity;
50
+
47
51
  /**
48
52
  * Creates a ballsocket joint. See See [constraint.AdvBallsocket](https://wiki.facepunch.com/gmod/constraint.AdvBallsocket) if you also wish to limit rotation angles in some way.
49
53
  * @realm server
50
54
  * @source https://wiki.facepunch.com/gmod/constraint.Ballsocket
51
55
  */
52
56
  Ballsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos: Vector, forceLimit?: number, torqueLimit?: number, nocollide?: number): Entity;
57
+
53
58
  /**
54
59
  * Basic checks to make sure that the specified entity and bone are valid. Returns false if we should not be constraining the entity.
55
60
  * @realm server
56
61
  * @source https://wiki.facepunch.com/gmod/constraint.CanConstrain
57
62
  */
58
63
  CanConstrain(ent: Entity, bone: number): boolean;
64
+
59
65
  /**
60
66
  * Creates a rope without any constraint.
61
67
  * @realm server
62
68
  * @source https://wiki.facepunch.com/gmod/constraint.CreateKeyframeRope
63
69
  */
64
70
  CreateKeyframeRope(pos: Vector, width: number, material?: string, constraint?: Entity, ent1?: Entity, localPos1?: Vector, bone1?: number, ent2?: Entity, localPos2?: Vector, bone2?: number, keyValues?: table): Entity;
71
+
65
72
  /**
66
73
  * Creates an invisible, non-moveable anchor point in the world to which things can be attached.
67
74
  * **NOTE**: The entity used internally by this function (`gmod_anchor`) only exists in Sandbox derived gamemodes, meaning this function will only work in these gamemodes.
@@ -73,30 +80,35 @@ interface ConstraintLib {
73
80
  * @source https://wiki.facepunch.com/gmod/constraint.CreateStaticAnchorPoint
74
81
  */
75
82
  CreateStaticAnchorPoint(pos: Vector): (Entity, PhysObj, number, Vector);
83
+
76
84
  /**
77
85
  * Creates an elastic rope constraint.
78
86
  * @realm server
79
87
  * @source https://wiki.facepunch.com/gmod/constraint.Elastic
80
88
  */
81
89
  Elastic(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, constant: number, damping: number, relDamping: number, material?: string, width?: number, stretchOnly?: boolean, color?: Color): (Entity, Entity);
90
+
82
91
  /**
83
92
  * Returns the constraint of a specified type between two entities, if it exists
84
93
  * @realm server
85
94
  * @source https://wiki.facepunch.com/gmod/constraint.Find
86
95
  */
87
96
  Find(ent1: Entity, ent2: Entity, type: string, bone1: number, bone2: number): Entity;
97
+
88
98
  /**
89
99
  * Returns the first constraint of a specific type directly connected to the entity found.
90
100
  * @realm server
91
101
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraint
92
102
  */
93
103
  FindConstraint(ent: Entity, type: string): table;
104
+
94
105
  /**
95
106
  * Returns the other entity involved in the first constraint of a specific type directly connected to the entity.
96
107
  * @realm server
97
108
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraintEntity
98
109
  */
99
110
  FindConstraintEntity(ent: Entity, type: string): Entity;
111
+
100
112
  /**
101
113
  * Returns a table of all constraints of a specific type directly connected to the entity.
102
114
  *
@@ -105,18 +117,21 @@ interface ConstraintLib {
105
117
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraints
106
118
  */
107
119
  FindConstraints(ent: Entity, type: string): table;
120
+
108
121
  /**
109
122
  * Make this entity forget any constraints it knows about. Note that this will not actually remove the constraints.
110
123
  * @realm server
111
124
  * @source https://wiki.facepunch.com/gmod/constraint.ForgetConstraints
112
125
  */
113
126
  ForgetConstraints(ent: Entity): void;
127
+
114
128
  /**
115
129
  * Returns a table of all entities recursively constrained to an entity.
116
130
  * @realm server
117
131
  * @source https://wiki.facepunch.com/gmod/constraint.GetAllConstrainedEntities
118
132
  */
119
133
  GetAllConstrainedEntities(ent: Entity, resultTable?: table): table;
134
+
120
135
  /**
121
136
  * Returns a table of all constraints directly connected to the entity.
122
137
  *
@@ -126,18 +141,21 @@ interface ConstraintLib {
126
141
  * @source https://wiki.facepunch.com/gmod/constraint.GetTable
127
142
  */
128
143
  GetTable(ent: Entity): table;
144
+
129
145
  /**
130
146
  * Returns true if the entity has constraints attached to it
131
147
  * @realm server
132
148
  * @source https://wiki.facepunch.com/gmod/constraint.HasConstraints
133
149
  */
134
150
  HasConstraints(ent: Entity): boolean;
151
+
135
152
  /**
136
153
  * Creates a controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), aka a Hydraulic constraint.
137
154
  * @realm server
138
155
  * @source https://wiki.facepunch.com/gmod/constraint.Hydraulic
139
156
  */
140
157
  Hydraulic(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, slider: number, speed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity, Entity);
158
+
141
159
  /**
142
160
  * Creates a keep upright constraint.
143
161
  *
@@ -145,12 +163,14 @@ interface ConstraintLib {
145
163
  * @source https://wiki.facepunch.com/gmod/constraint.Keepupright
146
164
  */
147
165
  Keepupright(ent: Entity, ang: Angle, bone: number, angularLimit: number): Entity;
166
+
148
167
  /**
149
168
  * Creates a motor constraint, a player controllable [constraint.Axis](https://wiki.facepunch.com/gmod/constraint.Axis).
150
169
  * @realm server
151
170
  * @source https://wiki.facepunch.com/gmod/constraint.Motor
152
171
  */
153
172
  Motor(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, friction: number, torque: number, forcetime: number, nocollide?: number, toggle?: number, player?: Player, forcelimit?: number, key_fwd?: number, key_bwd?: number, direction?: number, localAxis?: Vector): (Entity, Entity);
173
+
154
174
  /**
155
175
  * Creates a muscle constraint.
156
176
  *
@@ -159,6 +179,7 @@ interface ConstraintLib {
159
179
  * @source https://wiki.facepunch.com/gmod/constraint.Muscle
160
180
  */
161
181
  Muscle(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, fixed: number, period: number, amplitude: number, startOn?: boolean, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
182
+
162
183
  /**
163
184
  * Creates an no-collide "constraint". Disables collision between two entities.
164
185
  * **NOTE**: Does not work with players.
@@ -168,6 +189,7 @@ interface ConstraintLib {
168
189
  * @source https://wiki.facepunch.com/gmod/constraint.NoCollide
169
190
  */
170
191
  NoCollide(ent1: Entity, ent2: Entity, bone1: number, bone2: number, disableOnRemove?: boolean): Entity;
192
+
171
193
  /**
172
194
  * Creates a pulley constraint.
173
195
  *
@@ -187,36 +209,42 @@ interface ConstraintLib {
187
209
  * @source https://wiki.facepunch.com/gmod/constraint.Pulley
188
210
  */
189
211
  Pulley(ent1: Entity, ent4: Entity, bone1: number, bone4: number, localPos1: Vector, localPos4: Vector, worldPos2: Vector, worldPos3: Vector, forceLimit: number, rigid?: boolean, width?: number, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
212
+
190
213
  /**
191
214
  * Attempts to remove all constraints associated with an entity.
192
215
  * @realm server
193
216
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveAll
194
217
  */
195
218
  RemoveAll(ent: Entity): (boolean, number);
219
+
196
220
  /**
197
221
  * Attempts to remove all constraints of a specified type associated with an entity
198
222
  * @realm server
199
223
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveConstraints
200
224
  */
201
225
  RemoveConstraints(ent: Entity, type: string): (boolean, number);
226
+
202
227
  /**
203
228
  * Creates a simple rope (length) based constraint.
204
229
  * @realm server
205
230
  * @source https://wiki.facepunch.com/gmod/constraint.Rope
206
231
  */
207
232
  Rope(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length: number, addLength?: number, forceLimit?: number, width?: number, material?: string, rigid?: boolean, color?: Color): (Entity, Entity);
233
+
208
234
  /**
209
235
  * Creates a slider constraint. A slider is like a rope, but allows the constrained object to move only in 1 direction.
210
236
  * @realm server
211
237
  * @source https://wiki.facepunch.com/gmod/constraint.Slider
212
238
  */
213
239
  Slider(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, material?: string, color?: Color): (Entity, Entity);
240
+
214
241
  /**
215
242
  * Creates a weld constraint.
216
243
  * @realm server
217
244
  * @source https://wiki.facepunch.com/gmod/constraint.Weld
218
245
  */
219
246
  Weld(ent1: Entity, ent2: Entity, bone1: number, bone2: number, forceLimit?: number, noCollide?: boolean, deleteEnt1OnBreak?: boolean): Entity;
247
+
220
248
  /**
221
249
  * Creates a winch constraint, a player controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), allowing gradually increasing or decreasing the length.
222
250
  * @realm server
@@ -224,32 +252,3 @@ interface ConstraintLib {
224
252
  */
225
253
  Winch(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, fwdBind: number, bwdBind: number, fwdSpeed: number, bwdSpeed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity);
226
254
  }
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
@@ -13,6 +13,7 @@ interface ConstructLib {
13
13
  * @source https://wiki.facepunch.com/gmod/construct.Magnet
14
14
  */
15
15
  Magnet(ply: Player, pos: Vector, ang: Angle, model: string, material: string, key: number, maxObjects: number, strength: number, nopull?: number, allowrot?: number, startOn?: number, toggle?: number, vel?: Vector, aVel?: Angle, frozen?: boolean): Entity;
16
+
16
17
  /**
17
18
  * Sets props physical properties.
18
19
  * @realm server
@@ -20,5 +21,3 @@ interface ConstructLib {
20
21
  */
21
22
  SetPhysProp(ply: Player, ent: Entity, physObjID: number, physObj: PhysObj, data: PhysProperties): void;
22
23
  }
23
-
24
-
@@ -18,12 +18,10 @@ interface ContentHeader extends DLabelEditable {
18
18
  * @source https://wiki.facepunch.com/gmod/ContentHeader:OpenMenu
19
19
  */
20
20
  OpenMenu(self: ContentHeader, style: string, hookname?: string): void;
21
+
21
22
  /**
22
23
  * @realm client
23
24
  * @source https://wiki.facepunch.com/gmod/ContentHeader:ToTable
24
25
  */
25
26
  ToTable(self: ContentHeader, bigtable: table): void;
26
27
  }
27
-
28
-
29
-
@@ -17,42 +17,49 @@ interface ContentIcon extends DButton {
17
17
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetContentType
18
18
  */
19
19
  GetContentType(self: ContentIcon): string;
20
+
20
21
  /**
21
22
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns a table of weapon classes for the content icon with "NPC" content type to be randomly chosen from when user tries to spawn the NPC.
22
23
  * @realm client
23
24
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetNPCWeapon
24
25
  */
25
26
  GetNPCWeapon(self: ContentIcon): table;
27
+
26
28
  /**
27
29
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the internal "name" for the content icon, usually a class name for an entity.
28
30
  * @realm client
29
31
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetSpawnName
30
32
  */
31
33
  GetSpawnName(self: ContentIcon): string;
34
+
32
35
  /**
33
36
  * A hook for override, by default does nothing. Called when user right clicks on the content icon, you are supposed to open a [Global.DermaMenu](https://wiki.facepunch.com/gmod/Global.DermaMenu) here with additional options.
34
37
  * @realm client
35
38
  * @source https://wiki.facepunch.com/gmod/ContentIcon:OpenMenu
36
39
  */
37
40
  OpenMenu(self: ContentIcon): void;
41
+
38
42
  /**
39
43
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether the content item is admin only. This makes the icon to display a admin icon in the top left corner of the icon.
40
44
  * @realm client
41
45
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetAdminOnly
42
46
  */
43
47
  SetAdminOnly(self: ContentIcon, adminOnly: boolean): void;
48
+
44
49
  /**
45
50
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the content type used to save and restore the content icon in a spawnlist.
46
51
  * @realm client
47
52
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetContentType
48
53
  */
49
54
  SetContentType(self: ContentIcon, type: string): void;
55
+
50
56
  /**
51
57
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets a table of weapon classes for the content icon with "NPC" content type to be randomly chosen from when user tries to spawn the NPC.
52
58
  * @realm client
53
59
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetNPCWeapon
54
60
  */
55
61
  SetNPCWeapon(self: ContentIcon, weapons: table): void;
62
+
56
63
  /**
57
64
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the internal "name" for the content icon, usually a class name for an entity.
58
65
  * @realm client
@@ -60,12 +67,3 @@ interface ContentIcon extends DButton {
60
67
  */
61
68
  SetSpawnName(self: ContentIcon, name: string): void;
62
69
  }
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
@@ -19,6 +19,7 @@ interface ContentSidebar extends DPanel {
19
19
  * @source https://wiki.facepunch.com/gmod/ContentSidebar:CreateSaveNotification
20
20
  */
21
21
  CreateSaveNotification(self: ContentSidebar, style: string, hookname?: string): void;
22
+
22
23
  /**
23
24
  * Internally calls [ContentSidebar:EnableSearch](https://wiki.facepunch.com/gmod/ContentSidebar:EnableSearch), [ContentSidebar:CreateSaveNotification](https://wiki.facepunch.com/gmod/ContentSidebar:CreateSaveNotification) and creates a ContentSidebarToolbox which is accessible under ContentSidebar.Toolbox. Call the Hook [SANDBOX:OpenToolbox](https://wiki.facepunch.com/gmod/SANDBOX:OpenToolbox) to open the created Toolbox
24
25
  *
@@ -26,6 +27,7 @@ interface ContentSidebar extends DPanel {
26
27
  * @source https://wiki.facepunch.com/gmod/ContentSidebar:EnableModify
27
28
  */
28
29
  EnableModify(self: ContentSidebar): void;
30
+
29
31
  /**
30
32
  * Creates a search bar which will be displayed over the Nodes.
31
33
  *
@@ -34,7 +36,3 @@ interface ContentSidebar extends DPanel {
34
36
  */
35
37
  EnableSearch(self: ContentSidebar, style: string, hookname?: string): void;
36
38
  }
37
-
38
-
39
-
40
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/ContentSidebarToolbox
11
11
  */
12
12
  interface ContentSidebarToolbox extends DDrawer {}
13
-
@@ -13,12 +13,14 @@ interface ContextBase extends Panel {
13
13
  * @source https://wiki.facepunch.com/gmod/ContextBase:ConVar
14
14
  */
15
15
  ConVar(self: ContextBase): string;
16
+
16
17
  /**
17
18
  * Called by spawnmenu functions (when creating a context menu) to fill this control with data.
18
19
  * @realm client
19
20
  * @source https://wiki.facepunch.com/gmod/ContextBase:ControlValues
20
21
  */
21
22
  ControlValues(self: ContextBase, contextData: table): void;
23
+
22
24
  /**
23
25
  * You should override this function and use it to check whether your convar value changed.
24
26
  * @realm client
@@ -26,7 +28,3 @@ interface ContextBase extends Panel {
26
28
  */
27
29
  TestForChanges(self: ContextBase): void;
28
30
  }
29
-
30
-
31
-
32
-
@@ -8,6 +8,7 @@ interface ControlPanel extends DForm {
8
8
  * @realm client
9
9
  */
10
10
  Label(self: ControlPanel, text: string): DLabel;
11
+
11
12
  /**
12
13
  * Adds a control to the control panel.
13
14
  * @realm client
@@ -22,30 +23,35 @@ interface ControlPanel extends DForm {
22
23
  * @source https://wiki.facepunch.com/gmod/ControlPanel:AddControl
23
24
  */
24
25
  AddControl(self: ControlPanel, type: string, controlinfo: table): Panel;
26
+
25
27
  /**
26
28
  * Adds an item by calling [DForm:AddItem](https://wiki.facepunch.com/gmod/DForm:AddItem).
27
29
  * @realm client
28
30
  * @source https://wiki.facepunch.com/gmod/ControlPanel:AddPanel
29
31
  */
30
32
  AddPanel(self: ControlPanel, panel: Panel): void;
33
+
31
34
  /**
32
35
  * Alias of [Panel:Clear](https://wiki.facepunch.com/gmod/Panel:Clear).
33
36
  * @realm client
34
37
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ClearControls
35
38
  */
36
39
  ClearControls(self: ControlPanel): void;
40
+
37
41
  /**
38
42
  * Creates a [CtrlColor](https://wiki.facepunch.com/gmod/CtrlColor) (a color picker) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
39
43
  * @realm client
40
44
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ColorPicker
41
45
  */
42
46
  ColorPicker(self: ControlPanel, label: string, convarR: string, convarG: string, convarB: string, convarA?: string): Panel;
47
+
43
48
  /**
44
49
  * Sets control values of the control panel.
45
50
  * @realm client
46
51
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ControlValues
47
52
  */
48
53
  ControlValues(self: ControlPanel, data: table): void;
54
+
49
55
  /**
50
56
  * Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.
51
57
  *
@@ -56,24 +62,28 @@ interface ControlPanel extends DForm {
56
62
  * @deprecated This is dumb. Just call the builder function directly.
57
63
  */
58
64
  FillViaFunction(self: ControlPanel, func: (panelToPopulate: ControlPanel) => void): void;
65
+
59
66
  /**
60
67
  * Returns this control panel.
61
68
  * @realm client
62
69
  * @source https://wiki.facepunch.com/gmod/ControlPanel:GetEmbeddedPanel
63
70
  */
64
71
  GetEmbeddedPanel(self: ControlPanel): ControlPanel;
72
+
65
73
  /**
66
74
  * Creates a CtrlNumPad (a Sandbox key binder) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
67
75
  * @realm client
68
76
  * @source https://wiki.facepunch.com/gmod/ControlPanel:KeyBinder
69
77
  */
70
78
  KeyBinder(self: ControlPanel, label1: string, convar1: string, label2?: string, convar2?: string): Panel;
79
+
71
80
  /**
72
81
  * Creates a [MatSelect](https://wiki.facepunch.com/gmod/MatSelect) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
73
82
  * @realm client
74
83
  * @source https://wiki.facepunch.com/gmod/ControlPanel:MatSelect
75
84
  */
76
85
  MatSelect(self: ControlPanel, convar: string, options?: table, autostretch?: boolean, width?: number, height?: number): MatSelect;
86
+
77
87
  /**
78
88
  * Creates a [ControlPresets](https://wiki.facepunch.com/gmod/ControlPresets) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
79
89
  * @realm client
@@ -88,17 +98,6 @@ interface ControlPanel extends DForm {
88
98
  */
89
99
  declare controlpanel: ControlpanelLib;
90
100
 
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
101
  interface ControlpanelLib {
103
102
  /**
104
103
  * Clears ALL the control panels ( for tools ).
@@ -106,6 +105,7 @@ interface ControlpanelLib {
106
105
  * @source https://wiki.facepunch.com/gmod/controlpanel.Clear
107
106
  */
108
107
  Clear(): void;
108
+
109
109
  /**
110
110
  * Returns (or creates if not exists) a control panel.
111
111
  * @realm client
@@ -113,6 +113,3 @@ interface ControlpanelLib {
113
113
  */
114
114
  Get(name: string): ControlPanel;
115
115
  }
116
-
117
-
118
-
@@ -15,18 +15,21 @@ interface ControlPresets extends Panel {
15
15
  * @source https://wiki.facepunch.com/gmod/ControlPresets:AddConVar
16
16
  */
17
17
  AddConVar(self: ControlPresets, convar: string): void;
18
+
18
19
  /**
19
20
  * Adds option to the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox) subelement with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) then adds it to the `options` subtable
20
21
  * @realm client
21
22
  * @source https://wiki.facepunch.com/gmod/ControlPresets:AddOption
22
23
  */
23
24
  AddOption(self: ControlPresets, strName: string, data: any): void;
25
+
24
26
  /**
25
27
  * Get a list of all Console Variables being managed by this panel.
26
28
  * @realm client
27
29
  * @source https://wiki.facepunch.com/gmod/ControlPresets:GetConVars
28
30
  */
29
31
  GetConVars(self: ControlPresets): table;
32
+
30
33
  /**
31
34
  * Checks if Data is valid then uses [Global.pairs](https://wiki.facepunch.com/gmod/Global.pairs) to iterate over the data parameter and run each entry using [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand)
32
35
  * Index and Value parameters appear to not be used. Further testing should be done to confirm
@@ -35,44 +38,52 @@ interface ControlPresets extends Panel {
35
38
  * @source https://wiki.facepunch.com/gmod/ControlPresets:OnSelect
36
39
  */
37
40
  OnSelect(self: ControlPresets, index: number, value: any, data: table): void;
41
+
38
42
  /**
39
43
  * Creates and opens [PresetEditor](https://wiki.facepunch.com/gmod/PresetEditor)
40
44
  * @realm client
41
45
  * @source https://wiki.facepunch.com/gmod/ControlPresets:OpenPresetEditor
42
46
  */
43
47
  OpenPresetEditor(self: ControlPresets): void;
48
+
44
49
  /**
45
50
  * @realm client
46
51
  * @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSaveInternal
47
52
  */
48
53
  QuickSaveInternal(self: ControlPresets, text: string): void;
54
+
49
55
  /**
50
56
  * @realm client
51
57
  * @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSavePreset
52
58
  */
53
59
  QuickSavePreset(self: ControlPresets): void;
60
+
54
61
  /**
55
62
  * @realm client
56
63
  * @source https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets
57
64
  */
58
65
  ReloadPresets(self: ControlPresets): void;
66
+
59
67
  /**
60
68
  * Set the name label text.
61
69
  * @realm client
62
70
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetLabel
63
71
  */
64
72
  SetLabel(self: ControlPresets, name: string): void;
73
+
65
74
  /**
66
75
  * Uses [table.Merge](https://wiki.facepunch.com/gmod/table.Merge) to combine the provided table into the `Options` subtable
67
76
  * @realm client
68
77
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetOptions
69
78
  */
70
79
  SetOptions(self: ControlPresets, Options: table): void;
80
+
71
81
  /**
72
82
  * @realm client
73
83
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetPreset
74
84
  */
75
85
  SetPreset(self: ControlPresets, strName: string): void;
86
+
76
87
  /**
77
88
  * Alias of [ControlPresets:ReloadPresets](https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets)
78
89
  * @realm client
@@ -80,16 +91,3 @@ interface ControlPresets extends Panel {
80
91
  */
81
92
  Update(self: ControlPresets): void;
82
93
  }
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-