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