@rbxts/types 1.0.779 → 1.0.781
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.
|
@@ -424,6 +424,7 @@ interface CreatableInstances {
|
|
|
424
424
|
TrussPart: TrussPart;
|
|
425
425
|
UIAspectRatioConstraint: UIAspectRatioConstraint;
|
|
426
426
|
UICorner: UICorner;
|
|
427
|
+
UIDragDetector: UIDragDetector;
|
|
427
428
|
UIFlexItem: UIFlexItem;
|
|
428
429
|
UIGradient: UIGradient;
|
|
429
430
|
UIGridLayout: UIGridLayout;
|
|
@@ -2859,6 +2860,7 @@ interface AudioDeviceInput extends Instance {
|
|
|
2859
2860
|
readonly Active: boolean;
|
|
2860
2861
|
Muted: boolean;
|
|
2861
2862
|
Player: Player | undefined;
|
|
2863
|
+
Volume: number;
|
|
2862
2864
|
GetConnectedWires(this: AudioDeviceInput, pin: string): unknown;
|
|
2863
2865
|
GetUserIdAccessList(this: AudioDeviceInput): unknown;
|
|
2864
2866
|
SetUserIdAccessList(this: AudioDeviceInput, userIds: Array<any>): void;
|
|
@@ -3028,6 +3030,7 @@ interface AudioPlayer extends Instance {
|
|
|
3028
3030
|
*/
|
|
3029
3031
|
readonly TimeLength: number;
|
|
3030
3032
|
TimePosition: number;
|
|
3033
|
+
Volume: number;
|
|
3031
3034
|
GetConnectedWires(this: AudioPlayer, pin: string): unknown;
|
|
3032
3035
|
Play(this: AudioPlayer): void;
|
|
3033
3036
|
Stop(this: AudioPlayer): void;
|
|
@@ -7562,7 +7565,7 @@ interface CollectionService extends Instance {
|
|
|
7562
7565
|
*/
|
|
7563
7566
|
AddTag(this: CollectionService, instance: Instance, tag: string): void;
|
|
7564
7567
|
AddTag(this: Instance, tag: string): void;
|
|
7565
|
-
GetAllTags(this: CollectionService):
|
|
7568
|
+
GetAllTags(this: CollectionService): Array<string>;
|
|
7566
7569
|
/**
|
|
7567
7570
|
* GetInstanceAdded is given a tag (a string) and returns a signal which fires under two conditions:
|
|
7568
7571
|
*
|
|
@@ -13332,6 +13335,11 @@ interface TextButton extends GuiButton {
|
|
|
13332
13335
|
* Setting the property to -1 disables the limit and shows the entirety of the [TextButton.Text](https://developer.roblox.com/en-us/api-reference/property/TextButton/Text).
|
|
13333
13336
|
*/
|
|
13334
13337
|
MaxVisibleGraphemes: number;
|
|
13338
|
+
OpenTypeFeatures: string;
|
|
13339
|
+
/**
|
|
13340
|
+
* Tags: NotReplicated
|
|
13341
|
+
*/
|
|
13342
|
+
readonly OpenTypeFeaturesError: string;
|
|
13335
13343
|
/**
|
|
13336
13344
|
* This property determines whether the [TextButton](https://developer.roblox.com/en-us/api-reference/class/TextButton) renders the [TextButton.Text](https://developer.roblox.com/en-us/api-reference/property/TextButton/Text) string using rich text formatting. Rich text uses simple markup tags to style sections of the string in bold, italics, specific colors, and more.
|
|
13337
13345
|
*
|
|
@@ -13656,6 +13664,11 @@ interface TextLabel extends GuiLabel {
|
|
|
13656
13664
|
* Setting the property to -1 disables the limit and shows the entirety of the [TextLabel.Text](https://developer.roblox.com/en-us/api-reference/property/TextLabel/Text).
|
|
13657
13665
|
*/
|
|
13658
13666
|
MaxVisibleGraphemes: number;
|
|
13667
|
+
OpenTypeFeatures: string;
|
|
13668
|
+
/**
|
|
13669
|
+
* Tags: NotReplicated
|
|
13670
|
+
*/
|
|
13671
|
+
readonly OpenTypeFeaturesError: string;
|
|
13659
13672
|
/**
|
|
13660
13673
|
* This property determines whether the [TextLabel](https://developer.roblox.com/en-us/api-reference/class/TextLabel) renders the [TextLabel.Text](https://developer.roblox.com/en-us/api-reference/property/TextLabel/Text) string using rich text formatting. Rich text uses simple markup tags to style sections of the string in bold, italics, specific colors, and more.
|
|
13661
13674
|
*
|
|
@@ -14049,6 +14062,11 @@ interface TextBox extends GuiObject {
|
|
|
14049
14062
|
* When set to true, text inside a TextBox is able to move onto multiple lines. This also enables players to use the enter key to move onto a new line.
|
|
14050
14063
|
*/
|
|
14051
14064
|
MultiLine: boolean;
|
|
14065
|
+
OpenTypeFeatures: string;
|
|
14066
|
+
/**
|
|
14067
|
+
* Tags: NotReplicated
|
|
14068
|
+
*/
|
|
14069
|
+
readonly OpenTypeFeaturesError: string;
|
|
14052
14070
|
/**
|
|
14053
14071
|
* Sets the text color that gets used when no text has been entered into the TextBox yet.
|
|
14054
14072
|
*/
|
|
@@ -35820,6 +35838,38 @@ interface UICorner extends UIComponent {
|
|
|
35820
35838
|
CornerRadius: UDim;
|
|
35821
35839
|
}
|
|
35822
35840
|
|
|
35841
|
+
interface UIDragDetector extends UIComponent {
|
|
35842
|
+
/**
|
|
35843
|
+
* **DO NOT USE!**
|
|
35844
|
+
*
|
|
35845
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
35846
|
+
* @hidden
|
|
35847
|
+
* @deprecated
|
|
35848
|
+
*/
|
|
35849
|
+
readonly _nominal_UIDragDetector: unique symbol;
|
|
35850
|
+
BoundingUI: GuiBase2d | undefined;
|
|
35851
|
+
DragAxis: Vector2;
|
|
35852
|
+
DragRelativity: Enum.UIDragDetectorDragRelativity;
|
|
35853
|
+
DragRotation: number;
|
|
35854
|
+
DragSpace: Enum.UIDragDetectorDragSpace;
|
|
35855
|
+
DragStyle: Enum.UIDragDetectorDragStyle;
|
|
35856
|
+
DragUDim2: UDim2;
|
|
35857
|
+
Enabled: boolean;
|
|
35858
|
+
MaxDragAngle: number;
|
|
35859
|
+
MaxDragTranslation: UDim2;
|
|
35860
|
+
MinDragAngle: number;
|
|
35861
|
+
MinDragTranslation: UDim2;
|
|
35862
|
+
ReferenceUIInstance: GuiObject | undefined;
|
|
35863
|
+
ResponseStyle: Enum.UIDragDetectorResponseStyle;
|
|
35864
|
+
AddConstraintFunction(this: UIDragDetector, priority: number, callback: Callback): RBXScriptConnection;
|
|
35865
|
+
GetReferencePosition(this: UIDragDetector): UDim2;
|
|
35866
|
+
GetReferenceRotation(this: UIDragDetector): number;
|
|
35867
|
+
SetDragStyleFunction(this: UIDragDetector, callback: Callback): void;
|
|
35868
|
+
readonly DragContinue: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
|
35869
|
+
readonly DragEnd: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
|
35870
|
+
readonly DragStart: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
|
35871
|
+
}
|
|
35872
|
+
|
|
35823
35873
|
interface UIFlexItem extends UIComponent {
|
|
35824
35874
|
/**
|
|
35825
35875
|
* **DO NOT USE!**
|
|
@@ -3352,6 +3352,18 @@ interface GlobalSettings extends GenericSettings {
|
|
|
3352
3352
|
GetFVariable(this: GlobalSettings, name: string): string;
|
|
3353
3353
|
}
|
|
3354
3354
|
|
|
3355
|
+
interface SoundService extends Instance {
|
|
3356
|
+
/**
|
|
3357
|
+
* **DO NOT USE!**
|
|
3358
|
+
*
|
|
3359
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
3360
|
+
* @hidden
|
|
3361
|
+
* @deprecated
|
|
3362
|
+
*/
|
|
3363
|
+
readonly _nominal_SoundService: unique symbol;
|
|
3364
|
+
OpenAttenuationCurveEditor(this: SoundService, selectedCurveObjects: Array<Instance>): void;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3355
3367
|
/** A StatsItem is an internal measurement item that is created by the engine to benchmark many of the backend components of Roblox.
|
|
3356
3368
|
* It cannot be created using `Instance.new`, but its value can be read by plugins. They can be found stored inside of the [Stats](https://developer.roblox.com/en-us/api-reference/class/Stats) service.
|
|
3357
3369
|
*/
|
|
@@ -6726,35 +6726,6 @@ declare namespace Enum {
|
|
|
6726
6726
|
}
|
|
6727
6727
|
export type EasingStyle = EasingStyle.Linear | EasingStyle.Sine | EasingStyle.Back | EasingStyle.Quad | EasingStyle.Quart | EasingStyle.Quint | EasingStyle.Bounce | EasingStyle.Elastic | EasingStyle.Exponential | EasingStyle.Circular | EasingStyle.Cubic;
|
|
6728
6728
|
|
|
6729
|
-
export namespace EditorLiveScripting {
|
|
6730
|
-
export interface Default extends globalThis.EnumItem {
|
|
6731
|
-
Name: "Default";
|
|
6732
|
-
Value: 0;
|
|
6733
|
-
EnumType: typeof globalThis.Enum.EditorLiveScripting;
|
|
6734
|
-
}
|
|
6735
|
-
|
|
6736
|
-
export const Default: Default;
|
|
6737
|
-
|
|
6738
|
-
export interface Disabled extends globalThis.EnumItem {
|
|
6739
|
-
Name: "Disabled";
|
|
6740
|
-
Value: 1;
|
|
6741
|
-
EnumType: typeof globalThis.Enum.EditorLiveScripting;
|
|
6742
|
-
}
|
|
6743
|
-
|
|
6744
|
-
export const Disabled: Disabled;
|
|
6745
|
-
|
|
6746
|
-
export interface Enabled extends globalThis.EnumItem {
|
|
6747
|
-
Name: "Enabled";
|
|
6748
|
-
Value: 2;
|
|
6749
|
-
EnumType: typeof globalThis.Enum.EditorLiveScripting;
|
|
6750
|
-
}
|
|
6751
|
-
|
|
6752
|
-
export const Enabled: Enabled;
|
|
6753
|
-
|
|
6754
|
-
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.EditorLiveScripting>;
|
|
6755
|
-
}
|
|
6756
|
-
export type EditorLiveScripting = EditorLiveScripting.Default | EditorLiveScripting.Disabled | EditorLiveScripting.Enabled;
|
|
6757
|
-
|
|
6758
6729
|
export namespace ElasticBehavior {
|
|
6759
6730
|
export interface WhenScrollable extends globalThis.EnumItem {
|
|
6760
6731
|
Name: "WhenScrollable";
|
|
@@ -20154,6 +20125,27 @@ declare namespace Enum {
|
|
|
20154
20125
|
}
|
|
20155
20126
|
export type TickCountSampleMethod = TickCountSampleMethod.Fast | TickCountSampleMethod.Benchmark | TickCountSampleMethod.Precise;
|
|
20156
20127
|
|
|
20128
|
+
export namespace TonemapperPreset {
|
|
20129
|
+
export interface Default extends globalThis.EnumItem {
|
|
20130
|
+
Name: "Default";
|
|
20131
|
+
Value: 0;
|
|
20132
|
+
EnumType: typeof globalThis.Enum.TonemapperPreset;
|
|
20133
|
+
}
|
|
20134
|
+
|
|
20135
|
+
export const Default: Default;
|
|
20136
|
+
|
|
20137
|
+
export interface Retro extends globalThis.EnumItem {
|
|
20138
|
+
Name: "Retro";
|
|
20139
|
+
Value: 1;
|
|
20140
|
+
EnumType: typeof globalThis.Enum.TonemapperPreset;
|
|
20141
|
+
}
|
|
20142
|
+
|
|
20143
|
+
export const Retro: Retro;
|
|
20144
|
+
|
|
20145
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.TonemapperPreset>;
|
|
20146
|
+
}
|
|
20147
|
+
export type TonemapperPreset = TonemapperPreset.Default | TonemapperPreset.Retro;
|
|
20148
|
+
|
|
20157
20149
|
export namespace TopBottom {
|
|
20158
20150
|
export interface Top extends globalThis.EnumItem {
|
|
20159
20151
|
Name: "Top";
|
|
@@ -20622,6 +20614,56 @@ declare namespace Enum {
|
|
|
20622
20614
|
}
|
|
20623
20615
|
export type TweenStatus = TweenStatus.Canceled | TweenStatus.Completed;
|
|
20624
20616
|
|
|
20617
|
+
export namespace UIDragDetectorDragRelativity {
|
|
20618
|
+
export interface Absolute extends globalThis.EnumItem {
|
|
20619
|
+
Name: "Absolute";
|
|
20620
|
+
Value: 0;
|
|
20621
|
+
EnumType: typeof globalThis.Enum.UIDragDetectorDragRelativity;
|
|
20622
|
+
}
|
|
20623
|
+
|
|
20624
|
+
export const Absolute: Absolute;
|
|
20625
|
+
|
|
20626
|
+
export interface Relative extends globalThis.EnumItem {
|
|
20627
|
+
Name: "Relative";
|
|
20628
|
+
Value: 1;
|
|
20629
|
+
EnumType: typeof globalThis.Enum.UIDragDetectorDragRelativity;
|
|
20630
|
+
}
|
|
20631
|
+
|
|
20632
|
+
export const Relative: Relative;
|
|
20633
|
+
|
|
20634
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.UIDragDetectorDragRelativity>;
|
|
20635
|
+
}
|
|
20636
|
+
export type UIDragDetectorDragRelativity = UIDragDetectorDragRelativity.Absolute | UIDragDetectorDragRelativity.Relative;
|
|
20637
|
+
|
|
20638
|
+
export namespace UIDragDetectorDragSpace {
|
|
20639
|
+
export interface Parent extends globalThis.EnumItem {
|
|
20640
|
+
Name: "Parent";
|
|
20641
|
+
Value: 0;
|
|
20642
|
+
EnumType: typeof globalThis.Enum.UIDragDetectorDragSpace;
|
|
20643
|
+
}
|
|
20644
|
+
|
|
20645
|
+
export const Parent: Parent;
|
|
20646
|
+
|
|
20647
|
+
export interface LayerCollector extends globalThis.EnumItem {
|
|
20648
|
+
Name: "LayerCollector";
|
|
20649
|
+
Value: 1;
|
|
20650
|
+
EnumType: typeof globalThis.Enum.UIDragDetectorDragSpace;
|
|
20651
|
+
}
|
|
20652
|
+
|
|
20653
|
+
export const LayerCollector: LayerCollector;
|
|
20654
|
+
|
|
20655
|
+
export interface Reference extends globalThis.EnumItem {
|
|
20656
|
+
Name: "Reference";
|
|
20657
|
+
Value: 2;
|
|
20658
|
+
EnumType: typeof globalThis.Enum.UIDragDetectorDragSpace;
|
|
20659
|
+
}
|
|
20660
|
+
|
|
20661
|
+
export const Reference: Reference;
|
|
20662
|
+
|
|
20663
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.UIDragDetectorDragSpace>;
|
|
20664
|
+
}
|
|
20665
|
+
export type UIDragDetectorDragSpace = UIDragDetectorDragSpace.Parent | UIDragDetectorDragSpace.LayerCollector | UIDragDetectorDragSpace.Reference;
|
|
20666
|
+
|
|
20625
20667
|
export namespace UIDragDetectorDragStyle {
|
|
20626
20668
|
export interface TranslatePlane extends globalThis.EnumItem {
|
|
20627
20669
|
Name: "TranslatePlane";
|