@tlua/gmod 1.0.3 → 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 (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
@@ -8,72 +8,49 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/DSprite
10
10
  */
11
- interface DSprite extends DPanel {}
12
-
13
- interface DSprite {
11
+ interface DSprite extends DPanel {
14
12
  /**
15
13
  * Gets the color the sprite is using as a modifier.
16
14
  * @realm client
17
15
  * @source https://wiki.facepunch.com/gmod/DSprite:GetColor
18
16
  */
19
17
  GetColor(self: DSprite): Color;
20
- }
21
-
22
- interface DSprite {
23
18
  /**
24
19
  * Returns the value set by [DSprite:SetHandle](https://wiki.facepunch.com/gmod/DSprite:SetHandle)
25
20
  * @realm client
26
21
  * @source https://wiki.facepunch.com/gmod/DSprite:GetHandle
27
22
  */
28
23
  GetHandle(self: DSprite): Vector;
29
- }
30
-
31
- interface DSprite {
32
24
  /**
33
25
  * Gets the material the sprite is using.
34
26
  * @realm client
35
27
  * @source https://wiki.facepunch.com/gmod/DSprite:GetMaterial
36
28
  */
37
29
  GetMaterial(self: DSprite): IMaterial;
38
- }
39
-
40
- interface DSprite {
41
30
  /**
42
31
  * Gets the 2D rotation angle of the sprite, in the plane of the screen.
43
32
  * @realm client
44
33
  * @source https://wiki.facepunch.com/gmod/DSprite:GetRotation
45
34
  */
46
35
  GetRotation(self: DSprite): number;
47
- }
48
-
49
- interface DSprite {
50
36
  /**
51
37
  * Sets the color modifier for the sprite.
52
38
  * @realm client
53
39
  * @source https://wiki.facepunch.com/gmod/DSprite:SetColor
54
40
  */
55
41
  SetColor(self: DSprite, color: Color): void;
56
- }
57
-
58
- interface DSprite {
59
42
  /**
60
43
  * Seems to be an unused feature. Does nothing.
61
44
  * @realm client
62
45
  * @source https://wiki.facepunch.com/gmod/DSprite:SetHandle
63
46
  */
64
47
  SetHandle(self: DSprite, vec: Vector): void;
65
- }
66
-
67
- interface DSprite {
68
48
  /**
69
49
  * Sets the source material for the sprite.
70
50
  * @realm client
71
51
  * @source https://wiki.facepunch.com/gmod/DSprite:SetMaterial
72
52
  */
73
53
  SetMaterial(self: DSprite, material: IMaterial): void;
74
- }
75
-
76
- interface DSprite {
77
54
  /**
78
55
  * Sets the 2D rotation angle of the sprite, in the plane of the screen.
79
56
  * @realm client
@@ -82,3 +59,11 @@ interface DSprite {
82
59
  SetRotation(self: DSprite, ang: number): void;
83
60
  }
84
61
 
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
package/types/dtab.d.tlua CHANGED
@@ -8,27 +8,19 @@
8
8
  * @realm client and menu
9
9
  * @source https://wiki.facepunch.com/gmod/DTab
10
10
  */
11
- interface DTab extends DButton {}
12
-
13
- interface DTab {
11
+ interface DTab extends DButton {
14
12
  /**
15
13
  * Returns the panel that the tab represents.
16
14
  * @realm client and menu
17
15
  * @source https://wiki.facepunch.com/gmod/DTab:GetPanel
18
16
  */
19
17
  GetPanel(self: DTab): Panel;
20
- }
21
-
22
- interface DTab {
23
18
  /**
24
19
  * The [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet) this tab belongs to.
25
20
  * @realm client and menu
26
21
  * @source https://wiki.facepunch.com/gmod/DTab:GetPropertySheet
27
22
  */
28
23
  GetPropertySheet(self: DTab): Panel;
29
- }
30
-
31
- interface DTab {
32
24
  /**
33
25
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
34
26
  *
@@ -38,18 +30,12 @@ interface DTab {
38
30
  * @source https://wiki.facepunch.com/gmod/DTab:GetTabHeight
39
31
  */
40
32
  GetTabHeight(self: DTab): number;
41
- }
42
-
43
- interface DTab {
44
33
  /**
45
34
  * Returns whether the tab is the currently selected tab of the associated [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
46
35
  * @realm client and menu
47
36
  * @source https://wiki.facepunch.com/gmod/DTab:IsActive
48
37
  */
49
38
  IsActive(self: DTab): boolean;
50
- }
51
-
52
- interface DTab {
53
39
  /**
54
40
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
55
41
  * Used internally by [DTab:Setup](https://wiki.facepunch.com/gmod/DTab:Setup).
@@ -57,9 +43,6 @@ interface DTab {
57
43
  * @source https://wiki.facepunch.com/gmod/DTab:SetPanel
58
44
  */
59
45
  SetPanel(self: DTab, pnl: Panel): void;
60
- }
61
-
62
- interface DTab {
63
46
  /**
64
47
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
65
48
  * Used internally by [DTab:Setup](https://wiki.facepunch.com/gmod/DTab:Setup).
@@ -67,9 +50,6 @@ interface DTab {
67
50
  * @source https://wiki.facepunch.com/gmod/DTab:SetPropertySheet
68
51
  */
69
52
  SetPropertySheet(self: DTab, pnl: Panel): void;
70
- }
71
-
72
- interface DTab {
73
53
  /**
74
54
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
55
  * Used internally by [DPropertySheet:AddSheet](https://wiki.facepunch.com/gmod/DPropertySheet:AddSheet).
@@ -79,3 +59,10 @@ interface DTab {
79
59
  Setup(self: DTab, label: string, sheet: Panel, pnl: Panel, icon?: string): void;
80
60
  }
81
61
 
62
+
63
+
64
+
65
+
66
+
67
+
68
+
@@ -11,9 +11,7 @@
11
11
  * @realm client and menu
12
12
  * @source https://wiki.facepunch.com/gmod/DTextEntry
13
13
  */
14
- interface DTextEntry extends TextEntry {}
15
-
16
- interface DTextEntry {
14
+ interface DTextEntry extends TextEntry {
17
15
  /**
18
16
  * Adds an entry to [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry)'s history.
19
17
  *
@@ -23,9 +21,6 @@ interface DTextEntry {
23
21
  * @source https://wiki.facepunch.com/gmod/DTextEntry:AddHistory
24
22
  */
25
23
  AddHistory(self: DTextEntry, text: string): void;
26
- }
27
-
28
- interface DTextEntry {
29
24
  /**
30
25
  * Called whenever the value of the panel has been updated (whether by user input or otherwise).
31
26
  *
@@ -41,9 +36,6 @@ interface DTextEntry {
41
36
  * @source https://wiki.facepunch.com/gmod/DTextEntry:AllowInput
42
37
  */
43
38
  AllowInput(self: DTextEntry, char: string): boolean;
44
- }
45
-
46
- interface DTextEntry {
47
39
  /**
48
40
  * Returns whether a string is numeric or not.
49
41
  * Always returns false if the [DTextEntry:SetNumeric](https://wiki.facepunch.com/gmod/DTextEntry:SetNumeric) is set to false.
@@ -52,27 +44,18 @@ interface DTextEntry {
52
44
  * @source https://wiki.facepunch.com/gmod/DTextEntry:CheckNumeric
53
45
  */
54
46
  CheckNumeric(self: DTextEntry, strValue: string): boolean;
55
- }
56
-
57
- interface DTextEntry {
58
47
  /**
59
48
  * Called by the DTextEntry when a list of autocompletion options is requested. Meant to be overridden.
60
49
  * @realm client and menu
61
50
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetAutoComplete
62
51
  */
63
52
  GetAutoComplete(self: DTextEntry, inputText: string): table;
64
- }
65
-
66
- interface DTextEntry {
67
53
  /**
68
54
  * Returns the cursor color of a DTextEntry.
69
55
  * @realm client and menu
70
56
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetCursorColor
71
57
  */
72
58
  GetCursorColor(self: DTextEntry): Color;
73
- }
74
-
75
- interface DTextEntry {
76
59
  /**
77
60
  * Returns whether the textbox is disabled. Use [Panel:IsEnabled](https://wiki.facepunch.com/gmod/Panel:IsEnabled) instead.
78
61
  *
@@ -81,9 +64,6 @@ interface DTextEntry {
81
64
  * @deprecated Use Panel:IsEnabled instead.
82
65
  */
83
66
  GetDisabled(self: DTextEntry): boolean;
84
- }
85
-
86
- interface DTextEntry {
87
67
  /**
88
68
  * Alias of [DTextEntry:GetPaintBackground](https://wiki.facepunch.com/gmod/DTextEntry:GetPaintBackground). Use that instead.
89
69
  *
@@ -92,9 +72,6 @@ interface DTextEntry {
92
72
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetDrawBackground
93
73
  */
94
74
  GetDrawBackground(self: DTextEntry): boolean;
95
- }
96
-
97
- interface DTextEntry {
98
75
  /**
99
76
  * Returns the value set by [DTextEntry:SetDrawBorder](https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBorder).
100
77
  *
@@ -102,27 +79,18 @@ interface DTextEntry {
102
79
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetDrawBorder
103
80
  */
104
81
  GetDrawBorder(self: DTextEntry): boolean;
105
- }
106
-
107
- interface DTextEntry {
108
82
  /**
109
83
  * Returns whether pressing Enter can cause the panel to lose focus. Note that a multiline DTextEntry cannot be escaped using the Enter key even when this function returns true.
110
84
  * @realm client and menu
111
85
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetEnterAllowed
112
86
  */
113
87
  GetEnterAllowed(self: DTextEntry): boolean;
114
- }
115
-
116
- interface DTextEntry {
117
88
  /**
118
89
  * Returns the contents of the DTextEntry as a number.
119
90
  * @realm client and menu
120
91
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetFloat
121
92
  */
122
93
  GetFloat(self: DTextEntry): number;
123
- }
124
-
125
- interface DTextEntry {
126
94
  /**
127
95
  * Returns the highlight/text selection color of the text entry. If it was not overwritten, it will return the derma skin value. (`colTextEntryTextHighlight`)
128
96
  *
@@ -130,9 +98,6 @@ interface DTextEntry {
130
98
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetHighlightColor
131
99
  */
132
100
  GetHighlightColor(self: DTextEntry): Color;
133
- }
134
-
135
- interface DTextEntry {
136
101
  /**
137
102
  * Returns whether the history functionality of [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) is enabled. See [DTextEntry:AddHistory](https://wiki.facepunch.com/gmod/DTextEntry:AddHistory).
138
103
  *
@@ -140,90 +105,60 @@ interface DTextEntry {
140
105
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetHistoryEnabled
141
106
  */
142
107
  GetHistoryEnabled(self: DTextEntry): boolean;
143
- }
144
-
145
- interface DTextEntry {
146
108
  /**
147
109
  * Similar to [DTextEntry:GetFloat](https://wiki.facepunch.com/gmod/DTextEntry:GetFloat), but rounds the value to the nearest integer.
148
110
  * @realm client and menu
149
111
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetInt
150
112
  */
151
113
  GetInt(self: DTextEntry): number;
152
- }
153
-
154
- interface DTextEntry {
155
114
  /**
156
115
  * Returns whether only numeric characters (`123456789.-`) can be entered into the DTextEntry.
157
116
  * @realm client and menu
158
117
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetNumeric
159
118
  */
160
119
  GetNumeric(self: DTextEntry): boolean;
161
- }
162
-
163
- interface DTextEntry {
164
120
  /**
165
121
  * Whether the background is displayed or not
166
122
  * @realm client and menu
167
123
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetPaintBackground
168
124
  */
169
125
  GetPaintBackground(self: DTextEntry): boolean;
170
- }
171
-
172
- interface DTextEntry {
173
126
  /**
174
127
  * Return current color of panel placeholder
175
128
  * @realm client and menu
176
129
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetPlaceholderColor
177
130
  */
178
131
  GetPlaceholderColor(self: DTextEntry): Color;
179
- }
180
-
181
- interface DTextEntry {
182
132
  /**
183
133
  * Returns the placeholder text set with [DTextEntry:SetPlaceholderText](https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderText).
184
134
  * @realm client and menu
185
135
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetPlaceholderText
186
136
  */
187
137
  GetPlaceholderText(self: DTextEntry): string;
188
- }
189
-
190
- interface DTextEntry {
191
138
  /**
192
139
  * Returns whether or not the panel accepts tab key.
193
140
  * @realm client and menu
194
141
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetTabbingDisabled
195
142
  */
196
143
  GetTabbingDisabled(self: DTextEntry): boolean;
197
- }
198
-
199
- interface DTextEntry {
200
144
  /**
201
145
  * Returns the text color of a DTextEntry.
202
146
  * @realm client and menu
203
147
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetTextColor
204
148
  */
205
149
  GetTextColor(self: DTextEntry): Color;
206
- }
207
-
208
- interface DTextEntry {
209
150
  /**
210
151
  * Returns whether the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) is set to run [DTextEntry:OnValueChange](https://wiki.facepunch.com/gmod/DTextEntry:OnValueChange) every time a character is typed or deleted or only when Enter is pressed.
211
152
  * @realm client and menu
212
153
  * @source https://wiki.facepunch.com/gmod/DTextEntry:GetUpdateOnType
213
154
  */
214
155
  GetUpdateOnType(self: DTextEntry): boolean;
215
- }
216
-
217
- interface DTextEntry {
218
156
  /**
219
157
  * Returns whether this DTextEntry is being edited or not. (i.e. has focus)
220
158
  * @realm client and menu
221
159
  * @source https://wiki.facepunch.com/gmod/DTextEntry:IsEditing
222
160
  */
223
161
  IsEditing(self: DTextEntry): boolean;
224
- }
225
-
226
- interface DTextEntry {
227
162
  /**
228
163
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
229
164
  *
@@ -235,9 +170,6 @@ interface DTextEntry {
235
170
  * @source https://wiki.facepunch.com/gmod/DTextEntry:OnTextChanged
236
171
  */
237
172
  OnTextChanged(self: DTextEntry, noMenuRemoval: boolean): void;
238
- }
239
-
240
- interface DTextEntry {
241
173
  /**
242
174
  * **INTERNAL**: You really should be using [DTextEntry:GetAutoComplete](https://wiki.facepunch.com/gmod/DTextEntry:GetAutoComplete) instead.
243
175
  *
@@ -247,18 +179,12 @@ interface DTextEntry {
247
179
  * @source https://wiki.facepunch.com/gmod/DTextEntry:OpenAutoComplete
248
180
  */
249
181
  OpenAutoComplete(self: DTextEntry, tab: table): void;
250
- }
251
-
252
- interface DTextEntry {
253
182
  /**
254
183
  * Sets the cursor's color in DTextEntry (the blinking line).
255
184
  * @realm client and menu
256
185
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetCursorColor
257
186
  */
258
187
  SetCursorColor(self: DTextEntry, color: Color): void;
259
- }
260
-
261
- interface DTextEntry {
262
188
  /**
263
189
  * Disables input on a DTextEntry and greys it out visually. This differs from [DTextEntry:SetEditable](https://wiki.facepunch.com/gmod/DTextEntry:SetEditable) which doesn't visually change the textbox.
264
190
  *
@@ -267,18 +193,12 @@ interface DTextEntry {
267
193
  * @deprecated Use Panel:SetEnabled instead.
268
194
  */
269
195
  SetDisabled(self: DTextEntry, disabled: boolean): void;
270
- }
271
-
272
- interface DTextEntry {
273
196
  /**
274
197
  * Alias of [DTextEntry:SetPaintBackground](https://wiki.facepunch.com/gmod/DTextEntry:SetPaintBackground). Use that instead.
275
198
  * @realm client and menu
276
199
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBackground
277
200
  */
278
201
  SetDrawBackground(self: DTextEntry, show: boolean): void;
279
- }
280
-
281
- interface DTextEntry {
282
202
  /**
283
203
  * Does nothing.
284
204
  *
@@ -286,36 +206,24 @@ interface DTextEntry {
286
206
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBorder
287
207
  */
288
208
  SetDrawBorder(self: DTextEntry, bool: boolean): void;
289
- }
290
-
291
- interface DTextEntry {
292
209
  /**
293
210
  * Disables Input on a DTextEntry. This differs from [DTextEntry:SetDisabled](https://wiki.facepunch.com/gmod/DTextEntry:SetDisabled) - SetEditable will not affect the appearance of the textbox.
294
211
  * @realm client and menu
295
212
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetEditable
296
213
  */
297
214
  SetEditable(self: DTextEntry, enabled: boolean): void;
298
- }
299
-
300
- interface DTextEntry {
301
215
  /**
302
216
  * Sets whether pressing the Enter key will cause the DTextEntry to lose focus or not, provided it is not multiline. This is true by default.
303
217
  * @realm client and menu
304
218
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetEnterAllowed
305
219
  */
306
220
  SetEnterAllowed(self: DTextEntry, allowEnter: boolean): void;
307
- }
308
-
309
- interface DTextEntry {
310
221
  /**
311
222
  * Changes the font of the DTextEntry.
312
223
  * @realm client and menu
313
224
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetFont
314
225
  */
315
226
  SetFont(self: DTextEntry, font: string): void;
316
- }
317
-
318
- interface DTextEntry {
319
227
  /**
320
228
  * Sets/overrides the default highlight/text selection color of the text entry.
321
229
  *
@@ -323,9 +231,6 @@ interface DTextEntry {
323
231
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetHighlightColor
324
232
  */
325
233
  SetHighlightColor(self: DTextEntry, color: Color): void;
326
- }
327
-
328
- interface DTextEntry {
329
234
  /**
330
235
  * Enables or disables the history functionality of [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry). This allows the player to scroll through history elements using up and down arrow keys.
331
236
  *
@@ -335,9 +240,6 @@ interface DTextEntry {
335
240
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetHistoryEnabled
336
241
  */
337
242
  SetHistoryEnabled(self: DTextEntry, enable: boolean): void;
338
- }
339
-
340
- interface DTextEntry {
341
243
  /**
342
244
  * Sets whether or not to decline non-numeric characters as input.
343
245
  *
@@ -347,36 +249,24 @@ interface DTextEntry {
347
249
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetNumeric
348
250
  */
349
251
  SetNumeric(self: DTextEntry, numericOnly: boolean): void;
350
- }
351
-
352
- interface DTextEntry {
353
252
  /**
354
253
  * Sets whether to show the default background of the DTextEntry.
355
254
  * @realm client and menu
356
255
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetPaintBackground
357
256
  */
358
257
  SetPaintBackground(self: DTextEntry, show: boolean): void;
359
- }
360
-
361
- interface DTextEntry {
362
258
  /**
363
259
  * Allow you to set placeholder color.
364
260
  * @realm client and menu
365
261
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderColor
366
262
  */
367
263
  SetPlaceholderColor(self: DTextEntry, color?: Color): void;
368
- }
369
-
370
- interface DTextEntry {
371
264
  /**
372
265
  * Sets the placeholder text that will be shown while the text entry has no user text. The player will not need to delete the placeholder text if they decide to start typing.
373
266
  * @realm client and menu
374
267
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderText
375
268
  */
376
269
  SetPlaceholderText(self: DTextEntry, text?: string): void;
377
- }
378
-
379
- interface DTextEntry {
380
270
  /**
381
271
  * Sets whether or not the panel accepts tab key.
382
272
  * **NOTE**: Disabling tab key prevents the panel from unfocusing by mouse, however, still works for focusing to other keyboard focus.
@@ -385,27 +275,18 @@ interface DTextEntry {
385
275
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetTabbingDisabled
386
276
  */
387
277
  SetTabbingDisabled(self: DTextEntry, enabled: boolean): void;
388
- }
389
-
390
- interface DTextEntry {
391
278
  /**
392
279
  * Sets the text color of the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry).
393
280
  * @realm client and menu
394
281
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetTextColor
395
282
  */
396
283
  SetTextColor(self: DTextEntry, color: Color): void;
397
- }
398
-
399
- interface DTextEntry {
400
284
  /**
401
285
  * Sets whether we should fire [DTextEntry:OnValueChange](https://wiki.facepunch.com/gmod/DTextEntry:OnValueChange) every time we type or delete a character or only when Enter is pressed.
402
286
  * @realm client and menu
403
287
  * @source https://wiki.facepunch.com/gmod/DTextEntry:SetUpdateOnType
404
288
  */
405
289
  SetUpdateOnType(self: DTextEntry, updateOnType: boolean): void;
406
- }
407
-
408
- interface DTextEntry {
409
290
  /**
410
291
  * **INTERNAL**: Used by [DTextEntry:OnTextChanged](https://wiki.facepunch.com/gmod/DTextEntry:OnTextChanged), [DTextEntry:OnEnter](https://wiki.facepunch.com/gmod/DTextEntry:OnEnter) and [DTextEntry:OnLoseFocus](https://wiki.facepunch.com/gmod/DTextEntry:OnLoseFocus)
411
292
  *
@@ -416,9 +297,6 @@ interface DTextEntry {
416
297
  * @source https://wiki.facepunch.com/gmod/DTextEntry:UpdateConvarValue
417
298
  */
418
299
  UpdateConvarValue(self: DTextEntry): void;
419
- }
420
-
421
- interface DTextEntry {
422
300
  /**
423
301
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
424
302
  *
@@ -427,9 +305,6 @@ interface DTextEntry {
427
305
  * @source https://wiki.facepunch.com/gmod/DTextEntry:UpdateFromHistory
428
306
  */
429
307
  UpdateFromHistory(self: DTextEntry): void;
430
- }
431
-
432
- interface DTextEntry {
433
308
  /**
434
309
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
435
310
  *
@@ -440,3 +315,45 @@ interface DTextEntry {
440
315
  UpdateFromMenu(self: DTextEntry): void;
441
316
  }
442
317
 
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+