@tlua/gmod 1.0.1
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/README.md +28 -0
- package/__metadata.json +4 -0
- package/_globals.d.tlua +178 -0
- package/_gmod-std.d.tlua +35 -0
- package/achievementicon.d.tlua +12 -0
- package/achievements.d.tlua +162 -0
- package/ai.d.tlua +65 -0
- package/ai_schedule.d.tlua +17 -0
- package/ai_task.d.tlua +17 -0
- package/angle.d.tlua +197 -0
- package/avatarimage.d.tlua +10 -0
- package/awesomium.d.tlua +14 -0
- package/baseclass.d.tlua +42 -0
- package/bf_read.d.tlua +110 -0
- package/bit.d.tlua +121 -0
- package/button.d.tlua +13 -0
- package/cam.d.tlua +220 -0
- package/ceffectdata.d.tlua +337 -0
- package/chat.d.tlua +62 -0
- package/checkbutton.d.tlua +14 -0
- package/cleanup.d.tlua +88 -0
- package/cluaemitter.d.tlua +119 -0
- package/clualocomotion.d.tlua +383 -0
- package/cluaparticle.d.tlua +426 -0
- package/cmovedata.d.tlua +476 -0
- package/cnavarea.d.tlua +845 -0
- package/cnavladder.d.tlua +209 -0
- package/cnewparticleeffect.d.tlua +259 -0
- package/color.d.tlua +339 -0
- package/concommand.d.tlua +69 -0
- package/constraint.d.tlua +311 -0
- package/construct.d.tlua +26 -0
- package/contentheader.d.tlua +32 -0
- package/contenticon.d.tlua +86 -0
- package/contentsidebar.d.tlua +45 -0
- package/contentsidebartoolbox.d.tlua +13 -0
- package/contextbase.d.tlua +37 -0
- package/controlpanel.d.tlua +140 -0
- package/controlpresets.d.tlua +118 -0
- package/convar.d.tlua +162 -0
- package/cookie.d.tlua +60 -0
- package/coroutine.d.tlua +90 -0
- package/crecipientfilter.d.tlua +152 -0
- package/csent.d.tlua +10 -0
- package/csoundpatch.d.tlua +150 -0
- package/ctakedamageinfo.d.tlua +366 -0
- package/ctrllistbox.d.tlua +12 -0
- package/ctrlnumpad.d.tlua +73 -0
- package/cusercmd.d.tlua +320 -0
- package/custom_classes.d.tlua +65 -0
- package/custom_entity_fields.d.tlua +96 -0
- package/cvars.d.tlua +80 -0
- package/dadjustablemodelpanel.d.tlua +81 -0
- package/dalphabar.d.tlua +27 -0
- package/dbinder.d.tlua +37 -0
- package/dbubblecontainer.d.tlua +18 -0
- package/dbutton.d.tlua +88 -0
- package/dcategoryheader.d.tlua +13 -0
- package/dcategorylist.d.tlua +11 -0
- package/dcheckbox.d.tlua +46 -0
- package/dcheckboxlabel.d.tlua +90 -0
- package/dcollapsiblecategory.d.tlua +240 -0
- package/dcolorbutton.d.tlua +73 -0
- package/dcolorcombo.d.tlua +54 -0
- package/dcolorcube.d.tlua +137 -0
- package/dcolormixer.d.tlua +303 -0
- package/dcolorpalette.d.tlua +294 -0
- package/dcolumnsheet.d.tlua +49 -0
- package/dcombobox.d.tlua +161 -0
- package/ddragbase.d.tlua +151 -0
- package/ddrawer.d.tlua +72 -0
- package/debug.d.tlua +236 -0
- package/debugoverlay.d.tlua +193 -0
- package/dentityproperties.d.tlua +63 -0
- package/derma.d.tlua +119 -0
- package/dexpandbutton.d.tlua +30 -0
- package/dfilebrowser.d.tlua +228 -0
- package/dform.d.tlua +176 -0
- package/dframe.d.tlua +261 -0
- package/dgrid.d.tlua +113 -0
- package/dhorizontaldivider.d.tlua +196 -0
- package/dhorizontalscroller.d.tlua +104 -0
- package/dhscrollbar.d.tlua +109 -0
- package/dhtml.d.tlua +91 -0
- package/dhtmlcontrols.d.tlua +62 -0
- package/diconbrowser.d.tlua +113 -0
- package/diconlayout.d.tlua +190 -0
- package/dimage.d.tlua +221 -0
- package/dimagebutton.d.tlua +103 -0
- package/dkillicon.d.tlua +9 -0
- package/dlabel.d.tlua +385 -0
- package/dlabeleditable.d.tlua +51 -0
- package/dlabelurl.d.tlua +100 -0
- package/dlistbox.d.tlua +82 -0
- package/dlistboxitem.d.tlua +42 -0
- package/dlistlayout.d.tlua +14 -0
- package/dlistview.d.tlua +360 -0
- package/dlistview_column.d.tlua +135 -0
- package/dlistview_columnplain.d.tlua +11 -0
- package/dlistview_draggerbar.d.tlua +11 -0
- package/dlistview_line.d.tlua +140 -0
- package/dlistviewheaderlabel.d.tlua +11 -0
- package/dlistviewlabel.d.tlua +11 -0
- package/dlistviewline.d.tlua +11 -0
- package/dmenu.d.tlua +266 -0
- package/dmenubar.d.tlua +42 -0
- package/dmenuoption.d.tlua +135 -0
- package/dmenuoptioncvar.d.tlua +64 -0
- package/dmodelpanel.d.tlua +207 -0
- package/dmodelselect.d.tlua +20 -0
- package/dmodelselectmulti.d.tlua +19 -0
- package/dnotify.d.tlua +93 -0
- package/dnumberscratch.d.tlua +284 -0
- package/dnumberwang.d.tlua +147 -0
- package/dnumpad.d.tlua +11 -0
- package/dnumslider.d.tlua +182 -0
- package/dpanel.d.tlua +152 -0
- package/dpanellist.d.tlua +109 -0
- package/dpaneloverlay.d.tlua +65 -0
- package/dpanelselect.d.tlua +13 -0
- package/dpanpanel.d.tlua +64 -0
- package/dprogress.d.tlua +27 -0
- package/dproperties.d.tlua +52 -0
- package/dproperty_boolean.d.tlua +12 -0
- package/dproperty_combo.d.tlua +31 -0
- package/dproperty_entity.d.tlua +12 -0
- package/dproperty_float.d.tlua +12 -0
- package/dproperty_generic.d.tlua +50 -0
- package/dproperty_int.d.tlua +12 -0
- package/dproperty_vectorcolor.d.tlua +14 -0
- package/dpropertysheet.d.tlua +167 -0
- package/dragndrop.d.tlua +123 -0
- package/draw.d.tlua +162 -0
- package/drgbpicker.d.tlua +49 -0
- package/drive.d.tlua +159 -0
- package/dscrollbargrip.d.tlua +13 -0
- package/dscrollpanel.d.tlua +110 -0
- package/dshape.d.tlua +72 -0
- package/dsizetocontents.d.tlua +46 -0
- package/dslider.d.tlua +302 -0
- package/dsprite.d.tlua +84 -0
- package/dtab.d.tlua +81 -0
- package/dtextentry.d.tlua +442 -0
- package/dtilelayout.d.tlua +218 -0
- package/dtooltip.d.tlua +76 -0
- package/dtree.d.tlua +185 -0
- package/dtree_node.d.tlua +793 -0
- package/dtree_node_button.d.tlua +13 -0
- package/duplicator.d.tlua +338 -0
- package/dverticaldivider.d.tlua +223 -0
- package/dvscrollbar.d.tlua +109 -0
- package/editablepanel.d.tlua +10 -0
- package/effect.d.tlua +121 -0
- package/effects.d.tlua +77 -0
- package/engine.d.tlua +248 -0
- package/entity.d.tlua +8295 -0
- package/ents.d.tlua +267 -0
- package/enums.d.tlua +7082 -0
- package/file.d.tlua +419 -0
- package/file_class.d.tlua +7 -0
- package/fingerposer.d.tlua +12 -0
- package/fingervar.d.tlua +13 -0
- package/frame.d.tlua +11 -0
- package/frame_blend.d.tlua +105 -0
- package/game.d.tlua +482 -0
- package/gameevent.d.tlua +968 -0
- package/gamemode.d.tlua +48 -0
- package/global.d.tlua +3156 -0
- package/gm.d.tlua +3218 -0
- package/gmod.d.tlua +20 -0
- package/gmsave.d.tlua +53 -0
- package/gui.d.tlua +232 -0
- package/gwen.d.tlua +55 -0
- package/halo.d.tlua +42 -0
- package/hammer.d.tlua +17 -0
- package/hook.d.tlua +64 -0
- package/html.d.tlua +22 -0
- package/http.d.tlua +72 -0
- package/iconeditor.d.tlua +130 -0
- package/igmodaudiochannel.d.tlua +419 -0
- package/imagecheckbox.d.tlua +48 -0
- package/imaterial.d.tlua +288 -0
- package/imesh.d.tlua +70 -0
- package/index.d.tlua +277 -0
- package/input.d.tlua +252 -0
- package/invalidateinternalentitycache.d.tlua +13 -0
- package/irestore.d.tlua +94 -0
- package/isave.d.tlua +94 -0
- package/itexture.d.tlua +108 -0
- package/ivideowriter.d.tlua +53 -0
- package/jit.d.tlua +243 -0
- package/killicon.d.tlua +84 -0
- package/label.d.tlua +20 -0
- package/language.d.tlua +26 -0
- package/list.d.tlua +112 -0
- package/makeballoon.d.tlua +15 -0
- package/markup.d.tlua +38 -0
- package/markupobject.d.tlua +53 -0
- package/material.d.tlua +9 -0
- package/math.d.tlua +899 -0
- package/matproxy.d.tlua +60 -0
- package/matselect.d.tlua +106 -0
- package/menu.d.tlua +20 -0
- package/menubar.d.tlua +39 -0
- package/mesh.d.tlua +183 -0
- package/modelimage.d.tlua +12 -0
- package/motionsensor.d.tlua +115 -0
- package/navmesh.d.tlua +274 -0
- package/net.d.tlua +639 -0
- package/nextbot.d.tlua +380 -0
- package/notification.d.tlua +35 -0
- package/npc.d.tlua +1787 -0
- package/numpad.d.tlua +89 -0
- package/os.d.tlua +56 -0
- package/package.d.tlua +15 -0
- package/package.json +18 -0
- package/panel.d.tlua +3650 -0
- package/panellist.d.tlua +13 -0
- package/pathfollower.d.tlua +301 -0
- package/permissions.d.tlua +77 -0
- package/physcollide.d.tlua +40 -0
- package/physenv.d.tlua +136 -0
- package/physobj.d.tlua +799 -0
- package/pixelvis_handle_t.d.tlua +9 -0
- package/player.d.tlua +3320 -0
- package/player_manager.d.tlua +147 -0
- package/preseteditor.d.tlua +13 -0
- package/presets.d.tlua +79 -0
- package/projectedtexture.d.tlua +553 -0
- package/properties.d.tlua +65 -0
- package/propselect.d.tlua +50 -0
- package/radiobutton.d.tlua +13 -0
- package/render.d.tlua +1700 -0
- package/resource.d.tlua +73 -0
- package/richtext.d.tlua +17 -0
- package/sandbox.d.tlua +576 -0
- package/saverestore.d.tlua +148 -0
- package/schedule.d.tlua +69 -0
- package/scripted_ents.d.tlua +124 -0
- package/search.d.tlua +26 -0
- package/serverlist.d.tlua +85 -0
- package/slidebar.d.tlua +12 -0
- package/slider.d.tlua +11 -0
- package/sound.d.tlua +140 -0
- package/spawnicon.d.tlua +95 -0
- package/spawnmenu.d.tlua +286 -0
- package/spawnmenucontentpanel.d.tlua +52 -0
- package/sql.d.tlua +154 -0
- package/stack.d.tlua +57 -0
- package/steamworks.d.tlua +208 -0
- package/string.d.tlua +535 -0
- package/structures.d.tlua +4442 -0
- package/surface.d.tlua +463 -0
- package/surfaceinfo.d.tlua +70 -0
- package/system.d.tlua +134 -0
- package/table.d.tlua +533 -0
- package/task.d.tlua +92 -0
- package/team.d.tlua +195 -0
- package/textentry.d.tlua +12 -0
- package/tgaimage.d.tlua +11 -0
- package/timer.d.tlua +198 -0
- package/tool.d.tlua +466 -0
- package/ugcpublishwindow.d.tlua +83 -0
- package/umsg.d.tlua +147 -0
- package/undo.d.tlua +122 -0
- package/urllabel.d.tlua +13 -0
- package/usermessage.d.tlua +48 -0
- package/utf8.d.tlua +89 -0
- package/util.d.tlua +1087 -0
- package/vector.d.tlua +413 -0
- package/vehicle.d.tlua +472 -0
- package/vgui.d.tlua +201 -0
- package/video.d.tlua +17 -0
- package/vmatrix.d.tlua +392 -0
- package/weapon.d.tlua +913 -0
- package/weapons.d.tlua +90 -0
- package/widgets.d.tlua +29 -0
- package/workshopfilebase.d.tlua +68 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An icon editor that permits a user to modify a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) and re-render it. This is used by the spawn menu and is what is shown when you right-click an icon and select `Edit Icon`.
|
|
5
|
+
*
|
|
6
|
+
* This makes use of the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel) element.
|
|
7
|
+
*
|
|
8
|
+
* **NOTE**: This panel is only available in Sandbox and Sandbox derived gamemodes!
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* @realm client
|
|
13
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor
|
|
14
|
+
*/
|
|
15
|
+
interface IconEditor extends DFrame {}
|
|
16
|
+
|
|
17
|
+
interface IconEditor {
|
|
18
|
+
/**
|
|
19
|
+
* Applies the top-down view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
20
|
+
*
|
|
21
|
+
* Called when a user clicks the `Above` (third) button (See [IconEditor](https://wiki.facepunch.com/gmod/IconEditor)).
|
|
22
|
+
*
|
|
23
|
+
* @realm client
|
|
24
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:AboveLayout
|
|
25
|
+
*/
|
|
26
|
+
AboveLayout(self: IconEditor): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface IconEditor {
|
|
30
|
+
/**
|
|
31
|
+
* Applies the best camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel), using the values returned by [Global.PositionSpawnIcon](https://wiki.facepunch.com/gmod/Global.PositionSpawnIcon).
|
|
32
|
+
*
|
|
33
|
+
* Called when a user clicks the `wand` button (See the ) and when [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh) is called.
|
|
34
|
+
*
|
|
35
|
+
* @realm client
|
|
36
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:BestGuessLayout
|
|
37
|
+
*/
|
|
38
|
+
BestGuessLayout(self: IconEditor): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface IconEditor {
|
|
42
|
+
/**
|
|
43
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
44
|
+
* Fills the [DListView](https://wiki.facepunch.com/gmod/DListView) on the left of the editor with the model entity's animation list. Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
|
|
45
|
+
* @realm client
|
|
46
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:FillAnimations
|
|
47
|
+
*/
|
|
48
|
+
FillAnimations(self: IconEditor, ent: Entity): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface IconEditor {
|
|
52
|
+
/**
|
|
53
|
+
* Applies the front view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
54
|
+
*
|
|
55
|
+
* Called when a user clicks the `Front` (second) button (See the ).
|
|
56
|
+
*
|
|
57
|
+
* @realm client
|
|
58
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:FullFrontalLayout
|
|
59
|
+
*/
|
|
60
|
+
FullFrontalLayout(self: IconEditor): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface IconEditor {
|
|
64
|
+
/**
|
|
65
|
+
* Places the camera at the origin (0,0,0), relative to the entity, in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
66
|
+
*
|
|
67
|
+
* Called when a user clicks the `Center` (fifth) button (See the ).
|
|
68
|
+
*
|
|
69
|
+
* @realm client
|
|
70
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:OriginLayout
|
|
71
|
+
*/
|
|
72
|
+
OriginLayout(self: IconEditor): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface IconEditor {
|
|
76
|
+
/**
|
|
77
|
+
* Re-renders the [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
78
|
+
*
|
|
79
|
+
* Called when a user clicks the `RENDER` button, this retrieves the render data from the internal [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel) and passes it as a table to [Panel:RebuildSpawnIconEx](https://wiki.facepunch.com/gmod/Panel:RebuildSpawnIconEx).
|
|
80
|
+
*
|
|
81
|
+
* @realm client
|
|
82
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:RenderIcon
|
|
83
|
+
*/
|
|
84
|
+
RenderIcon(self: IconEditor): void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface IconEditor {
|
|
88
|
+
/**
|
|
89
|
+
* Applies the right side view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
90
|
+
*
|
|
91
|
+
* Called when a user clicks the `Right` (fourth) button (See the ). (Note: The icon for this points left.)
|
|
92
|
+
*
|
|
93
|
+
* @realm client
|
|
94
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:RightLayout
|
|
95
|
+
*/
|
|
96
|
+
RightLayout(self: IconEditor): void;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface IconEditor {
|
|
100
|
+
/**
|
|
101
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
102
|
+
* Sets up the default ambient and directional lighting for the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
|
|
103
|
+
* @realm client
|
|
104
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:SetDefaultLighting
|
|
105
|
+
*/
|
|
106
|
+
SetDefaultLighting(self: IconEditor): void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface IconEditor {
|
|
110
|
+
/**
|
|
111
|
+
* Sets the editor's model and icon from an entity. Alternative to [IconEditor:SetIcon](https://wiki.facepunch.com/gmod/IconEditor:SetIcon), with uses a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
112
|
+
*
|
|
113
|
+
* You do not need to call [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh) after this.
|
|
114
|
+
*
|
|
115
|
+
* @realm client
|
|
116
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:SetFromEntity
|
|
117
|
+
*/
|
|
118
|
+
SetFromEntity(self: IconEditor, ent: Entity): void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface IconEditor {
|
|
122
|
+
/**
|
|
123
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
124
|
+
* Updates the entity being rendered in the internal [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by the model panel's [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) method.
|
|
125
|
+
* @realm client
|
|
126
|
+
* @source https://wiki.facepunch.com/gmod/IconEditor:UpdateEntity
|
|
127
|
+
*/
|
|
128
|
+
UpdateEntity(self: IconEditor, ent: Entity): void;
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
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
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel
|
|
6
|
+
*/
|
|
7
|
+
interface IGModAudioChannel {}
|
|
8
|
+
|
|
9
|
+
interface IGModAudioChannel {
|
|
10
|
+
/**
|
|
11
|
+
* Enables or disables looping of audio channel, requires noblock flag.
|
|
12
|
+
* @realm client
|
|
13
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:EnableLooping
|
|
14
|
+
*/
|
|
15
|
+
EnableLooping(self: IGModAudioChannel, enable: boolean): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface IGModAudioChannel {
|
|
19
|
+
/**
|
|
20
|
+
* Computes the [DFT (discrete Fourier transform)](https://en.wikipedia.org/wiki/Discrete_Fourier_transform) of the sound channel.
|
|
21
|
+
*
|
|
22
|
+
* The size parameter specifies the number of consecutive audio samples to use as the input to the DFT and is restricted to a power of two. A [Hann window](https://en.wikipedia.org/wiki/Hann_function) is applied to the input data.
|
|
23
|
+
*
|
|
24
|
+
* The computed DFT has the same number of frequency bins as the number of samples. Only half of this DFT is returned, since [the DFT magnitudes are symmetric for real input data](https://en.wikipedia.org/wiki/Discrete_Fourier_transform#The_real-input_DFT). The magnitudes of the DFT (values from 0 to 1) are used to fill the output table, starting at index 1.
|
|
25
|
+
*
|
|
26
|
+
* **Visualization protip:** For a size N DFT, bin k (1-indexed) corresponds to a frequency of (k - 1) / N * sampleRate.
|
|
27
|
+
*
|
|
28
|
+
* **Visualization protip:** Sound energy is proportional to the square of the magnitudes. Adding magnitudes together makes no sense physically, but adding energies does.
|
|
29
|
+
*
|
|
30
|
+
* **Visualization protip:** The human ear works on a logarithmic amplitude scale. You can convert to [decibels](https://en.wikipedia.org/wiki/Decibel) by taking 20 * [math.log10](https://wiki.facepunch.com/gmod/math.log10) of frequency magnitudes, or 10 * [math.log10](https://wiki.facepunch.com/gmod/math.log10) of energy. The decibel values will range from -infinity to 0.
|
|
31
|
+
*
|
|
32
|
+
* @realm client
|
|
33
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:FFT
|
|
34
|
+
*/
|
|
35
|
+
FFT(self: IGModAudioChannel, tbl: number[], size: FFT): number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface IGModAudioChannel {
|
|
39
|
+
/**
|
|
40
|
+
* Returns 3D cone of the sound channel. See [IGModAudioChannel:Set3DCone](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone).
|
|
41
|
+
* @realm client
|
|
42
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DCone
|
|
43
|
+
*/
|
|
44
|
+
Get3DCone(self: IGModAudioChannel): (number, number, number);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface IGModAudioChannel {
|
|
48
|
+
/**
|
|
49
|
+
* 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
|
+
*
|
|
51
|
+
* @realm client
|
|
52
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled
|
|
53
|
+
*/
|
|
54
|
+
Get3DEnabled(self: IGModAudioChannel): boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface IGModAudioChannel {
|
|
58
|
+
/**
|
|
59
|
+
* Returns 3D fade distances of a sound channel.
|
|
60
|
+
* @realm client
|
|
61
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DFadeDistance
|
|
62
|
+
*/
|
|
63
|
+
Get3DFadeDistance(self: IGModAudioChannel): (number, number);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface IGModAudioChannel {
|
|
67
|
+
/**
|
|
68
|
+
* Returns the average bit rate of the sound channel.
|
|
69
|
+
* @realm client
|
|
70
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetAverageBitRate
|
|
71
|
+
*/
|
|
72
|
+
GetAverageBitRate(self: IGModAudioChannel): number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface IGModAudioChannel {
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves the number of bits per sample of the sound channel.
|
|
78
|
+
*
|
|
79
|
+
* Doesn't work for mp3 and ogg files.
|
|
80
|
+
*
|
|
81
|
+
* @realm client
|
|
82
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBitsPerSample
|
|
83
|
+
*/
|
|
84
|
+
GetBitsPerSample(self: IGModAudioChannel): number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface IGModAudioChannel {
|
|
88
|
+
/**
|
|
89
|
+
* 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
|
+
*
|
|
91
|
+
* For offline channels this will be equivalent to [IGModAudioChannel:GetLength](https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLength).
|
|
92
|
+
* @realm client
|
|
93
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBufferedTime
|
|
94
|
+
*/
|
|
95
|
+
GetBufferedTime(self: IGModAudioChannel): number;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface IGModAudioChannel {
|
|
99
|
+
/**
|
|
100
|
+
* Returns the filename for the sound channel.
|
|
101
|
+
* @realm client
|
|
102
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetFileName
|
|
103
|
+
*/
|
|
104
|
+
GetFileName(self: IGModAudioChannel): string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface IGModAudioChannel {
|
|
108
|
+
/**
|
|
109
|
+
* Returns the length of sound played by the sound channel in seconds.
|
|
110
|
+
* @realm client
|
|
111
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLength
|
|
112
|
+
*/
|
|
113
|
+
GetLength(self: IGModAudioChannel): number;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface IGModAudioChannel {
|
|
117
|
+
/**
|
|
118
|
+
* Returns the right and left levels of sound played by the sound channel.
|
|
119
|
+
* @realm client
|
|
120
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLevel
|
|
121
|
+
*/
|
|
122
|
+
GetLevel(self: IGModAudioChannel): (number, number);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface IGModAudioChannel {
|
|
126
|
+
/**
|
|
127
|
+
* Gets the relative volume of the left and right channels.
|
|
128
|
+
*
|
|
129
|
+
* @realm client
|
|
130
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPan
|
|
131
|
+
*/
|
|
132
|
+
GetPan(self: IGModAudioChannel): number;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
interface IGModAudioChannel {
|
|
136
|
+
/**
|
|
137
|
+
* Returns the playback rate of the sound channel.
|
|
138
|
+
* @realm client
|
|
139
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPlaybackRate
|
|
140
|
+
*/
|
|
141
|
+
GetPlaybackRate(self: IGModAudioChannel): number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface IGModAudioChannel {
|
|
145
|
+
/**
|
|
146
|
+
* Returns position of the sound channel
|
|
147
|
+
* @realm client
|
|
148
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPos
|
|
149
|
+
*/
|
|
150
|
+
GetPos(self: IGModAudioChannel): Vector;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface IGModAudioChannel {
|
|
154
|
+
/**
|
|
155
|
+
* Returns the sample rate for currently playing sound.
|
|
156
|
+
* @realm client
|
|
157
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetSamplingRate
|
|
158
|
+
*/
|
|
159
|
+
GetSamplingRate(self: IGModAudioChannel): number;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface IGModAudioChannel {
|
|
163
|
+
/**
|
|
164
|
+
* Returns the state of a sound channel
|
|
165
|
+
* @realm client
|
|
166
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetState
|
|
167
|
+
*/
|
|
168
|
+
GetState(self: IGModAudioChannel): number;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface IGModAudioChannel {
|
|
172
|
+
/**
|
|
173
|
+
* Retrieves HTTP headers from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
|
|
174
|
+
*
|
|
175
|
+
* Of special interest here are headers such as `icy-name`, `icy-br`, `ice-audio-info`, `icy-genre`.
|
|
176
|
+
*
|
|
177
|
+
* @realm client
|
|
178
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsHTTP
|
|
179
|
+
*/
|
|
180
|
+
GetTagsHTTP(self: IGModAudioChannel): string[];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface IGModAudioChannel {
|
|
184
|
+
/**
|
|
185
|
+
* 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
|
+
*
|
|
187
|
+
* ID3v2 is not supported.
|
|
188
|
+
*
|
|
189
|
+
* @realm client
|
|
190
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsID3
|
|
191
|
+
*/
|
|
192
|
+
GetTagsID3(self: IGModAudioChannel): table;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
interface IGModAudioChannel {
|
|
196
|
+
/**
|
|
197
|
+
* 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
|
+
*
|
|
199
|
+
* @realm client
|
|
200
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMP4
|
|
201
|
+
*/
|
|
202
|
+
GetTagsMP4(self: IGModAudioChannel): string[];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface IGModAudioChannel {
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves ICY metadata from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
|
|
208
|
+
*
|
|
209
|
+
* @realm client
|
|
210
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMeta
|
|
211
|
+
*/
|
|
212
|
+
GetTagsMeta(self: IGModAudioChannel): string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
interface IGModAudioChannel {
|
|
216
|
+
/**
|
|
217
|
+
* 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
|
+
*
|
|
219
|
+
* @realm client
|
|
220
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsOGG
|
|
221
|
+
*/
|
|
222
|
+
GetTagsOGG(self: IGModAudioChannel): string[];
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface IGModAudioChannel {
|
|
226
|
+
/**
|
|
227
|
+
* 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
|
+
*
|
|
229
|
+
* @realm client
|
|
230
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsVendor
|
|
231
|
+
*/
|
|
232
|
+
GetTagsVendor(self: IGModAudioChannel): string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface IGModAudioChannel {
|
|
236
|
+
/**
|
|
237
|
+
* 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
|
+
*
|
|
239
|
+
* @realm client
|
|
240
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsWMA
|
|
241
|
+
*/
|
|
242
|
+
GetTagsWMA(self: IGModAudioChannel): string[];
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface IGModAudioChannel {
|
|
246
|
+
/**
|
|
247
|
+
* Returns the current time of the sound channel in seconds
|
|
248
|
+
* @realm client
|
|
249
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTime
|
|
250
|
+
*/
|
|
251
|
+
GetTime(self: IGModAudioChannel): number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
interface IGModAudioChannel {
|
|
255
|
+
/**
|
|
256
|
+
* Returns volume of a sound channel
|
|
257
|
+
* @realm client
|
|
258
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetVolume
|
|
259
|
+
*/
|
|
260
|
+
GetVolume(self: IGModAudioChannel): number;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
interface IGModAudioChannel {
|
|
264
|
+
/**
|
|
265
|
+
* Returns if the sound channel is in 3D mode or not.
|
|
266
|
+
* @realm client
|
|
267
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D
|
|
268
|
+
*/
|
|
269
|
+
Is3D(self: IGModAudioChannel): boolean;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface IGModAudioChannel {
|
|
273
|
+
/**
|
|
274
|
+
* Returns whether the audio stream is block streamed or not.
|
|
275
|
+
* @realm client
|
|
276
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsBlockStreamed
|
|
277
|
+
*/
|
|
278
|
+
IsBlockStreamed(self: IGModAudioChannel): boolean;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface IGModAudioChannel {
|
|
282
|
+
/**
|
|
283
|
+
* Returns if the sound channel is looping or not.
|
|
284
|
+
* @realm client
|
|
285
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsLooping
|
|
286
|
+
*/
|
|
287
|
+
IsLooping(self: IGModAudioChannel): boolean;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
interface IGModAudioChannel {
|
|
291
|
+
/**
|
|
292
|
+
* Returns if the sound channel is streamed from the Internet or not.
|
|
293
|
+
* @realm client
|
|
294
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsOnline
|
|
295
|
+
*/
|
|
296
|
+
IsOnline(self: IGModAudioChannel): boolean;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface IGModAudioChannel {
|
|
300
|
+
/**
|
|
301
|
+
* Returns if the sound channel is valid or not.
|
|
302
|
+
* @realm client
|
|
303
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsValid
|
|
304
|
+
*/
|
|
305
|
+
IsValid(self: IGModAudioChannel): boolean;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface IGModAudioChannel {
|
|
309
|
+
/**
|
|
310
|
+
* Pauses the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play)
|
|
311
|
+
* @realm client
|
|
312
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Pause
|
|
313
|
+
*/
|
|
314
|
+
Pause(self: IGModAudioChannel): void;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
interface IGModAudioChannel {
|
|
318
|
+
/**
|
|
319
|
+
* Starts playing the stream.
|
|
320
|
+
* @realm client
|
|
321
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Play
|
|
322
|
+
*/
|
|
323
|
+
Play(self: IGModAudioChannel): void;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface IGModAudioChannel {
|
|
327
|
+
/**
|
|
328
|
+
* Sets 3D cone of the sound channel.
|
|
329
|
+
* @realm client
|
|
330
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone
|
|
331
|
+
*/
|
|
332
|
+
Set3DCone(self: IGModAudioChannel, innerAngle: number, outerAngle: number, outerVolume: number): void;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface IGModAudioChannel {
|
|
336
|
+
/**
|
|
337
|
+
* 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
|
+
*
|
|
339
|
+
* This feature **requires** the channel to be initially created in 3D mode, i.e. [IGModAudioChannel:Is3D](https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D) should return true or this function will do nothing.
|
|
340
|
+
*
|
|
341
|
+
* @realm client
|
|
342
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled
|
|
343
|
+
*/
|
|
344
|
+
Set3DEnabled(self: IGModAudioChannel, enable: boolean): void;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface IGModAudioChannel {
|
|
348
|
+
/**
|
|
349
|
+
* Sets 3D fade distances of a sound channel.
|
|
350
|
+
* @realm client
|
|
351
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DFadeDistance
|
|
352
|
+
*/
|
|
353
|
+
Set3DFadeDistance(self: IGModAudioChannel, min: number, max: number): void;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
interface IGModAudioChannel {
|
|
357
|
+
/**
|
|
358
|
+
* Sets the relative volume of the left and right channels.
|
|
359
|
+
*
|
|
360
|
+
* @realm client
|
|
361
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPan
|
|
362
|
+
*/
|
|
363
|
+
SetPan(self: IGModAudioChannel, pan: number): void;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface IGModAudioChannel {
|
|
367
|
+
/**
|
|
368
|
+
* Sets the playback rate of the sound channel. May not work with high values for radio streams.
|
|
369
|
+
* @realm client
|
|
370
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPlaybackRate
|
|
371
|
+
*/
|
|
372
|
+
SetPlaybackRate(self: IGModAudioChannel, rate: number): void;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
interface IGModAudioChannel {
|
|
376
|
+
/**
|
|
377
|
+
* Sets position of sound channel in case the sound channel has a 3d option set.
|
|
378
|
+
* @realm client
|
|
379
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPos
|
|
380
|
+
*/
|
|
381
|
+
SetPos(self: IGModAudioChannel, pos: Vector, dir?: Vector): void;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface IGModAudioChannel {
|
|
385
|
+
/**
|
|
386
|
+
* Sets the sound channel to specified time ( Rewind to that position of the song ). Does not work on online radio streams.
|
|
387
|
+
*
|
|
388
|
+
* Streamed sounds must have "noblock" parameter for this to work and [IGModAudioChannel:IsBlockStreamed](https://wiki.facepunch.com/gmod/IGModAudioChannel:IsBlockStreamed) must return false.
|
|
389
|
+
*
|
|
390
|
+
* **NOTE**: Streamed sounds can only have their time set to up to the current [IGModAudioChannel:GetBufferedTime](https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBufferedTime).
|
|
391
|
+
*
|
|
392
|
+
*
|
|
393
|
+
* @realm client
|
|
394
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetTime
|
|
395
|
+
*/
|
|
396
|
+
SetTime(self: IGModAudioChannel, secs: number, dont_decode?: boolean): void;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
interface IGModAudioChannel {
|
|
400
|
+
/**
|
|
401
|
+
* Sets the volume of a sound channel
|
|
402
|
+
* @realm client
|
|
403
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetVolume
|
|
404
|
+
*/
|
|
405
|
+
SetVolume(self: IGModAudioChannel, volume: number): void;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
interface IGModAudioChannel {
|
|
409
|
+
/**
|
|
410
|
+
* Stop the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play).
|
|
411
|
+
*
|
|
412
|
+
* Calling this invalidates the IGModAudioChannel object rendering it unusable for further functions.
|
|
413
|
+
*
|
|
414
|
+
* @realm client
|
|
415
|
+
* @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Stop
|
|
416
|
+
*/
|
|
417
|
+
Stop(self: IGModAudioChannel): void;
|
|
418
|
+
}
|
|
419
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A checkbox panel similar to [DCheckBox](https://wiki.facepunch.com/gmod/DCheckBox) and [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) with customizable checked state image.
|
|
5
|
+
*
|
|
6
|
+
* Uses the [Material](https://wiki.facepunch.com/gmod/Material) panel internally. Can't have a label.
|
|
7
|
+
*
|
|
8
|
+
* **NOTE**: Will error if no material was set.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* @realm client
|
|
12
|
+
* @source https://wiki.facepunch.com/gmod/ImageCheckBox
|
|
13
|
+
*/
|
|
14
|
+
interface ImageCheckBox extends Button {}
|
|
15
|
+
|
|
16
|
+
interface ImageCheckBox {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the checked state of the [ImageCheckBox](https://wiki.facepunch.com/gmod/ImageCheckBox)
|
|
19
|
+
* @realm client
|
|
20
|
+
* @source https://wiki.facepunch.com/gmod/ImageCheckBox:GetChecked
|
|
21
|
+
*/
|
|
22
|
+
GetChecked(self: ImageCheckBox): boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface ImageCheckBox {
|
|
26
|
+
/**
|
|
27
|
+
* Sets the checked state of the checkbox.
|
|
28
|
+
*
|
|
29
|
+
* Checked state can be obtained by [ImageCheckBox](https://wiki.facepunch.com/gmod/ImageCheckBox).State.
|
|
30
|
+
*
|
|
31
|
+
* @realm client
|
|
32
|
+
* @source https://wiki.facepunch.com/gmod/ImageCheckBox:Set
|
|
33
|
+
*/
|
|
34
|
+
Set(self: ImageCheckBox, OnOff: boolean): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ImageCheckBox {
|
|
38
|
+
/**
|
|
39
|
+
* Sets the checked state of the checkbox.
|
|
40
|
+
*
|
|
41
|
+
* Checked state can be obtained via [ImageCheckBox:GetChecked](https://wiki.facepunch.com/gmod/ImageCheckBox:GetChecked)
|
|
42
|
+
*
|
|
43
|
+
* @realm client
|
|
44
|
+
* @source https://wiki.facepunch.com/gmod/ImageCheckBox:SetChecked
|
|
45
|
+
*/
|
|
46
|
+
SetChecked(self: ImageCheckBox, bOn: boolean): void;
|
|
47
|
+
}
|
|
48
|
+
|