@tlua/gmod 1.0.4 → 1.0.5

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 (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -7,14 +7,6 @@
7
7
  *
8
8
  * @source https://wiki.facepunch.com/gmod/DRIVE_Hooks
9
9
  */
10
- interface DRIVE {}
11
-
12
- /**
13
- * The drive library is for adding custom control modes to the new "remote control" entity piloting system in Garry's Mod 13. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
14
- * @source https://wiki.facepunch.com/gmod/drive
15
- */
16
- declare drive: DriveLib;
17
-
18
10
  interface DRIVE {
19
11
  /**
20
12
  * Optionally alter the player's view if they are using this [drive](https://wiki.facepunch.com/gmod/drive) mode.
@@ -27,6 +19,13 @@ interface DRIVE {
27
19
  CalcView(self: DRIVE, view_in: CamData): void;
28
20
  }
29
21
 
22
+ /**
23
+ * The drive library is for adding custom control modes to the new "remote control" entity piloting system in Garry's Mod 13. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
24
+ * @source https://wiki.facepunch.com/gmod/drive
25
+ */
26
+ declare drive: DriveLib;
27
+
28
+
30
29
  interface DriveLib {
31
30
  /**
32
31
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
@@ -38,9 +37,6 @@ interface DriveLib {
38
37
  * @source https://wiki.facepunch.com/gmod/drive.CalcView
39
38
  */
40
39
  CalcView(ply: Player, view: ViewData): boolean;
41
- }
42
-
43
- interface DriveLib {
44
40
  /**
45
41
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
46
42
  *
@@ -50,9 +46,6 @@ interface DriveLib {
50
46
  * @source https://wiki.facepunch.com/gmod/drive.CreateMove
51
47
  */
52
48
  CreateMove(cmd: CUserCmd): boolean;
53
- }
54
-
55
- interface DriveLib {
56
49
  /**
57
50
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
58
51
  *
@@ -62,18 +55,12 @@ interface DriveLib {
62
55
  * @source https://wiki.facepunch.com/gmod/drive.DestroyMethod
63
56
  */
64
57
  DestroyMethod(ply: Player): void;
65
- }
66
-
67
- interface DriveLib {
68
58
  /**
69
59
  * Player has stopped driving the entity.
70
60
  * @realm shared
71
61
  * @source https://wiki.facepunch.com/gmod/drive.End
72
62
  */
73
63
  End(ply: Player, ent: Entity): void;
74
- }
75
-
76
- interface DriveLib {
77
64
  /**
78
65
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
79
66
  *
@@ -83,9 +70,6 @@ interface DriveLib {
83
70
  * @source https://wiki.facepunch.com/gmod/drive.FinishMove
84
71
  */
85
72
  FinishMove(ply: Player, mv: CMoveData): boolean;
86
- }
87
-
88
- interface DriveLib {
89
73
  /**
90
74
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
91
75
  *
@@ -95,9 +79,6 @@ interface DriveLib {
95
79
  * @source https://wiki.facepunch.com/gmod/drive.GetMethod
96
80
  */
97
81
  GetMethod(ply: Player): table;
98
- }
99
-
100
- interface DriveLib {
101
82
  /**
102
83
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
103
84
  *
@@ -107,45 +88,30 @@ interface DriveLib {
107
88
  * @source https://wiki.facepunch.com/gmod/drive.Move
108
89
  */
109
90
  Move(ply: Player, mv: CMoveData): boolean;
110
- }
111
-
112
- interface DriveLib {
113
91
  /**
114
92
  * Starts driving for the player.
115
93
  * @realm shared
116
94
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStartDriving
117
95
  */
118
96
  PlayerStartDriving(ply: Player, ent: Entity, mode: string): void;
119
- }
120
-
121
- interface DriveLib {
122
97
  /**
123
98
  * Stops the player from driving anything. ( For example a prop in sandbox )
124
99
  * @realm shared
125
100
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStopDriving
126
101
  */
127
102
  PlayerStopDriving(ply: Player): void;
128
- }
129
-
130
- interface DriveLib {
131
103
  /**
132
104
  * Registers a new entity drive mode/method.
133
105
  * @realm shared
134
106
  * @source https://wiki.facepunch.com/gmod/drive.Register
135
107
  */
136
108
  Register(name: string, data: table, base?: string): void;
137
- }
138
-
139
- interface DriveLib {
140
109
  /**
141
110
  * Called when the player first starts driving this entity.
142
111
  * @realm shared
143
112
  * @source https://wiki.facepunch.com/gmod/drive.Start
144
113
  */
145
114
  Start(ply: Player, ent: Entity): void;
146
- }
147
-
148
- interface DriveLib {
149
115
  /**
150
116
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
151
117
  *
@@ -157,3 +123,14 @@ interface DriveLib {
157
123
  StartMove(ply: Player, mv: CMoveData, cmd: CUserCmd): boolean;
158
124
  }
159
125
 
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
@@ -5,54 +5,36 @@ interface DScrollPanel extends DPanel {
5
5
  pnlCanvas: Panel;
6
6
  /** The vertical scroll bar. */
7
7
  VBar: DVScrollBar;
8
- }
9
-
10
- interface DScrollPanel {
11
8
  /**
12
9
  * Parents the passed panel to the DScrollPanel's canvas.
13
10
  * @realm client and menu
14
11
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:AddItem
15
12
  */
16
13
  AddItem(self: DScrollPanel, pnl: Panel): void;
17
- }
18
-
19
- interface DScrollPanel {
20
14
  /**
21
15
  * Returns the canvas ( The panel all child panels are parented to ) of the DScrollPanel.
22
16
  * @realm client and menu
23
17
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:GetCanvas
24
18
  */
25
19
  GetCanvas(self: DScrollPanel): Panel;
26
- }
27
-
28
- interface DScrollPanel {
29
20
  /**
30
21
  * Gets the [DScrollPanel](https://wiki.facepunch.com/gmod/DScrollPanel)s padding, set by [DScrollPanel:SetPadding](https://wiki.facepunch.com/gmod/DScrollPanel:SetPadding).
31
22
  * @realm client and menu
32
23
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:GetPadding
33
24
  */
34
25
  GetPadding(self: DScrollPanel): number;
35
- }
36
-
37
- interface DScrollPanel {
38
26
  /**
39
27
  * Returns the vertical scroll bar of the panel.
40
28
  * @realm client and menu
41
29
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:GetVBar
42
30
  */
43
31
  GetVBar(self: DScrollPanel): DVScrollBar;
44
- }
45
-
46
- interface DScrollPanel {
47
32
  /**
48
33
  * Return the width of the DScrollPanel's canvas.
49
34
  * @realm client and menu
50
35
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:InnerWidth
51
36
  */
52
37
  InnerWidth(self: DScrollPanel): number;
53
- }
54
-
55
- interface DScrollPanel {
56
38
  /**
57
39
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
58
40
  *
@@ -63,9 +45,6 @@ interface DScrollPanel {
63
45
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:PerformLayoutInternal
64
46
  */
65
47
  PerformLayoutInternal(self: DScrollPanel): void;
66
- }
67
-
68
- interface DScrollPanel {
69
48
  /**
70
49
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
71
50
  *
@@ -76,18 +55,12 @@ interface DScrollPanel {
76
55
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:Rebuild
77
56
  */
78
57
  Rebuild(self: DScrollPanel): void;
79
- }
80
-
81
- interface DScrollPanel {
82
58
  /**
83
59
  * Scrolls to the given child
84
60
  * @realm client and menu
85
61
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:ScrollToChild
86
62
  */
87
63
  ScrollToChild(self: DScrollPanel, panel: Panel): void;
88
- }
89
-
90
- interface DScrollPanel {
91
64
  /**
92
65
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
93
66
  *
@@ -97,9 +70,6 @@ interface DScrollPanel {
97
70
  * @source https://wiki.facepunch.com/gmod/DScrollPanel:SetCanvas
98
71
  */
99
72
  SetCanvas(self: DScrollPanel, canvas: Panel): void;
100
- }
101
-
102
- interface DScrollPanel {
103
73
  /**
104
74
  * Sets the DScrollPanel's padding. This function appears to be unused.
105
75
  * @realm client and menu
@@ -108,3 +78,13 @@ interface DScrollPanel {
108
78
  SetPadding(self: DScrollPanel, padding: number): void;
109
79
  }
110
80
 
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
@@ -5,9 +5,7 @@
5
5
  * @realm client
6
6
  * @source https://wiki.facepunch.com/gmod/DShape
7
7
  */
8
- interface DShape extends DPanel {}
9
-
10
- interface DShape {
8
+ interface DShape extends DPanel {
11
9
  /**
12
10
  * Returns the current type of shape this panel is set to display.
13
11
  *
@@ -17,18 +15,12 @@ interface DShape {
17
15
  * @source https://wiki.facepunch.com/gmod/DShape:GetBorderColor
18
16
  */
19
17
  GetBorderColor(self: DShape): Color;
20
- }
21
-
22
- interface DShape {
23
18
  /**
24
19
  * Returns the color set to display the shape with.
25
20
  * @realm client
26
21
  * @source https://wiki.facepunch.com/gmod/DShape:GetColor
27
22
  */
28
23
  GetColor(self: DShape): Color;
29
- }
30
-
31
- interface DShape {
32
24
  /**
33
25
  * Returns the current type of shape this panel is set to display.
34
26
  *
@@ -38,9 +30,6 @@ interface DShape {
38
30
  * @source https://wiki.facepunch.com/gmod/DShape:GetType
39
31
  */
40
32
  GetType(self: DShape): string;
41
- }
42
-
43
- interface DShape {
44
33
  /**
45
34
  * Sets the border color of the shape.
46
35
  *
@@ -50,18 +39,12 @@ interface DShape {
50
39
  * @source https://wiki.facepunch.com/gmod/DShape:SetBorderColor
51
40
  */
52
41
  SetBorderColor(self: DShape, clr: Color): void;
53
- }
54
-
55
- interface DShape {
56
42
  /**
57
43
  * Sets the color to display the shape with.
58
44
  * @realm client
59
45
  * @source https://wiki.facepunch.com/gmod/DShape:SetColor
60
46
  */
61
47
  SetColor(self: DShape, clr: Color): void;
62
- }
63
-
64
- interface DShape {
65
48
  /**
66
49
  * Sets the shape to be drawn.
67
50
  * @realm client
@@ -70,3 +53,9 @@ interface DShape {
70
53
  SetType(self: DShape, type: string): void;
71
54
  }
72
55
 
56
+
57
+
58
+
59
+
60
+
61
+
@@ -6,36 +6,25 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DSizeToContents
8
8
  */
9
- interface DSizeToContents extends Panel {}
10
-
11
- interface DSizeToContents {
9
+ interface DSizeToContents extends Panel {
12
10
  /**
13
11
  * Returns whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents horizontally.
14
12
  * @realm client and menu
15
13
  * @source https://wiki.facepunch.com/gmod/DSizeToContents:GetSizeX
16
14
  */
17
15
  GetSizeX(self: DSizeToContents): boolean;
18
- }
19
-
20
- interface DSizeToContents {
21
16
  /**
22
17
  * Returns whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents vertically.
23
18
  * @realm client and menu
24
19
  * @source https://wiki.facepunch.com/gmod/DSizeToContents:GetSizeY
25
20
  */
26
21
  GetSizeY(self: DSizeToContents): boolean;
27
- }
28
-
29
- interface DSizeToContents {
30
22
  /**
31
23
  * Sets whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents horizontally. This is `true` by default.
32
24
  * @realm client and menu
33
25
  * @source https://wiki.facepunch.com/gmod/DSizeToContents:SetSizeX
34
26
  */
35
27
  SetSizeX(self: DSizeToContents, sizeX: boolean): void;
36
- }
37
-
38
- interface DSizeToContents {
39
28
  /**
40
29
  * Sets whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents vertically. This is `true` by default.
41
30
  * @realm client and menu
@@ -44,3 +33,7 @@ interface DSizeToContents {
44
33
  SetSizeY(self: DSizeToContents, sizeY: boolean): void;
45
34
  }
46
35
 
36
+
37
+
38
+
39
+
@@ -5,9 +5,7 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DSlider
7
7
  */
8
- interface DSlider extends Panel {}
9
-
10
- interface DSlider {
8
+ interface DSlider extends Panel {
11
9
  /**
12
10
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
13
11
  *
@@ -18,9 +16,6 @@ interface DSlider {
18
16
  * @source https://wiki.facepunch.com/gmod/DSlider:ConVarXNumberThink
19
17
  */
20
18
  ConVarXNumberThink(self: DSlider): void;
21
- }
22
-
23
- interface DSlider {
24
19
  /**
25
20
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
26
21
  *
@@ -31,18 +26,12 @@ interface DSlider {
31
26
  * @source https://wiki.facepunch.com/gmod/DSlider:ConVarYNumberThink
32
27
  */
33
28
  ConVarYNumberThink(self: DSlider): void;
34
- }
35
-
36
- interface DSlider {
37
29
  /**
38
30
  * Identical to [DSlider:IsEditing](https://wiki.facepunch.com/gmod/DSlider:IsEditing)
39
31
  * @realm client and menu
40
32
  * @source https://wiki.facepunch.com/gmod/DSlider:GetDragging
41
33
  */
42
34
  GetDragging(self: DSlider): boolean;
43
- }
44
-
45
- interface DSlider {
46
35
  /**
47
36
  * Returns the draggable panel's lock on the X axis.
48
37
  *
@@ -52,9 +41,6 @@ interface DSlider {
52
41
  * @source https://wiki.facepunch.com/gmod/DSlider:GetLockX
53
42
  */
54
43
  GetLockX(self: DSlider): number;
55
- }
56
-
57
- interface DSlider {
58
44
  /**
59
45
  * Returns the draggable panel's lock on the Y axis.
60
46
  *
@@ -64,9 +50,6 @@ interface DSlider {
64
50
  * @source https://wiki.facepunch.com/gmod/DSlider:GetLockY
65
51
  */
66
52
  GetLockY(self: DSlider): number;
67
- }
68
-
69
- interface DSlider {
70
53
  /**
71
54
  * Returns the current notch color, set by [DSlider:SetNotchColor](https://wiki.facepunch.com/gmod/DSlider:SetNotchColor)
72
55
  * @realm client and menu
@@ -74,9 +57,6 @@ interface DSlider {
74
57
  * @deprecated Does not affect anything by default.
75
58
  */
76
59
  GetNotchColor(self: DSlider): Color;
77
- }
78
-
79
- interface DSlider {
80
60
  /**
81
61
  * Appears to be non functioning, however is still used by panels such as [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
82
62
  *
@@ -84,9 +64,6 @@ interface DSlider {
84
64
  * @source https://wiki.facepunch.com/gmod/DSlider:GetNotches
85
65
  */
86
66
  GetNotches(self: DSlider): number;
87
- }
88
-
89
- interface DSlider {
90
67
  /**
91
68
  * Does nothing.
92
69
  *
@@ -94,9 +71,6 @@ interface DSlider {
94
71
  * @source https://wiki.facepunch.com/gmod/DSlider:GetNumSlider
95
72
  */
96
73
  GetNumSlider(self: DSlider): any;
97
- }
98
-
99
- interface DSlider {
100
74
  /**
101
75
  * Returns the target position of the draggable "knob" panel of the slider on the X axis.
102
76
  *
@@ -106,9 +80,6 @@ interface DSlider {
106
80
  * @source https://wiki.facepunch.com/gmod/DSlider:GetSlideX
107
81
  */
108
82
  GetSlideX(self: DSlider): number;
109
- }
110
-
111
- interface DSlider {
112
83
  /**
113
84
  * Returns the target position of the draggable "knob" panel of the slider on the Y axis.
114
85
  *
@@ -118,9 +89,6 @@ interface DSlider {
118
89
  * @source https://wiki.facepunch.com/gmod/DSlider:GetSlideY
119
90
  */
120
91
  GetSlideY(self: DSlider): number;
121
- }
122
-
123
- interface DSlider {
124
92
  /**
125
93
  * Returns the value set by [DSlider:SetTrapInside](https://wiki.facepunch.com/gmod/DSlider:SetTrapInside).
126
94
  *
@@ -128,18 +96,12 @@ interface DSlider {
128
96
  * @source https://wiki.facepunch.com/gmod/DSlider:GetTrapInside
129
97
  */
130
98
  GetTrapInside(self: DSlider): boolean;
131
- }
132
-
133
- interface DSlider {
134
99
  /**
135
100
  * Returns true if this element is being edited by the player.
136
101
  * @realm client and menu
137
102
  * @source https://wiki.facepunch.com/gmod/DSlider:IsEditing
138
103
  */
139
104
  IsEditing(self: DSlider): boolean;
140
- }
141
-
142
- interface DSlider {
143
105
  /**
144
106
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
145
107
  *
@@ -150,18 +112,12 @@ interface DSlider {
150
112
  * @source https://wiki.facepunch.com/gmod/DSlider:OnValuesChangedInternal
151
113
  */
152
114
  OnValuesChangedInternal(self: DSlider): void;
153
- }
154
-
155
- interface DSlider {
156
115
  /**
157
116
  * Sets the background for the slider.
158
117
  * @realm client and menu
159
118
  * @source https://wiki.facepunch.com/gmod/DSlider:SetBackground
160
119
  */
161
120
  SetBackground(self: DSlider, path: string): void;
162
- }
163
-
164
- interface DSlider {
165
121
  /**
166
122
  * Sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) to be set when the slider changes on the X axis.
167
123
  *
@@ -169,9 +125,6 @@ interface DSlider {
169
125
  * @source https://wiki.facepunch.com/gmod/DSlider:SetConVarX
170
126
  */
171
127
  SetConVarX(self: DSlider, convar: string): void;
172
- }
173
-
174
- interface DSlider {
175
128
  /**
176
129
  * Sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) to be set when the slider changes on the Y axis.
177
130
  *
@@ -179,9 +132,6 @@ interface DSlider {
179
132
  * @source https://wiki.facepunch.com/gmod/DSlider:SetConVarY
180
133
  */
181
134
  SetConVarY(self: DSlider, convar: string): void;
182
- }
183
-
184
- interface DSlider {
185
135
  /**
186
136
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
187
137
  *
@@ -192,9 +142,6 @@ interface DSlider {
192
142
  * @source https://wiki.facepunch.com/gmod/DSlider:SetDragging
193
143
  */
194
144
  SetDragging(self: DSlider, dragging: boolean): void;
195
- }
196
-
197
- interface DSlider {
198
145
  /**
199
146
  * Does nothing.
200
147
  *
@@ -202,9 +149,6 @@ interface DSlider {
202
149
  * @source https://wiki.facepunch.com/gmod/DSlider:SetImage
203
150
  */
204
151
  SetImage(self: DSlider): void;
205
- }
206
-
207
- interface DSlider {
208
152
  /**
209
153
  * Does nothing.
210
154
  *
@@ -212,9 +156,6 @@ interface DSlider {
212
156
  * @source https://wiki.facepunch.com/gmod/DSlider:SetImageColor
213
157
  */
214
158
  SetImageColor(self: DSlider): void;
215
- }
216
-
217
- interface DSlider {
218
159
  /**
219
160
  * Sets the lock on the X axis.
220
161
  *
@@ -224,9 +165,6 @@ interface DSlider {
224
165
  * @source https://wiki.facepunch.com/gmod/DSlider:SetLockX
225
166
  */
226
167
  SetLockX(self: DSlider, lockX?: number): void;
227
- }
228
-
229
- interface DSlider {
230
168
  /**
231
169
  * Sets the lock on the Y axis.
232
170
  *
@@ -236,9 +174,6 @@ interface DSlider {
236
174
  * @source https://wiki.facepunch.com/gmod/DSlider:SetLockY
237
175
  */
238
176
  SetLockY(self: DSlider, lockY?: number): void;
239
- }
240
-
241
- interface DSlider {
242
177
  /**
243
178
  * Sets the current notch color, overriding the color set by the derma skin.
244
179
  * @realm client and menu
@@ -246,9 +181,6 @@ interface DSlider {
246
181
  * @deprecated Does not affect anything by default.
247
182
  */
248
183
  SetNotchColor(self: DSlider, clr: Color): void;
249
- }
250
-
251
- interface DSlider {
252
184
  /**
253
185
  * Appears to be non functioning, however is still used by panels such as [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
254
186
  *
@@ -256,9 +188,6 @@ interface DSlider {
256
188
  * @source https://wiki.facepunch.com/gmod/DSlider:SetNotches
257
189
  */
258
190
  SetNotches(self: DSlider, notches: number): void;
259
- }
260
-
261
- interface DSlider {
262
191
  /**
263
192
  * Does nothing.
264
193
  *
@@ -266,9 +195,6 @@ interface DSlider {
266
195
  * @source https://wiki.facepunch.com/gmod/DSlider:SetNumSlider
267
196
  */
268
197
  SetNumSlider(self: DSlider, slider: any): void;
269
- }
270
-
271
- interface DSlider {
272
198
  /**
273
199
  * Used to position the draggable panel of the slider on the X axis.
274
200
  *
@@ -276,9 +202,6 @@ interface DSlider {
276
202
  * @source https://wiki.facepunch.com/gmod/DSlider:SetSlideX
277
203
  */
278
204
  SetSlideX(self: DSlider, x: number): void;
279
- }
280
-
281
- interface DSlider {
282
205
  /**
283
206
  * Used to position the draggable panel of the slider on the Y axis.
284
207
  *
@@ -286,9 +209,6 @@ interface DSlider {
286
209
  * @source https://wiki.facepunch.com/gmod/DSlider:SetSlideY
287
210
  */
288
211
  SetSlideY(self: DSlider, y: number): void;
289
- }
290
-
291
- interface DSlider {
292
212
  /**
293
213
  * Makes the slider itself, the "knob", trapped within the bounds of the slider panel. Example:
294
214
  *
@@ -300,3 +220,30 @@ interface DSlider {
300
220
  SetTrapInside(self: DSlider, trap: boolean): void;
301
221
  }
302
222
 
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+