@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
@@ -22,30 +22,35 @@ interface DuplicatorLib {
22
22
  * @source https://wiki.facepunch.com/gmod/duplicator.Allow
23
23
  */
24
24
  Allow(classname: string): void;
25
+
25
26
  /**
26
27
  * Calls every function registered with [duplicator.RegisterBoneModifier](https://wiki.facepunch.com/gmod/duplicator.RegisterBoneModifier) on each bone the ent has.
27
28
  * @realm server
28
29
  * @source https://wiki.facepunch.com/gmod/duplicator.ApplyBoneModifiers
29
30
  */
30
31
  ApplyBoneModifiers(ply: Player, ent: Entity): void;
32
+
31
33
  /**
32
34
  * Calls every function registered with [duplicator.RegisterEntityModifier](https://wiki.facepunch.com/gmod/duplicator.RegisterEntityModifier) on the entity.
33
35
  * @realm server
34
36
  * @source https://wiki.facepunch.com/gmod/duplicator.ApplyEntityModifiers
35
37
  */
36
38
  ApplyEntityModifiers(ply: Player, ent: Entity): void;
39
+
37
40
  /**
38
41
  * Clears/removes the chosen entity modifier from the entity.
39
42
  * @realm server
40
43
  * @source https://wiki.facepunch.com/gmod/duplicator.ClearEntityModifier
41
44
  */
42
45
  ClearEntityModifier(ent: Entity, key: any): void;
46
+
43
47
  /**
44
48
  * Copies the entity, and all of its constraints and entities, then returns them in a table.
45
49
  * @realm server
46
50
  * @source https://wiki.facepunch.com/gmod/duplicator.Copy
47
51
  */
48
52
  Copy(ent: Entity, tableToAdd?: table): table;
53
+
49
54
  /**
50
55
  * Returns a table with some entity data that can be used to create a new entity with [duplicator.CreateEntityFromTable](https://wiki.facepunch.com/gmod/duplicator.CreateEntityFromTable).
51
56
  *
@@ -53,12 +58,14 @@ interface DuplicatorLib {
53
58
  * @source https://wiki.facepunch.com/gmod/duplicator.CopyEntTable
54
59
  */
55
60
  CopyEntTable(ent: Entity): table;
61
+
56
62
  /**
57
63
  * Copies the passed table of entities to save for later.
58
64
  * @realm server
59
65
  * @source https://wiki.facepunch.com/gmod/duplicator.CopyEnts
60
66
  */
61
67
  CopyEnts(ents: table): table;
68
+
62
69
  /**
63
70
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
64
71
  * Creates a constraint from a saved/copied constraint table.
@@ -66,12 +73,14 @@ interface DuplicatorLib {
66
73
  * @source https://wiki.facepunch.com/gmod/duplicator.CreateConstraintFromTable
67
74
  */
68
75
  CreateConstraintFromTable(constraint: table, entityList: table): (Entity, Entity, Entity, Entity);
76
+
69
77
  /**
70
78
  * Creates an entity from duplication data.
71
79
  * @realm server
72
80
  * @source https://wiki.facepunch.com/gmod/duplicator.CreateEntityFromTable
73
81
  */
74
82
  CreateEntityFromTable(ply: Player, entTable: EntityCopyData): Entity;
83
+
75
84
  /**
76
85
  * Disallow this entity to be duplicated. Opposite of [duplicator.Allow](https://wiki.facepunch.com/gmod/duplicator.Allow).
77
86
  *
@@ -80,6 +89,7 @@ interface DuplicatorLib {
80
89
  * @source https://wiki.facepunch.com/gmod/duplicator.Disallow
81
90
  */
82
91
  Disallow(classname: string): void;
92
+
83
93
  /**
84
94
  * "Restores the bone's data."
85
95
  *
@@ -90,12 +100,14 @@ interface DuplicatorLib {
90
100
  * @source https://wiki.facepunch.com/gmod/duplicator.DoBoneManipulator
91
101
  */
92
102
  DoBoneManipulator(ent: Entity, bones: table): void;
103
+
93
104
  /**
94
105
  * Restores the flex data using [Entity:SetFlexWeight](https://wiki.facepunch.com/gmod/Entity:SetFlexWeight) and [Entity:SetFlexScale](https://wiki.facepunch.com/gmod/Entity:SetFlexScale).
95
106
  * @realm server
96
107
  * @source https://wiki.facepunch.com/gmod/duplicator.DoFlex
97
108
  */
98
109
  DoFlex(ent: Entity, flex: table, scale?: number): void;
110
+
99
111
  /**
100
112
  * "Applies generic every-day entity stuff for ent from table data."
101
113
  *
@@ -109,6 +121,7 @@ interface DuplicatorLib {
109
121
  * @source https://wiki.facepunch.com/gmod/duplicator.DoGeneric
110
122
  */
111
123
  DoGeneric(ent: Entity, data: table): void;
124
+
112
125
  /**
113
126
  * "Applies bone data, generically."
114
127
  *
@@ -119,6 +132,7 @@ interface DuplicatorLib {
119
132
  * @source https://wiki.facepunch.com/gmod/duplicator.DoGenericPhysics
120
133
  */
121
134
  DoGenericPhysics(ent: Entity, ply?: Player, data?: table): void;
135
+
122
136
  /**
123
137
  * Checks the given duplication table and tries to figure out any addons that might be required to correctly spawn the duplication. Currently this is limited to models and material overrides saved in the duplication.
124
138
  *
@@ -126,12 +140,14 @@ interface DuplicatorLib {
126
140
  * @source https://wiki.facepunch.com/gmod/duplicator.FigureOutRequiredAddons
127
141
  */
128
142
  FigureOutRequiredAddons(dupe: table): void;
143
+
129
144
  /**
130
145
  * Returns the entity class factory registered with [duplicator.RegisterEntityClass](https://wiki.facepunch.com/gmod/duplicator.RegisterEntityClass).
131
146
  * @realm shared
132
147
  * @source https://wiki.facepunch.com/gmod/duplicator.FindEntityClass
133
148
  */
134
149
  FindEntityClass(name: string): table;
150
+
135
151
  /**
136
152
  * "Generic function for duplicating stuff"
137
153
  *
@@ -142,6 +158,7 @@ interface DuplicatorLib {
142
158
  * @source https://wiki.facepunch.com/gmod/duplicator.GenericDuplicatorFunction
143
159
  */
144
160
  GenericDuplicatorFunction(ply: Player, data: table): Entity;
161
+
145
162
  /**
146
163
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
147
164
  * Fills entStorageTable with all of the entities in a group connected with constraints. Fills constraintStorageTable with all of the constraints constraining the group.
@@ -149,12 +166,14 @@ interface DuplicatorLib {
149
166
  * @source https://wiki.facepunch.com/gmod/duplicator.GetAllConstrainedEntitiesAndConstraints
150
167
  */
151
168
  GetAllConstrainedEntitiesAndConstraints(ent: Entity, entStorageTable: table, constraintStorageTable: table): (table, table);
169
+
152
170
  /**
153
171
  * Returns whether the entity can be duplicated or not.
154
172
  * @realm shared
155
173
  * @source https://wiki.facepunch.com/gmod/duplicator.IsAllowed
156
174
  */
157
175
  IsAllowed(classname: string): boolean;
176
+
158
177
  /**
159
178
  * "Given entity list and constraint list, create all entities and return their tables"
160
179
  *
@@ -166,6 +185,7 @@ interface DuplicatorLib {
166
185
  * @source https://wiki.facepunch.com/gmod/duplicator.Paste
167
186
  */
168
187
  Paste(Player: Player, EntityList: table, ConstraintList: table): (table, table);
188
+
169
189
  /**
170
190
  * Registers a function to be called on each of an entity's bones when [duplicator.ApplyBoneModifiers](https://wiki.facepunch.com/gmod/duplicator.ApplyBoneModifiers) is called.
171
191
  *
@@ -176,12 +196,14 @@ interface DuplicatorLib {
176
196
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterBoneModifier
177
197
  */
178
198
  RegisterBoneModifier(key: any, boneModifier: (ply: Player, ent: Entity, boneID: number, bone: PhysObj, data: table) => void): void;
199
+
179
200
  /**
180
201
  * Register a function used for creating a duplicator-supported constraint.
181
202
  * @realm shared
182
203
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterConstraint
183
204
  */
184
205
  RegisterConstraint(name: string, callback: function, ...: any): void;
206
+
185
207
  /**
186
208
  * This allows you to specify a specific function to be run when your SENT is pasted with the duplicator, instead of relying on the generic automatic functions.
187
209
  *
@@ -192,6 +214,7 @@ interface DuplicatorLib {
192
214
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterEntityClass
193
215
  */
194
216
  RegisterEntityClass(name: string, _function: (ply: Player, ...: any) => Entity, ...: any): void;
217
+
195
218
  /**
196
219
  * This allows you to register tweaks to entities. For instance, if you were making an "unbreakable" addon, you would use this to enable saving the "unbreakable" state of entities between duplications.
197
220
  *
@@ -203,6 +226,7 @@ interface DuplicatorLib {
203
226
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterEntityModifier
204
227
  */
205
228
  RegisterEntityModifier(name: string, func: (ply: Player, ent: Entity, data: table) => void): void;
229
+
206
230
  /**
207
231
  * Help to remove certain map created entities before creating the saved entities
208
232
  * This is obviously so we don't get duplicate props everywhere.
@@ -212,6 +236,7 @@ interface DuplicatorLib {
212
236
  * @source https://wiki.facepunch.com/gmod/duplicator.RemoveMapCreatedEntities
213
237
  */
214
238
  RemoveMapCreatedEntities(): void;
239
+
215
240
  /**
216
241
  * "When a copy is copied it will be translated according to these.
217
242
  * If you set them - make sure to set them back to 0 0 0!"
@@ -220,6 +245,7 @@ interface DuplicatorLib {
220
245
  * @source https://wiki.facepunch.com/gmod/duplicator.SetLocalAng
221
246
  */
222
247
  SetLocalAng(v: Angle): void;
248
+
223
249
  /**
224
250
  * "When a copy is copied it will be translated according to these.
225
251
  * If you set them - make sure to set them back to 0 0 0!"
@@ -228,18 +254,21 @@ interface DuplicatorLib {
228
254
  * @source https://wiki.facepunch.com/gmod/duplicator.SetLocalPos
229
255
  */
230
256
  SetLocalPos(v: Vector): void;
257
+
231
258
  /**
232
259
  * Stores bone mod data for a registered bone modification function.
233
260
  * @realm server
234
261
  * @source https://wiki.facepunch.com/gmod/duplicator.StoreBoneModifier
235
262
  */
236
263
  StoreBoneModifier(ent: Entity, boneID: number, key: any, data: table): void;
264
+
237
265
  /**
238
266
  * Stores an entity modifier into an entity for saving.
239
267
  * @realm server
240
268
  * @source https://wiki.facepunch.com/gmod/duplicator.StoreEntityModifier
241
269
  */
242
270
  StoreEntityModifier(entity: Entity, name: string, data: table): void;
271
+
243
272
  /**
244
273
  * Works out the AABB size of the duplication.
245
274
  * @realm server
@@ -247,34 +276,3 @@ interface DuplicatorLib {
247
276
  */
248
277
  WorkoutSize(Ents: table): (Vector, Vector);
249
278
  }
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
@@ -13,30 +13,35 @@ interface DVerticalDivider extends DPanel {
13
13
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:DoConstraints
14
14
  */
15
15
  DoConstraints(self: DVerticalDivider): void;
16
+
16
17
  /**
17
18
  * Returns the bottom content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
18
19
  * @realm client
19
20
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetBottom
20
21
  */
21
22
  GetBottom(self: DVerticalDivider): Panel;
23
+
22
24
  /**
23
25
  * Returns the minimum height of the bottom content panel.
24
26
  * @realm client
25
27
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetBottomMin
26
28
  */
27
29
  GetBottomMin(self: DVerticalDivider): number;
30
+
28
31
  /**
29
32
  * Returns the height of the divider bar between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
30
33
  * @realm client
31
34
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetDividerHeight
32
35
  */
33
36
  GetDividerHeight(self: DVerticalDivider): number;
37
+
34
38
  /**
35
39
  * Returns whether the divider is being dragged or not.
36
40
  * @realm client
37
41
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetDragging
38
42
  */
39
43
  GetDragging(self: DVerticalDivider): boolean;
44
+
40
45
  /**
41
46
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
42
47
  *
@@ -46,54 +51,63 @@ interface DVerticalDivider extends DPanel {
46
51
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetHoldPos
47
52
  */
48
53
  GetHoldPos(self: DVerticalDivider): number;
54
+
49
55
  /**
50
56
  * Returns the middle content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
51
57
  * @realm client
52
58
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetMiddle
53
59
  */
54
60
  GetMiddle(self: DVerticalDivider): Panel;
61
+
55
62
  /**
56
63
  * Returns the top content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
57
64
  * @realm client
58
65
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTop
59
66
  */
60
67
  GetTop(self: DVerticalDivider): Panel;
68
+
61
69
  /**
62
70
  * Returns the current height of the top content panel set by [DVerticalDivider:SetTopHeight](https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopHeight) or by the user.
63
71
  * @realm client
64
72
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopHeight
65
73
  */
66
74
  GetTopHeight(self: DVerticalDivider): number;
75
+
67
76
  /**
68
77
  * Returns the maximum height of the top content panel. See [DVerticalDivider:SetTopMax](https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMax) for more information.
69
78
  * @realm client
70
79
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopMax
71
80
  */
72
81
  GetTopMax(self: DVerticalDivider): number;
82
+
73
83
  /**
74
84
  * Returns the minimum height of the top content panel.
75
85
  * @realm client
76
86
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopMin
77
87
  */
78
88
  GetTopMin(self: DVerticalDivider): number;
89
+
79
90
  /**
80
91
  * Sets the passed panel as the bottom content of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
81
92
  * @realm client
82
93
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottom
83
94
  */
84
95
  SetBottom(self: DVerticalDivider, pnl: Panel): void;
96
+
85
97
  /**
86
98
  * Sets the minimum height of the bottom content panel.
87
99
  * @realm client
88
100
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottomMin
89
101
  */
90
102
  SetBottomMin(self: DVerticalDivider, height: number): void;
103
+
91
104
  /**
92
105
  * Sets the height of the divider bar between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
93
106
  * @realm client
94
107
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetDividerHeight
95
108
  */
96
109
  SetDividerHeight(self: DVerticalDivider, height: number): void;
110
+
97
111
  /**
98
112
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
99
113
  *
@@ -103,6 +117,7 @@ interface DVerticalDivider extends DPanel {
103
117
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetDragging
104
118
  */
105
119
  SetDragging(self: DVerticalDivider, isDragging: boolean): void;
120
+
106
121
  /**
107
122
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
108
123
  *
@@ -112,18 +127,21 @@ interface DVerticalDivider extends DPanel {
112
127
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetHoldPos
113
128
  */
114
129
  SetHoldPos(self: DVerticalDivider, y: number): void;
130
+
115
131
  /**
116
132
  * Places the passed panel in between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
117
133
  * @realm client
118
134
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetMiddle
119
135
  */
120
136
  SetMiddle(self: DVerticalDivider, pnl: Panel): void;
137
+
121
138
  /**
122
139
  * Sets the passed panel as the top content of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
123
140
  * @realm client
124
141
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTop
125
142
  */
126
143
  SetTop(self: DVerticalDivider, pnl: Panel): void;
144
+
127
145
  /**
128
146
  * Sets the height of the top content panel.
129
147
  *
@@ -133,18 +151,21 @@ interface DVerticalDivider extends DPanel {
133
151
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopHeight
134
152
  */
135
153
  SetTopHeight(self: DVerticalDivider, height: number): void;
154
+
136
155
  /**
137
156
  * Sets the maximum height of the top content panel. This is ignored if the panel would exceed the minimum bottom content panel height set from [DVerticalDivider:SetBottomMin](https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottomMin).
138
157
  * @realm client
139
158
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMax
140
159
  */
141
160
  SetTopMax(self: DVerticalDivider, height: number): void;
161
+
142
162
  /**
143
163
  * Sets the minimum height of the top content panel.
144
164
  * @realm client
145
165
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMin
146
166
  */
147
167
  SetTopMin(self: DVerticalDivider, height: number): void;
168
+
148
169
  /**
149
170
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
150
171
  *
@@ -155,26 +176,3 @@ interface DVerticalDivider extends DPanel {
155
176
  */
156
177
  StartGrab(self: DVerticalDivider): void;
157
178
  }
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
@@ -15,36 +15,42 @@ interface DVScrollBar extends Panel {
15
15
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:AddScroll
16
16
  */
17
17
  AddScroll(self: DVScrollBar, add: number): boolean;
18
+
18
19
  /**
19
20
  * Smoothly scrolls to given level.
20
21
  * @realm client and menu
21
22
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:AnimateTo
22
23
  */
23
24
  AnimateTo(self: DVScrollBar, scroll: number, length: number, delay?: number, ease?: number): void;
25
+
24
26
  /**
25
27
  * Returns the scale of the scroll bar based on the difference in size between the visible "window" into the canvas that is being scrolled. Should be used after [DVScrollBar:SetUp](https://wiki.facepunch.com/gmod/DVScrollBar:SetUp).
26
28
  * @realm client and menu
27
29
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:BarScale
28
30
  */
29
31
  BarScale(self: DVScrollBar): number;
32
+
30
33
  /**
31
34
  * Returns whether or not the manual up/down scroll buttons are visible or not. Set by [DVScrollBar:SetHideButtons](https://wiki.facepunch.com/gmod/DVScrollBar:SetHideButtons).
32
35
  * @realm client and menu
33
36
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetHideButtons
34
37
  */
35
38
  GetHideButtons(self: DVScrollBar): boolean;
39
+
36
40
  /**
37
41
  * Returns the negative of [DVScrollBar:GetScroll](https://wiki.facepunch.com/gmod/DVScrollBar:GetScroll).
38
42
  * @realm client and menu
39
43
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetOffset
40
44
  */
41
45
  GetOffset(self: DVScrollBar): number;
46
+
42
47
  /**
43
48
  * Returns the amount of scroll level from the top in pixels
44
49
  * @realm client and menu
45
50
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetScroll
46
51
  */
47
52
  GetScroll(self: DVScrollBar): number;
53
+
48
54
  /**
49
55
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
50
56
  *
@@ -55,18 +61,21 @@ interface DVScrollBar extends Panel {
55
61
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:Grip
56
62
  */
57
63
  Grip(self: DVScrollBar): void;
64
+
58
65
  /**
59
66
  * Allows hiding the up and down buttons for better visual stylisation.
60
67
  * @realm client and menu
61
68
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:SetHideButtons
62
69
  */
63
70
  SetHideButtons(self: DVScrollBar, hide: boolean): void;
71
+
64
72
  /**
65
73
  * Sets the scroll level in pixels.
66
74
  * @realm client and menu
67
75
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:SetScroll
68
76
  */
69
77
  SetScroll(self: DVScrollBar, scroll: number): void;
78
+
70
79
  /**
71
80
  * Sets up the scrollbar for use.
72
81
  *
@@ -77,14 +86,3 @@ interface DVScrollBar extends Panel {
77
86
  */
78
87
  SetUp(self: DVScrollBar, barSize: number, canvasSize: number): void;
79
88
  }
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
@@ -7,4 +7,3 @@
7
7
  * @source https://wiki.facepunch.com/gmod/EditablePanel
8
8
  */
9
9
  interface EditablePanel extends Panel {}
10
-
@@ -94,12 +94,14 @@ interface EFFECT extends Entity {
94
94
  * @source https://wiki.facepunch.com/gmod/EFFECT:GetTracerShootPos
95
95
  */
96
96
  GetTracerShootPos(self: EFFECT, pos: Vector, ent: Weapon, attachment: number): Vector;
97
+
97
98
  /**
98
99
  * Called when the effect is created.
99
100
  * @realm client
100
101
  * @source https://wiki.facepunch.com/gmod/EFFECT:Init
101
102
  */
102
103
  Init(self: EFFECT, effectData: CEffectData): void;
104
+
103
105
  /**
104
106
  * Called when the effect should be rendered.
105
107
  *
@@ -110,7 +112,3 @@ interface EFFECT extends Entity {
110
112
  */
111
113
  Render(self: EFFECT): void;
112
114
  }
113
-
114
-
115
-
116
-
@@ -13,18 +13,21 @@ interface EffectsLib {
13
13
  * @source https://wiki.facepunch.com/gmod/effects.BeamRingPoint
14
14
  */
15
15
  BeamRingPoint(pos: Vector, lifetime: number, startRad: number, endRad: number, width: number, amplitude: number, color: Color, extra: table): void;
16
+
16
17
  /**
17
18
  * Creates a bubble trail effect, the very same you get when shooting underwater.
18
19
  * @realm shared
19
20
  * @source https://wiki.facepunch.com/gmod/effects.BubbleTrail
20
21
  */
21
22
  BubbleTrail(startPos: Vector, endPos: Vector, count: number, height: number, speed?: number, delay?: number): void;
23
+
22
24
  /**
23
25
  * Creates a bunch of bubbles inside a defined box.
24
26
  * @realm shared
25
27
  * @source https://wiki.facepunch.com/gmod/effects.Bubbles
26
28
  */
27
29
  Bubbles(mins: Vector, maxs: Vector, count: number, height: number, speed?: number, delay?: number): void;
30
+
28
31
  /**
29
32
  * **INTERNAL**: You are looking for [util.Effect](https://wiki.facepunch.com/gmod/util.Effect).
30
33
  * Returns the table of the effect specified.
@@ -32,6 +35,7 @@ interface EffectsLib {
32
35
  * @source https://wiki.facepunch.com/gmod/effects.Create
33
36
  */
34
37
  Create(name: string): table;
38
+
35
39
  /**
36
40
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
37
41
  * Returns a list of all Lua-defined effects.
@@ -39,6 +43,7 @@ interface EffectsLib {
39
43
  * @source https://wiki.facepunch.com/gmod/effects.GetList
40
44
  */
41
45
  GetList(): table;
46
+
42
47
  /**
43
48
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
44
49
  * Registers a new effect.
@@ -46,6 +51,7 @@ interface EffectsLib {
46
51
  * @source https://wiki.facepunch.com/gmod/effects.Register
47
52
  */
48
53
  Register(effect_table: table, name: string): void;
54
+
49
55
  /**
50
56
  * Imitates the "near miss" tracer sound, with the ability to override the sound played.
51
57
  *
@@ -56,10 +62,3 @@ interface EffectsLib {
56
62
  */
57
63
  TracerSound(start: Vector, endpos: Vector, tracerType?: number, soundOverride?: string): void;
58
64
  }
59
-
60
-
61
-
62
-
63
-
64
-
65
-