@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
@@ -13,6 +13,7 @@ interface Player_managerLib {
13
13
  * @source https://wiki.facepunch.com/gmod/player_manager.AddValidHands
14
14
  */
15
15
  AddValidHands(name: string, model: string, skin?: number, bodygroups?: string, matchBodySkin?: boolean): void;
16
+
16
17
  /**
17
18
  * Associates a simplified name with a path to a valid player model.
18
19
  *
@@ -23,36 +24,42 @@ interface Player_managerLib {
23
24
  * @source https://wiki.facepunch.com/gmod/player_manager.AddValidModel
24
25
  */
25
26
  AddValidModel(name: string, model: string): void;
27
+
26
28
  /**
27
29
  * Returns the entire list of valid player models.
28
30
  * @realm shared
29
31
  * @source https://wiki.facepunch.com/gmod/player_manager.AllValidModels
30
32
  */
31
33
  AllValidModels(): table;
34
+
32
35
  /**
33
36
  * Clears a player's class association by setting their ClassID to 0.
34
37
  * @realm shared
35
38
  * @source https://wiki.facepunch.com/gmod/player_manager.ClearPlayerClass
36
39
  */
37
40
  ClearPlayerClass(ply: Player): void;
41
+
38
42
  /**
39
43
  * Gets a players class.
40
44
  * @realm shared
41
45
  * @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClass
42
46
  */
43
47
  GetPlayerClass(ply: Player): string;
48
+
44
49
  /**
45
50
  * Gets a players' class table.
46
51
  * @realm shared
47
52
  * @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClassTable
48
53
  */
49
54
  GetPlayerClassTable(ply: Player): table;
55
+
50
56
  /**
51
57
  * Retrieves a copy of all registered player classes.
52
58
  * @realm shared
53
59
  * @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClasses
54
60
  */
55
61
  GetPlayerClasses(): table;
62
+
56
63
  /**
57
64
  * Applies basic class variables when the player spawns.
58
65
  *
@@ -62,24 +69,28 @@ interface Player_managerLib {
62
69
  * @source https://wiki.facepunch.com/gmod/player_manager.OnPlayerSpawn
63
70
  */
64
71
  OnPlayerSpawn(ply: Player, transition: boolean): void;
72
+
65
73
  /**
66
74
  * Register a class metatable to be assigned to players later.
67
75
  * @realm shared
68
76
  * @source https://wiki.facepunch.com/gmod/player_manager.RegisterClass
69
77
  */
70
78
  RegisterClass(name: string, table: PLAYER, base?: string): void;
79
+
71
80
  /**
72
81
  * Execute a named function within the player's set class.
73
82
  * @realm shared
74
83
  * @source https://wiki.facepunch.com/gmod/player_manager.RunClass
75
84
  */
76
85
  RunClass(ply: Player, funcName: string, ...: any): (...any);
86
+
77
87
  /**
78
88
  * Sets a player's class.
79
89
  * @realm shared
80
90
  * @source https://wiki.facepunch.com/gmod/player_manager.SetPlayerClass
81
91
  */
82
92
  SetPlayerClass(ply: Player, className: string): void;
93
+
83
94
  /**
84
95
  * Retrieves correct hands for given player model. By default returns citizen hands.
85
96
  *
@@ -89,12 +100,14 @@ interface Player_managerLib {
89
100
  * @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerHands
90
101
  */
91
102
  TranslatePlayerHands(name: string): table;
103
+
92
104
  /**
93
105
  * Returns the valid model path for a simplified name.
94
106
  * @realm shared
95
107
  * @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerModel
96
108
  */
97
109
  TranslatePlayerModel(shortName: string): string;
110
+
98
111
  /**
99
112
  * Returns the simplified name for a valid model path of a player model.
100
113
  *
@@ -105,17 +118,3 @@ interface Player_managerLib {
105
118
  */
106
119
  TranslateToPlayerModelName(model: string): string;
107
120
  }
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/PresetEditor
11
11
  */
12
12
  interface PresetEditor extends DFrame {}
13
-
@@ -13,6 +13,7 @@ interface PresetsLib {
13
13
  * @source https://wiki.facepunch.com/gmod/presets.Add
14
14
  */
15
15
  Add(groupname: string, name: string, values: table): void;
16
+
16
17
  /**
17
18
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
18
19
  *
@@ -23,18 +24,21 @@ interface PresetsLib {
23
24
  * @source https://wiki.facepunch.com/gmod/presets.BadNameAlert
24
25
  */
25
26
  BadNameAlert(): void;
27
+
26
28
  /**
27
29
  * Returns whether a preset with given name exists or not
28
30
  * @realm client
29
31
  * @source https://wiki.facepunch.com/gmod/presets.Exists
30
32
  */
31
33
  Exists(type: string, name: string): boolean;
34
+
32
35
  /**
33
36
  * Returns a table with preset names and values from a single preset group.
34
37
  * @realm client
35
38
  * @source https://wiki.facepunch.com/gmod/presets.GetTable
36
39
  */
37
40
  GetTable(groupname: string): table;
41
+
38
42
  /**
39
43
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
40
44
  *
@@ -45,12 +49,14 @@ interface PresetsLib {
45
49
  * @source https://wiki.facepunch.com/gmod/presets.OverwritePresetPrompt
46
50
  */
47
51
  OverwritePresetPrompt(callback: function): void;
52
+
48
53
  /**
49
54
  * Removes a preset entry from a preset group.
50
55
  * @realm client
51
56
  * @source https://wiki.facepunch.com/gmod/presets.Remove
52
57
  */
53
58
  Remove(groupname: string, name: string): void;
59
+
54
60
  /**
55
61
  * Renames preset.
56
62
  * @realm client
@@ -58,10 +64,3 @@ interface PresetsLib {
58
64
  */
59
65
  Rename(groupname: string, oldname: string, newname: string): void;
60
66
  }
61
-
62
-
63
-
64
-
65
-
66
-
67
-
@@ -11,12 +11,14 @@ interface ProjectedTexture {
11
11
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetAngles
12
12
  */
13
13
  GetAngles(self: ProjectedTexture): Angle;
14
+
14
15
  /**
15
16
  * Returns the brightness of the ProjectedTexture, which was previously set by [ProjectedTexture:SetBrightness](https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness)
16
17
  * @realm client
17
18
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetBrightness
18
19
  */
19
20
  GetBrightness(self: ProjectedTexture): number;
21
+
20
22
  /**
21
23
  * Returns the color of the ProjectedTexture, which was previously set by [ProjectedTexture:SetColor](https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor).
22
24
  *
@@ -24,48 +26,56 @@ interface ProjectedTexture {
24
26
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetColor
25
27
  */
26
28
  GetColor(self: ProjectedTexture): Color;
29
+
27
30
  /**
28
31
  * Returns the constant attenuation of the projected texture, which can also be set by [ProjectedTexture:SetConstantAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation).
29
32
  * @realm client
30
33
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetConstantAttenuation
31
34
  */
32
35
  GetConstantAttenuation(self: ProjectedTexture): number;
36
+
33
37
  /**
34
38
  * Returns whether shadows are enabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetEnableShadows](https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows)
35
39
  * @realm client
36
40
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetEnableShadows
37
41
  */
38
42
  GetEnableShadows(self: ProjectedTexture): boolean;
43
+
39
44
  /**
40
45
  * Returns the projection distance of the ProjectedTexture, which was previously set by [ProjectedTexture:SetFarZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ)
41
46
  * @realm client
42
47
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetFarZ
43
48
  */
44
49
  GetFarZ(self: ProjectedTexture): number;
50
+
45
51
  /**
46
52
  * Returns the horizontal FOV of the ProjectedTexture, which was previously set by [ProjectedTexture:SetHorizontalFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetHorizontalFOV) or [ProjectedTexture:SetFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV)
47
53
  * @realm client
48
54
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetHorizontalFOV
49
55
  */
50
56
  GetHorizontalFOV(self: ProjectedTexture): number;
57
+
51
58
  /**
52
59
  * Returns whenever or not the Texture should light up world geometry.
53
60
  * @realm client
54
61
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLightWorld
55
62
  */
56
63
  GetLightWorld(self: ProjectedTexture): boolean;
64
+
57
65
  /**
58
66
  * Returns the linear attenuation of the projected texture, which can also be set by [ProjectedTexture:SetLinearAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation).
59
67
  * @realm client
60
68
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLinearAttenuation
61
69
  */
62
70
  GetLinearAttenuation(self: ProjectedTexture): number;
71
+
63
72
  /**
64
73
  * Returns the NearZ value of the ProjectedTexture, which was previously set by [ProjectedTexture:SetNearZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ)
65
74
  * @realm client
66
75
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNearZ
67
76
  */
68
77
  GetNearZ(self: ProjectedTexture): number;
78
+
69
79
  /**
70
80
  * Returns the state of projected texture view-frustum culling. See [ProjectedTexture:SetNoCull](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull).
71
81
  *
@@ -73,24 +83,28 @@ interface ProjectedTexture {
73
83
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNoCull
74
84
  */
75
85
  GetNoCull(self: ProjectedTexture): boolean;
86
+
76
87
  /**
77
88
  * Returns the current orthographic settings of the Projected Texture. To set these values, use [ProjectedTexture:SetOrthographic](https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic).
78
89
  * @realm client
79
90
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetOrthographic
80
91
  */
81
92
  GetOrthographic(self: ProjectedTexture): (boolean, number, number, number, number);
93
+
82
94
  /**
83
95
  * Returns the position of the ProjectedTexture, which was previously set by [ProjectedTexture:SetPos](https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos)
84
96
  * @realm client
85
97
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetPos
86
98
  */
87
99
  GetPos(self: ProjectedTexture): Vector;
100
+
88
101
  /**
89
102
  * Returns the quadratic attenuation of the projected texture, which can also be set by [ProjectedTexture:SetQuadraticAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation).
90
103
  * @realm client
91
104
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetQuadraticAttenuation
92
105
  */
93
106
  GetQuadraticAttenuation(self: ProjectedTexture): number;
107
+
94
108
  /**
95
109
  * Returns the shadow depth bias of the projected texture.
96
110
  *
@@ -100,6 +114,7 @@ interface ProjectedTexture {
100
114
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowDepthBias
101
115
  */
102
116
  GetShadowDepthBias(self: ProjectedTexture): number;
117
+
103
118
  /**
104
119
  * Returns the shadow "filter size" of the projected texture. `0` is fully pixelated, higher values will blur the shadow more.
105
120
  *
@@ -109,6 +124,7 @@ interface ProjectedTexture {
109
124
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowFilter
110
125
  */
111
126
  GetShadowFilter(self: ProjectedTexture): number;
127
+
112
128
  /**
113
129
  * Returns the shadow depth slope scale bias of the projected texture.
114
130
  *
@@ -118,12 +134,14 @@ interface ProjectedTexture {
118
134
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowSlopeScaleDepthBias
119
135
  */
120
136
  GetShadowSlopeScaleDepthBias(self: ProjectedTexture): number;
137
+
121
138
  /**
122
139
  * Returns whether shadow updates are disabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetSkipShadowUpdates](https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates).
123
140
  * @realm client
124
141
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetSkipShadowUpdates
125
142
  */
126
143
  GetSkipShadowUpdates(self: ProjectedTexture): boolean;
144
+
127
145
  /**
128
146
  * Returns the target entity of this projected texture.
129
147
  *
@@ -132,24 +150,28 @@ interface ProjectedTexture {
132
150
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTargetEntity
133
151
  */
134
152
  GetTargetEntity(self: ProjectedTexture): Entity;
153
+
135
154
  /**
136
155
  * Returns the texture of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTexture](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture)
137
156
  * @realm client
138
157
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTexture
139
158
  */
140
159
  GetTexture(self: ProjectedTexture): ITexture;
160
+
141
161
  /**
142
162
  * Returns the texture frame of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTextureFrame](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame)
143
163
  * @realm client
144
164
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTextureFrame
145
165
  */
146
166
  GetTextureFrame(self: ProjectedTexture): number;
167
+
147
168
  /**
148
169
  * Returns the vertical FOV of the ProjectedTexture, which was previously set by [ProjectedTexture:SetVerticalFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetVerticalFOV) or [ProjectedTexture:SetFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV)
149
170
  * @realm client
150
171
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetVerticalFOV
151
172
  */
152
173
  GetVerticalFOV(self: ProjectedTexture): number;
174
+
153
175
  /**
154
176
  * Returns true if the projected texture is valid (i.e. has not been removed), false otherwise.
155
177
  *
@@ -167,12 +189,14 @@ interface ProjectedTexture {
167
189
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:IsValid
168
190
  */
169
191
  IsValid(self: ProjectedTexture): boolean;
192
+
170
193
  /**
171
194
  * Removes the projected texture. After calling this, [ProjectedTexture:IsValid](https://wiki.facepunch.com/gmod/ProjectedTexture:IsValid) will return false, and any hooks with the projected texture as the identifier will be automatically deleted.
172
195
  * @realm client
173
196
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:Remove
174
197
  */
175
198
  Remove(self: ProjectedTexture): void;
199
+
176
200
  /**
177
201
  * Sets the angles (direction) of the projected texture.
178
202
  *
@@ -182,6 +206,7 @@ interface ProjectedTexture {
182
206
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetAngles
183
207
  */
184
208
  SetAngles(self: ProjectedTexture, angle: Angle): void;
209
+
185
210
  /**
186
211
  * Sets the brightness of the projected texture.
187
212
  *
@@ -191,6 +216,7 @@ interface ProjectedTexture {
191
216
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness
192
217
  */
193
218
  SetBrightness(self: ProjectedTexture, brightness: number): void;
219
+
194
220
  /**
195
221
  * Sets the color of the projected texture.
196
222
  *
@@ -200,6 +226,7 @@ interface ProjectedTexture {
200
226
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor
201
227
  */
202
228
  SetColor(self: ProjectedTexture, color: Color): void;
229
+
203
230
  /**
204
231
  * Sets the constant attenuation of the projected texture.
205
232
  *
@@ -211,6 +238,7 @@ interface ProjectedTexture {
211
238
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation
212
239
  */
213
240
  SetConstantAttenuation(self: ProjectedTexture, constAtten: number): void;
241
+
214
242
  /**
215
243
  * Enable or disable shadows cast from the projected texture.
216
244
  *
@@ -223,6 +251,7 @@ interface ProjectedTexture {
223
251
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows
224
252
  */
225
253
  SetEnableShadows(self: ProjectedTexture, newState: boolean): void;
254
+
226
255
  /**
227
256
  * Sets the angle of projection.
228
257
  *
@@ -232,6 +261,7 @@ interface ProjectedTexture {
232
261
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV
233
262
  */
234
263
  SetFOV(self: ProjectedTexture, fov: number): void;
264
+
235
265
  /**
236
266
  * Sets the distance at which the projected texture ends.
237
267
  *
@@ -241,6 +271,7 @@ interface ProjectedTexture {
241
271
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ
242
272
  */
243
273
  SetFarZ(self: ProjectedTexture, farZ: number): void;
274
+
244
275
  /**
245
276
  * Sets the horizontal angle of projection without affecting the vertical angle.
246
277
  *
@@ -250,12 +281,14 @@ interface ProjectedTexture {
250
281
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetHorizontalFOV
251
282
  */
252
283
  SetHorizontalFOV(self: ProjectedTexture, hFOV: number): void;
284
+
253
285
  /**
254
286
  * Set whenever or not the Texture should light up world geometry.
255
287
  * @realm client
256
288
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLightWorld
257
289
  */
258
290
  SetLightWorld(self: ProjectedTexture, lightworld: boolean): void;
291
+
259
292
  /**
260
293
  * Sets the linear attenuation of the projected texture.
261
294
  *
@@ -269,6 +302,7 @@ interface ProjectedTexture {
269
302
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation
270
303
  */
271
304
  SetLinearAttenuation(self: ProjectedTexture, linearAtten: number): void;
305
+
272
306
  /**
273
307
  * Sets the distance at which the projected texture begins its projection.
274
308
  *
@@ -284,6 +318,7 @@ interface ProjectedTexture {
284
318
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ
285
319
  */
286
320
  SetNearZ(self: ProjectedTexture, nearZ: number): void;
321
+
287
322
  /**
288
323
  * Allows disabling of projected texture view-frustum culling for cases where said culling creates unwanted side effects. Disabling culling will have a negative effect on performance.
289
324
  *
@@ -293,6 +328,7 @@ interface ProjectedTexture {
293
328
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull
294
329
  */
295
330
  SetNoCull(self: ProjectedTexture, enable: boolean): void;
331
+
296
332
  /**
297
333
  * Changes the current projected texture between orthographic and perspective projection.
298
334
  *
@@ -304,6 +340,7 @@ interface ProjectedTexture {
304
340
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic
305
341
  */
306
342
  SetOrthographic(self: ProjectedTexture, orthographic: boolean, left: number, top: number, right: number, bottom: number): void;
343
+
307
344
  /**
308
345
  * Move the Projected Texture to the specified position.
309
346
  *
@@ -313,6 +350,7 @@ interface ProjectedTexture {
313
350
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos
314
351
  */
315
352
  SetPos(self: ProjectedTexture, position: Vector): void;
353
+
316
354
  /**
317
355
  * Sets the quadratic attenuation of the projected texture.
318
356
  *
@@ -324,6 +362,7 @@ interface ProjectedTexture {
324
362
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation
325
363
  */
326
364
  SetQuadraticAttenuation(self: ProjectedTexture, quadAtten: number): void;
365
+
327
366
  /**
328
367
  * Sets the shadow depth bias of the projected texture.
329
368
  *
@@ -335,6 +374,7 @@ interface ProjectedTexture {
335
374
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowDepthBias
336
375
  */
337
376
  SetShadowDepthBias(self: ProjectedTexture, bias: number): void;
377
+
338
378
  /**
339
379
  * Sets the shadow "filter size" of the projected texture. `0` is fully pixelated, higher values will blur the shadow more. The initial value is the value of `r_projectedtexture_filter` [ConVar](https://wiki.facepunch.com/gmod/ConVar).
340
380
  *
@@ -344,6 +384,7 @@ interface ProjectedTexture {
344
384
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowFilter
345
385
  */
346
386
  SetShadowFilter(self: ProjectedTexture, filter: number): void;
387
+
347
388
  /**
348
389
  * Sets the shadow depth slope scale bias of the projected texture.
349
390
  *
@@ -355,12 +396,14 @@ interface ProjectedTexture {
355
396
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowSlopeScaleDepthBias
356
397
  */
357
398
  SetShadowSlopeScaleDepthBias(self: ProjectedTexture, bias: number): void;
399
+
358
400
  /**
359
401
  * Sets whether shadow updates are disabled for this ProjectedTexture. This can be useful to save up on performance, but it will inevitably cause graphical glitches if left not updating for long.
360
402
  * @realm client
361
403
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates
362
404
  */
363
405
  SetSkipShadowUpdates(self: ProjectedTexture, enable: boolean): void;
406
+
364
407
  /**
365
408
  * Sets the target entity for this projected texture, meaning it will only be lighting the given entity and the world.
366
409
  *
@@ -370,6 +413,7 @@ interface ProjectedTexture {
370
413
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTargetEntity
371
414
  */
372
415
  SetTargetEntity(self: ProjectedTexture, target?: Entity): void;
416
+
373
417
  /**
374
418
  * Sets the texture to be projected.
375
419
  *
@@ -379,6 +423,7 @@ interface ProjectedTexture {
379
423
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture
380
424
  */
381
425
  SetTexture(self: ProjectedTexture, texture: string): void;
426
+
382
427
  /**
383
428
  * For animated textures, this will choose which frame in the animation will be projected.
384
429
  *
@@ -388,6 +433,7 @@ interface ProjectedTexture {
388
433
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame
389
434
  */
390
435
  SetTextureFrame(self: ProjectedTexture, frame: number): void;
436
+
391
437
  /**
392
438
  * Sets the vertical angle of projection without affecting the horizontal angle.
393
439
  *
@@ -397,6 +443,7 @@ interface ProjectedTexture {
397
443
  * @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetVerticalFOV
398
444
  */
399
445
  SetVerticalFOV(self: ProjectedTexture, vFOV: number): void;
446
+
400
447
  /**
401
448
  * Updates the Projected Light and applies all previously set parameters.
402
449
  *
@@ -407,52 +454,3 @@ interface ProjectedTexture {
407
454
  */
408
455
  Update(self: ProjectedTexture): void;
409
456
  }
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
@@ -13,6 +13,7 @@ interface PropertiesLib {
13
13
  * @source https://wiki.facepunch.com/gmod/properties.Add
14
14
  */
15
15
  Add(name: string, propertyData: PropertyAdd): void;
16
+
16
17
  /**
17
18
  * Returns true if given entity can be targeted by the player via the properties system.
18
19
  *
@@ -22,24 +23,28 @@ interface PropertiesLib {
22
23
  * @source https://wiki.facepunch.com/gmod/properties.CanBeTargeted
23
24
  */
24
25
  CanBeTargeted(ent: Entity, ply: Player): boolean;
26
+
25
27
  /**
26
28
  * Returns an entity player is hovering over with their cursor.
27
29
  * @realm client
28
30
  * @source https://wiki.facepunch.com/gmod/properties.GetHovered
29
31
  */
30
32
  GetHovered(pos: Vector, aimVec: Vector): Entity;
33
+
31
34
  /**
32
35
  * Checks if player hovers over any entities and open a properties menu for it.
33
36
  * @realm shared
34
37
  * @source https://wiki.facepunch.com/gmod/properties.OnScreenClick
35
38
  */
36
39
  OnScreenClick(eyepos: Vector, eyevec: Vector): void;
40
+
37
41
  /**
38
42
  * Opens properties menu for given entity.
39
43
  * @realm shared
40
44
  * @source https://wiki.facepunch.com/gmod/properties.OpenEntityMenu
41
45
  */
42
46
  OpenEntityMenu(ent: Entity, tr: table): void;
47
+
43
48
  /**
44
49
  * Remove an entity right-click property. See [properties.Add](https://wiki.facepunch.com/gmod/properties.Add) for details.
45
50
  * @realm shared
@@ -47,9 +52,3 @@ interface PropertiesLib {
47
52
  */
48
53
  Remove(name: string): void;
49
54
  }
50
-
51
-
52
-
53
-
54
-
55
-
@@ -15,12 +15,14 @@ interface PropSelect extends ContextBase {
15
15
  * @source https://wiki.facepunch.com/gmod/PropSelect:AddModel
16
16
  */
17
17
  AddModel(self: PropSelect, model: string, convars: table): void;
18
+
18
19
  /**
19
20
  * Adds a new model to the selection list.
20
21
  * @realm client
21
22
  * @source https://wiki.facepunch.com/gmod/PropSelect:AddModelEx
22
23
  */
23
24
  AddModelEx(self: PropSelect, value: string, model: string, skin: number): void;
25
+
24
26
  /**
25
27
  * Find and select a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) panel based on the input model path.
26
28
  *
@@ -28,6 +30,7 @@ interface PropSelect extends ContextBase {
28
30
  * @source https://wiki.facepunch.com/gmod/PropSelect:FindAndSelectButton
29
31
  */
30
32
  FindAndSelectButton(self: PropSelect, mdl: string): void;
33
+
31
34
  /**
32
35
  * Find a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) panel based on the input model path.
33
36
  *
@@ -36,8 +39,3 @@ interface PropSelect extends ContextBase {
36
39
  */
37
40
  FindModelByValue(self: PropSelect, mdl: string): SpawnIcon;
38
41
  }
39
-
40
-
41
-
42
-
43
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/RadioButton
11
11
  */
12
12
  interface RadioButton extends Panel {}
13
-