@tlua/gmod 1.0.4 → 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.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* A sound channel returned by a callback of [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) and [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel
|
|
6
6
|
*/
|
|
7
|
-
interface IGModAudioChannel {}
|
|
8
|
-
|
|
9
7
|
interface IGModAudioChannel {
|
|
10
8
|
/**
|
|
11
9
|
* Enables or disables looping of audio channel, requires noblock flag.
|
|
@@ -13,9 +11,7 @@ interface IGModAudioChannel {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:EnableLooping
|
|
14
12
|
*/
|
|
15
13
|
EnableLooping(self: IGModAudioChannel, enable: boolean): void;
|
|
16
|
-
}
|
|
17
14
|
|
|
18
|
-
interface IGModAudioChannel {
|
|
19
15
|
/**
|
|
20
16
|
* Computes the [DFT (discrete Fourier transform)](https://en.wikipedia.org/wiki/Discrete_Fourier_transform) of the sound channel.
|
|
21
17
|
*
|
|
@@ -33,18 +29,14 @@ interface IGModAudioChannel {
|
|
|
33
29
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:FFT
|
|
34
30
|
*/
|
|
35
31
|
FFT(self: IGModAudioChannel, tbl: number[], size: FFT): number;
|
|
36
|
-
}
|
|
37
32
|
|
|
38
|
-
interface IGModAudioChannel {
|
|
39
33
|
/**
|
|
40
34
|
* Returns 3D cone of the sound channel. See [IGModAudioChannel:Set3DCone](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone).
|
|
41
35
|
* @realm client
|
|
42
36
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DCone
|
|
43
37
|
*/
|
|
44
38
|
Get3DCone(self: IGModAudioChannel): (number, number, number);
|
|
45
|
-
}
|
|
46
39
|
|
|
47
|
-
interface IGModAudioChannel {
|
|
48
40
|
/**
|
|
49
41
|
* Returns if the sound channel is currently in 3D mode or not. This value will be affected by [IGModAudioChannel:Set3DEnabled](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled).
|
|
50
42
|
*
|
|
@@ -52,27 +44,21 @@ interface IGModAudioChannel {
|
|
|
52
44
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled
|
|
53
45
|
*/
|
|
54
46
|
Get3DEnabled(self: IGModAudioChannel): boolean;
|
|
55
|
-
}
|
|
56
47
|
|
|
57
|
-
interface IGModAudioChannel {
|
|
58
48
|
/**
|
|
59
49
|
* Returns 3D fade distances of a sound channel.
|
|
60
50
|
* @realm client
|
|
61
51
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DFadeDistance
|
|
62
52
|
*/
|
|
63
53
|
Get3DFadeDistance(self: IGModAudioChannel): (number, number);
|
|
64
|
-
}
|
|
65
54
|
|
|
66
|
-
interface IGModAudioChannel {
|
|
67
55
|
/**
|
|
68
56
|
* Returns the average bit rate of the sound channel.
|
|
69
57
|
* @realm client
|
|
70
58
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetAverageBitRate
|
|
71
59
|
*/
|
|
72
60
|
GetAverageBitRate(self: IGModAudioChannel): number;
|
|
73
|
-
}
|
|
74
61
|
|
|
75
|
-
interface IGModAudioChannel {
|
|
76
62
|
/**
|
|
77
63
|
* Retrieves the number of bits per sample of the sound channel.
|
|
78
64
|
*
|
|
@@ -82,9 +68,7 @@ interface IGModAudioChannel {
|
|
|
82
68
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBitsPerSample
|
|
83
69
|
*/
|
|
84
70
|
GetBitsPerSample(self: IGModAudioChannel): number;
|
|
85
|
-
}
|
|
86
71
|
|
|
87
|
-
interface IGModAudioChannel {
|
|
88
72
|
/**
|
|
89
73
|
* Returns the buffered time of the sound channel in seconds, for online streaming sound channels. ([sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL))
|
|
90
74
|
*
|
|
@@ -93,36 +77,28 @@ interface IGModAudioChannel {
|
|
|
93
77
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBufferedTime
|
|
94
78
|
*/
|
|
95
79
|
GetBufferedTime(self: IGModAudioChannel): number;
|
|
96
|
-
}
|
|
97
80
|
|
|
98
|
-
interface IGModAudioChannel {
|
|
99
81
|
/**
|
|
100
82
|
* Returns the filename for the sound channel.
|
|
101
83
|
* @realm client
|
|
102
84
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetFileName
|
|
103
85
|
*/
|
|
104
86
|
GetFileName(self: IGModAudioChannel): string;
|
|
105
|
-
}
|
|
106
87
|
|
|
107
|
-
interface IGModAudioChannel {
|
|
108
88
|
/**
|
|
109
89
|
* Returns the length of sound played by the sound channel in seconds.
|
|
110
90
|
* @realm client
|
|
111
91
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLength
|
|
112
92
|
*/
|
|
113
93
|
GetLength(self: IGModAudioChannel): number;
|
|
114
|
-
}
|
|
115
94
|
|
|
116
|
-
interface IGModAudioChannel {
|
|
117
95
|
/**
|
|
118
96
|
* Returns the right and left levels of sound played by the sound channel.
|
|
119
97
|
* @realm client
|
|
120
98
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLevel
|
|
121
99
|
*/
|
|
122
100
|
GetLevel(self: IGModAudioChannel): (number, number);
|
|
123
|
-
}
|
|
124
101
|
|
|
125
|
-
interface IGModAudioChannel {
|
|
126
102
|
/**
|
|
127
103
|
* Gets the relative volume of the left and right channels.
|
|
128
104
|
*
|
|
@@ -130,45 +106,35 @@ interface IGModAudioChannel {
|
|
|
130
106
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPan
|
|
131
107
|
*/
|
|
132
108
|
GetPan(self: IGModAudioChannel): number;
|
|
133
|
-
}
|
|
134
109
|
|
|
135
|
-
interface IGModAudioChannel {
|
|
136
110
|
/**
|
|
137
111
|
* Returns the playback rate of the sound channel.
|
|
138
112
|
* @realm client
|
|
139
113
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPlaybackRate
|
|
140
114
|
*/
|
|
141
115
|
GetPlaybackRate(self: IGModAudioChannel): number;
|
|
142
|
-
}
|
|
143
116
|
|
|
144
|
-
interface IGModAudioChannel {
|
|
145
117
|
/**
|
|
146
118
|
* Returns position of the sound channel
|
|
147
119
|
* @realm client
|
|
148
120
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPos
|
|
149
121
|
*/
|
|
150
122
|
GetPos(self: IGModAudioChannel): Vector;
|
|
151
|
-
}
|
|
152
123
|
|
|
153
|
-
interface IGModAudioChannel {
|
|
154
124
|
/**
|
|
155
125
|
* Returns the sample rate for currently playing sound.
|
|
156
126
|
* @realm client
|
|
157
127
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetSamplingRate
|
|
158
128
|
*/
|
|
159
129
|
GetSamplingRate(self: IGModAudioChannel): number;
|
|
160
|
-
}
|
|
161
130
|
|
|
162
|
-
interface IGModAudioChannel {
|
|
163
131
|
/**
|
|
164
132
|
* Returns the state of a sound channel
|
|
165
133
|
* @realm client
|
|
166
134
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetState
|
|
167
135
|
*/
|
|
168
136
|
GetState(self: IGModAudioChannel): number;
|
|
169
|
-
}
|
|
170
137
|
|
|
171
|
-
interface IGModAudioChannel {
|
|
172
138
|
/**
|
|
173
139
|
* Retrieves HTTP headers from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
|
|
174
140
|
*
|
|
@@ -178,9 +144,7 @@ interface IGModAudioChannel {
|
|
|
178
144
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsHTTP
|
|
179
145
|
*/
|
|
180
146
|
GetTagsHTTP(self: IGModAudioChannel): string[];
|
|
181
|
-
}
|
|
182
147
|
|
|
183
|
-
interface IGModAudioChannel {
|
|
184
148
|
/**
|
|
185
149
|
* Retrieves the ID3 version 1 info from a bass channel created by [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile) or [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
|
|
186
150
|
*
|
|
@@ -190,9 +154,7 @@ interface IGModAudioChannel {
|
|
|
190
154
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsID3
|
|
191
155
|
*/
|
|
192
156
|
GetTagsID3(self: IGModAudioChannel): table;
|
|
193
|
-
}
|
|
194
157
|
|
|
195
|
-
interface IGModAudioChannel {
|
|
196
158
|
/**
|
|
197
159
|
* Retrieves `.m4a` media info, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
|
|
198
160
|
*
|
|
@@ -200,9 +162,7 @@ interface IGModAudioChannel {
|
|
|
200
162
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMP4
|
|
201
163
|
*/
|
|
202
164
|
GetTagsMP4(self: IGModAudioChannel): string[];
|
|
203
|
-
}
|
|
204
165
|
|
|
205
|
-
interface IGModAudioChannel {
|
|
206
166
|
/**
|
|
207
167
|
* Retrieves ICY metadata from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
|
|
208
168
|
*
|
|
@@ -210,9 +170,7 @@ interface IGModAudioChannel {
|
|
|
210
170
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMeta
|
|
211
171
|
*/
|
|
212
172
|
GetTagsMeta(self: IGModAudioChannel): string;
|
|
213
|
-
}
|
|
214
173
|
|
|
215
|
-
interface IGModAudioChannel {
|
|
216
174
|
/**
|
|
217
175
|
* Retrieves OGG media info tag, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
|
|
218
176
|
*
|
|
@@ -220,9 +178,7 @@ interface IGModAudioChannel {
|
|
|
220
178
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsOGG
|
|
221
179
|
*/
|
|
222
180
|
GetTagsOGG(self: IGModAudioChannel): string[];
|
|
223
|
-
}
|
|
224
181
|
|
|
225
|
-
interface IGModAudioChannel {
|
|
226
182
|
/**
|
|
227
183
|
* Retrieves OGG Vendor tag, usually containing the application that created the file, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
|
|
228
184
|
*
|
|
@@ -230,9 +186,7 @@ interface IGModAudioChannel {
|
|
|
230
186
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsVendor
|
|
231
187
|
*/
|
|
232
188
|
GetTagsVendor(self: IGModAudioChannel): string;
|
|
233
|
-
}
|
|
234
189
|
|
|
235
|
-
interface IGModAudioChannel {
|
|
236
190
|
/**
|
|
237
191
|
* Retrieves `.WMA` media info, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
|
|
238
192
|
*
|
|
@@ -240,99 +194,77 @@ interface IGModAudioChannel {
|
|
|
240
194
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsWMA
|
|
241
195
|
*/
|
|
242
196
|
GetTagsWMA(self: IGModAudioChannel): string[];
|
|
243
|
-
}
|
|
244
197
|
|
|
245
|
-
interface IGModAudioChannel {
|
|
246
198
|
/**
|
|
247
199
|
* Returns the current time of the sound channel in seconds
|
|
248
200
|
* @realm client
|
|
249
201
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTime
|
|
250
202
|
*/
|
|
251
203
|
GetTime(self: IGModAudioChannel): number;
|
|
252
|
-
}
|
|
253
204
|
|
|
254
|
-
interface IGModAudioChannel {
|
|
255
205
|
/**
|
|
256
206
|
* Returns volume of a sound channel
|
|
257
207
|
* @realm client
|
|
258
208
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetVolume
|
|
259
209
|
*/
|
|
260
210
|
GetVolume(self: IGModAudioChannel): number;
|
|
261
|
-
}
|
|
262
211
|
|
|
263
|
-
interface IGModAudioChannel {
|
|
264
212
|
/**
|
|
265
213
|
* Returns if the sound channel is in 3D mode or not.
|
|
266
214
|
* @realm client
|
|
267
215
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D
|
|
268
216
|
*/
|
|
269
217
|
Is3D(self: IGModAudioChannel): boolean;
|
|
270
|
-
}
|
|
271
218
|
|
|
272
|
-
interface IGModAudioChannel {
|
|
273
219
|
/**
|
|
274
220
|
* Returns whether the audio stream is block streamed or not.
|
|
275
221
|
* @realm client
|
|
276
222
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsBlockStreamed
|
|
277
223
|
*/
|
|
278
224
|
IsBlockStreamed(self: IGModAudioChannel): boolean;
|
|
279
|
-
}
|
|
280
225
|
|
|
281
|
-
interface IGModAudioChannel {
|
|
282
226
|
/**
|
|
283
227
|
* Returns if the sound channel is looping or not.
|
|
284
228
|
* @realm client
|
|
285
229
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsLooping
|
|
286
230
|
*/
|
|
287
231
|
IsLooping(self: IGModAudioChannel): boolean;
|
|
288
|
-
}
|
|
289
232
|
|
|
290
|
-
interface IGModAudioChannel {
|
|
291
233
|
/**
|
|
292
234
|
* Returns if the sound channel is streamed from the Internet or not.
|
|
293
235
|
* @realm client
|
|
294
236
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsOnline
|
|
295
237
|
*/
|
|
296
238
|
IsOnline(self: IGModAudioChannel): boolean;
|
|
297
|
-
}
|
|
298
239
|
|
|
299
|
-
interface IGModAudioChannel {
|
|
300
240
|
/**
|
|
301
241
|
* Returns if the sound channel is valid or not.
|
|
302
242
|
* @realm client
|
|
303
243
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsValid
|
|
304
244
|
*/
|
|
305
245
|
IsValid(self: IGModAudioChannel): boolean;
|
|
306
|
-
}
|
|
307
246
|
|
|
308
|
-
interface IGModAudioChannel {
|
|
309
247
|
/**
|
|
310
248
|
* Pauses the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play)
|
|
311
249
|
* @realm client
|
|
312
250
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Pause
|
|
313
251
|
*/
|
|
314
252
|
Pause(self: IGModAudioChannel): void;
|
|
315
|
-
}
|
|
316
253
|
|
|
317
|
-
interface IGModAudioChannel {
|
|
318
254
|
/**
|
|
319
255
|
* Starts playing the stream.
|
|
320
256
|
* @realm client
|
|
321
257
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Play
|
|
322
258
|
*/
|
|
323
259
|
Play(self: IGModAudioChannel): void;
|
|
324
|
-
}
|
|
325
260
|
|
|
326
|
-
interface IGModAudioChannel {
|
|
327
261
|
/**
|
|
328
262
|
* Sets 3D cone of the sound channel.
|
|
329
263
|
* @realm client
|
|
330
264
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone
|
|
331
265
|
*/
|
|
332
266
|
Set3DCone(self: IGModAudioChannel, innerAngle: number, outerAngle: number, outerVolume: number): void;
|
|
333
|
-
}
|
|
334
267
|
|
|
335
|
-
interface IGModAudioChannel {
|
|
336
268
|
/**
|
|
337
269
|
* Sets the 3D mode of the channel. This will affect [IGModAudioChannel:Get3DEnabled](https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled) but not [IGModAudioChannel:Is3D](https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D).
|
|
338
270
|
*
|
|
@@ -342,18 +274,14 @@ interface IGModAudioChannel {
|
|
|
342
274
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled
|
|
343
275
|
*/
|
|
344
276
|
Set3DEnabled(self: IGModAudioChannel, enable: boolean): void;
|
|
345
|
-
}
|
|
346
277
|
|
|
347
|
-
interface IGModAudioChannel {
|
|
348
278
|
/**
|
|
349
279
|
* Sets 3D fade distances of a sound channel.
|
|
350
280
|
* @realm client
|
|
351
281
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DFadeDistance
|
|
352
282
|
*/
|
|
353
283
|
Set3DFadeDistance(self: IGModAudioChannel, min: number, max: number): void;
|
|
354
|
-
}
|
|
355
284
|
|
|
356
|
-
interface IGModAudioChannel {
|
|
357
285
|
/**
|
|
358
286
|
* Sets the relative volume of the left and right channels.
|
|
359
287
|
*
|
|
@@ -361,27 +289,21 @@ interface IGModAudioChannel {
|
|
|
361
289
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPan
|
|
362
290
|
*/
|
|
363
291
|
SetPan(self: IGModAudioChannel, pan: number): void;
|
|
364
|
-
}
|
|
365
292
|
|
|
366
|
-
interface IGModAudioChannel {
|
|
367
293
|
/**
|
|
368
294
|
* Sets the playback rate of the sound channel. May not work with high values for radio streams.
|
|
369
295
|
* @realm client
|
|
370
296
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPlaybackRate
|
|
371
297
|
*/
|
|
372
298
|
SetPlaybackRate(self: IGModAudioChannel, rate: number): void;
|
|
373
|
-
}
|
|
374
299
|
|
|
375
|
-
interface IGModAudioChannel {
|
|
376
300
|
/**
|
|
377
301
|
* Sets position of sound channel in case the sound channel has a 3d option set.
|
|
378
302
|
* @realm client
|
|
379
303
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPos
|
|
380
304
|
*/
|
|
381
305
|
SetPos(self: IGModAudioChannel, pos: Vector, dir?: Vector): void;
|
|
382
|
-
}
|
|
383
306
|
|
|
384
|
-
interface IGModAudioChannel {
|
|
385
307
|
/**
|
|
386
308
|
* Sets the sound channel to specified time ( Rewind to that position of the song ). Does not work on online radio streams.
|
|
387
309
|
*
|
|
@@ -394,18 +316,14 @@ interface IGModAudioChannel {
|
|
|
394
316
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetTime
|
|
395
317
|
*/
|
|
396
318
|
SetTime(self: IGModAudioChannel, secs: number, dont_decode?: boolean): void;
|
|
397
|
-
}
|
|
398
319
|
|
|
399
|
-
interface IGModAudioChannel {
|
|
400
320
|
/**
|
|
401
321
|
* Sets the volume of a sound channel
|
|
402
322
|
* @realm client
|
|
403
323
|
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetVolume
|
|
404
324
|
*/
|
|
405
325
|
SetVolume(self: IGModAudioChannel, volume: number): void;
|
|
406
|
-
}
|
|
407
326
|
|
|
408
|
-
interface IGModAudioChannel {
|
|
409
327
|
/**
|
|
410
328
|
* Stop the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play).
|
|
411
329
|
*
|
|
@@ -416,4 +334,3 @@ interface IGModAudioChannel {
|
|
|
416
334
|
*/
|
|
417
335
|
Stop(self: IGModAudioChannel): void;
|
|
418
336
|
}
|
|
419
|
-
|
|
@@ -11,18 +11,14 @@
|
|
|
11
11
|
* @realm client
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/ImageCheckBox
|
|
13
13
|
*/
|
|
14
|
-
interface ImageCheckBox extends Button {
|
|
15
|
-
|
|
16
|
-
interface ImageCheckBox {
|
|
14
|
+
interface ImageCheckBox extends Button {
|
|
17
15
|
/**
|
|
18
16
|
* Returns the checked state of the [ImageCheckBox](https://wiki.facepunch.com/gmod/ImageCheckBox)
|
|
19
17
|
* @realm client
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/ImageCheckBox:GetChecked
|
|
21
19
|
*/
|
|
22
20
|
GetChecked(self: ImageCheckBox): boolean;
|
|
23
|
-
}
|
|
24
21
|
|
|
25
|
-
interface ImageCheckBox {
|
|
26
22
|
/**
|
|
27
23
|
* Sets the checked state of the checkbox.
|
|
28
24
|
*
|
|
@@ -32,9 +28,7 @@ interface ImageCheckBox {
|
|
|
32
28
|
* @source https://wiki.facepunch.com/gmod/ImageCheckBox:Set
|
|
33
29
|
*/
|
|
34
30
|
Set(self: ImageCheckBox, OnOff: boolean): void;
|
|
35
|
-
}
|
|
36
31
|
|
|
37
|
-
interface ImageCheckBox {
|
|
38
32
|
/**
|
|
39
33
|
* Sets the checked state of the checkbox.
|
|
40
34
|
*
|
|
@@ -45,4 +39,3 @@ interface ImageCheckBox {
|
|
|
45
39
|
*/
|
|
46
40
|
SetChecked(self: ImageCheckBox, bOn: boolean): void;
|
|
47
41
|
}
|
|
48
|
-
|
package/types/imaterial.d.tlua
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* A material object can be created with [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) or [Global.CreateMaterial](https://wiki.facepunch.com/gmod/Global.CreateMaterial).
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/IMaterial
|
|
11
11
|
*/
|
|
12
|
-
interface IMaterial {}
|
|
13
|
-
|
|
14
12
|
interface IMaterial {
|
|
15
13
|
/**
|
|
16
14
|
* Returns the color of the specified pixel of the `$basetexture`, only works for materials created from PNG files.
|
|
@@ -21,18 +19,14 @@ interface IMaterial {
|
|
|
21
19
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetColor
|
|
22
20
|
*/
|
|
23
21
|
GetColor(self: IMaterial, x: number, y: number): Color;
|
|
24
|
-
}
|
|
25
22
|
|
|
26
|
-
interface IMaterial {
|
|
27
23
|
/**
|
|
28
24
|
* Returns the specified material value as a float, or nil if the value is not set.
|
|
29
25
|
* @realm shared and menu
|
|
30
26
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetFloat
|
|
31
27
|
*/
|
|
32
28
|
GetFloat(self: IMaterial, materialFloat: string): number;
|
|
33
|
-
}
|
|
34
29
|
|
|
35
|
-
interface IMaterial {
|
|
36
30
|
/**
|
|
37
31
|
* Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.
|
|
38
32
|
*
|
|
@@ -43,36 +37,28 @@ interface IMaterial {
|
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetInt
|
|
44
38
|
*/
|
|
45
39
|
GetInt(self: IMaterial, materialInt: string): number;
|
|
46
|
-
}
|
|
47
40
|
|
|
48
|
-
interface IMaterial {
|
|
49
41
|
/**
|
|
50
42
|
* Gets all the key values defined for the material.
|
|
51
43
|
* @realm shared
|
|
52
44
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetKeyValues
|
|
53
45
|
*/
|
|
54
46
|
GetKeyValues(self: IMaterial): Table<string, any>;
|
|
55
|
-
}
|
|
56
47
|
|
|
57
|
-
interface IMaterial {
|
|
58
48
|
/**
|
|
59
49
|
* Returns the specified material matrix as a int, or nil if the value is not set or is not a matrix.
|
|
60
50
|
* @realm shared
|
|
61
51
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetMatrix
|
|
62
52
|
*/
|
|
63
53
|
GetMatrix(self: IMaterial, materialMatrix: string): VMatrix;
|
|
64
|
-
}
|
|
65
54
|
|
|
66
|
-
interface IMaterial {
|
|
67
55
|
/**
|
|
68
56
|
* Returns the name of the material, in most cases the path.
|
|
69
57
|
* @realm shared and menu
|
|
70
58
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetName
|
|
71
59
|
*/
|
|
72
60
|
GetName(self: IMaterial): string;
|
|
73
|
-
}
|
|
74
61
|
|
|
75
|
-
interface IMaterial {
|
|
76
62
|
/**
|
|
77
63
|
* Returns the name of the materials shader.
|
|
78
64
|
*
|
|
@@ -85,27 +71,21 @@ interface IMaterial {
|
|
|
85
71
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetShader
|
|
86
72
|
*/
|
|
87
73
|
GetShader(self: IMaterial): string;
|
|
88
|
-
}
|
|
89
74
|
|
|
90
|
-
interface IMaterial {
|
|
91
75
|
/**
|
|
92
76
|
* Returns the specified material string, or nil if the value is not set or if the value can not be converted to a string.
|
|
93
77
|
* @realm shared and menu
|
|
94
78
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetString
|
|
95
79
|
*/
|
|
96
80
|
GetString(self: IMaterial, materialString: string): string;
|
|
97
|
-
}
|
|
98
81
|
|
|
99
|
-
interface IMaterial {
|
|
100
82
|
/**
|
|
101
83
|
* Returns an [ITexture](https://wiki.facepunch.com/gmod/ITexture) based on the passed shader parameter.
|
|
102
84
|
* @realm shared and menu
|
|
103
85
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetTexture
|
|
104
86
|
*/
|
|
105
87
|
GetTexture(self: IMaterial, param: string): ITexture;
|
|
106
|
-
}
|
|
107
88
|
|
|
108
|
-
interface IMaterial {
|
|
109
89
|
/**
|
|
110
90
|
* Returns the specified material vector, or nil if the value is not set.
|
|
111
91
|
*
|
|
@@ -115,18 +95,14 @@ interface IMaterial {
|
|
|
115
95
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetVector
|
|
116
96
|
*/
|
|
117
97
|
GetVector(self: IMaterial, materialVector: string): Vector;
|
|
118
|
-
}
|
|
119
98
|
|
|
120
|
-
interface IMaterial {
|
|
121
99
|
/**
|
|
122
100
|
* Returns the specified material vector as a 4 component vector.
|
|
123
101
|
* @realm shared and menu
|
|
124
102
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetVector4D
|
|
125
103
|
*/
|
|
126
104
|
GetVector4D(self: IMaterial, name: string): (number, number, number, number);
|
|
127
|
-
}
|
|
128
105
|
|
|
129
|
-
interface IMaterial {
|
|
130
106
|
/**
|
|
131
107
|
* Returns the specified material linear color vector, or nil if the value is not set.
|
|
132
108
|
*
|
|
@@ -138,27 +114,21 @@ interface IMaterial {
|
|
|
138
114
|
* @source https://wiki.facepunch.com/gmod/IMaterial:GetVectorLinear
|
|
139
115
|
*/
|
|
140
116
|
GetVectorLinear(self: IMaterial, materialVector: string): Vector;
|
|
141
|
-
}
|
|
142
117
|
|
|
143
|
-
interface IMaterial {
|
|
144
118
|
/**
|
|
145
119
|
* Returns the height of the member texture set for `$basetexture`.
|
|
146
120
|
* @realm shared and menu
|
|
147
121
|
* @source https://wiki.facepunch.com/gmod/IMaterial:Height
|
|
148
122
|
*/
|
|
149
123
|
Height(self: IMaterial): number;
|
|
150
|
-
}
|
|
151
124
|
|
|
152
|
-
interface IMaterial {
|
|
153
125
|
/**
|
|
154
126
|
* Returns whenever the material is valid, i.e. whether it was not loaded successfully from disk or not.
|
|
155
127
|
* @realm shared and menu
|
|
156
128
|
* @source https://wiki.facepunch.com/gmod/IMaterial:IsError
|
|
157
129
|
*/
|
|
158
130
|
IsError(self: IMaterial): boolean;
|
|
159
|
-
}
|
|
160
131
|
|
|
161
|
-
interface IMaterial {
|
|
162
132
|
/**
|
|
163
133
|
* Recomputes the material's snapshot. This needs to be called if you have changed variables on your material and it isn't changing.
|
|
164
134
|
*
|
|
@@ -168,9 +138,7 @@ interface IMaterial {
|
|
|
168
138
|
* @source https://wiki.facepunch.com/gmod/IMaterial:Recompute
|
|
169
139
|
*/
|
|
170
140
|
Recompute(self: IMaterial): void;
|
|
171
|
-
}
|
|
172
141
|
|
|
173
|
-
interface IMaterial {
|
|
174
142
|
/**
|
|
175
143
|
* Changes the Material into the give Image.
|
|
176
144
|
* **INTERNAL**: This is used by the Background to change the Image.
|
|
@@ -180,9 +148,7 @@ interface IMaterial {
|
|
|
180
148
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetDynamicImage
|
|
181
149
|
*/
|
|
182
150
|
SetDynamicImage(self: IMaterial, path: string): void;
|
|
183
|
-
}
|
|
184
151
|
|
|
185
|
-
interface IMaterial {
|
|
186
152
|
/**
|
|
187
153
|
* Sets the specified material float to the specified float, does nothing on a type mismatch.
|
|
188
154
|
*
|
|
@@ -192,9 +158,7 @@ interface IMaterial {
|
|
|
192
158
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetFloat
|
|
193
159
|
*/
|
|
194
160
|
SetFloat(self: IMaterial, materialFloat: string, float: number): void;
|
|
195
|
-
}
|
|
196
161
|
|
|
197
|
-
interface IMaterial {
|
|
198
162
|
/**
|
|
199
163
|
* Sets the specified material value to the specified int, does nothing on a type mismatch.
|
|
200
164
|
*
|
|
@@ -208,18 +172,14 @@ interface IMaterial {
|
|
|
208
172
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetInt
|
|
209
173
|
*/
|
|
210
174
|
SetInt(self: IMaterial, materialInt: string, int: number): void;
|
|
211
|
-
}
|
|
212
175
|
|
|
213
|
-
interface IMaterial {
|
|
214
176
|
/**
|
|
215
177
|
* Sets the specified material value to the specified matrix, does nothing on a type mismatch.
|
|
216
178
|
* @realm shared
|
|
217
179
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetMatrix
|
|
218
180
|
*/
|
|
219
181
|
SetMatrix(self: IMaterial, materialMatrix: string, matrix: VMatrix): void;
|
|
220
|
-
}
|
|
221
182
|
|
|
222
|
-
interface IMaterial {
|
|
223
183
|
/**
|
|
224
184
|
* The functionality of this function was removed due to the amount of crashes it caused.
|
|
225
185
|
* @realm shared and menu
|
|
@@ -227,18 +187,14 @@ interface IMaterial {
|
|
|
227
187
|
* @deprecated This function does nothing
|
|
228
188
|
*/
|
|
229
189
|
SetShader(self: IMaterial, shaderName: string): void;
|
|
230
|
-
}
|
|
231
190
|
|
|
232
|
-
interface IMaterial {
|
|
233
191
|
/**
|
|
234
192
|
* Sets the specified material value to the specified string, does nothing on a type mismatch.
|
|
235
193
|
* @realm shared and menu
|
|
236
194
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetString
|
|
237
195
|
*/
|
|
238
196
|
SetString(self: IMaterial, materialString: string, string: string): void;
|
|
239
|
-
}
|
|
240
197
|
|
|
241
|
-
interface IMaterial {
|
|
242
198
|
/**
|
|
243
199
|
* Sets the specified material texture to the specified texture, does nothing on a type mismatch.
|
|
244
200
|
*
|
|
@@ -248,36 +204,28 @@ interface IMaterial {
|
|
|
248
204
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetTexture
|
|
249
205
|
*/
|
|
250
206
|
SetTexture(self: IMaterial, materialTexture: string, texture: ITexture): void;
|
|
251
|
-
}
|
|
252
207
|
|
|
253
|
-
interface IMaterial {
|
|
254
208
|
/**
|
|
255
209
|
* Unsets the value for the specified material value.
|
|
256
210
|
* @realm shared and menu
|
|
257
211
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetUndefined
|
|
258
212
|
*/
|
|
259
213
|
SetUndefined(self: IMaterial, materialValueName: string): void;
|
|
260
|
-
}
|
|
261
214
|
|
|
262
|
-
interface IMaterial {
|
|
263
215
|
/**
|
|
264
216
|
* Sets the specified material vector to the specified vector, does nothing on a type mismatch.
|
|
265
217
|
* @realm shared and menu
|
|
266
218
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetVector
|
|
267
219
|
*/
|
|
268
220
|
SetVector(self: IMaterial, MaterialVector: string, vec: Vector): void;
|
|
269
|
-
}
|
|
270
221
|
|
|
271
|
-
interface IMaterial {
|
|
272
222
|
/**
|
|
273
223
|
* Sets the specified material vector to the specified 4 component vector, does nothing on a type mismatch.
|
|
274
224
|
* @realm shared and menu
|
|
275
225
|
* @source https://wiki.facepunch.com/gmod/IMaterial:SetVector4D
|
|
276
226
|
*/
|
|
277
227
|
SetVector4D(self: IMaterial, name: string, x: number, y: number, z: number, w: number): void;
|
|
278
|
-
}
|
|
279
228
|
|
|
280
|
-
interface IMaterial {
|
|
281
229
|
/**
|
|
282
230
|
* Returns the width of the member texture set for `$basetexture`.
|
|
283
231
|
* @realm shared and menu
|
|
@@ -285,4 +233,3 @@ interface IMaterial {
|
|
|
285
233
|
*/
|
|
286
234
|
Width(self: IMaterial): number;
|
|
287
235
|
}
|
|
288
|
-
|