0.532.0.5320475

This commit is contained in:
Max 2022-06-28 15:21:05 -05:00
parent 39b56b12ee
commit bb64900471
7 changed files with 156 additions and 175 deletions

View File

@ -1,5 +1,5 @@
// Auto-generated list of creatable Roblox classes. // Auto-generated list of creatable Roblox classes.
// Updated as of 0.530.0.5300290 // Updated as of 0.532.0.5320475
using System; using System;
@ -1054,6 +1054,14 @@ namespace RobloxFiles
} }
} }
public class DeviceIdService : Instance
{
public DeviceIdService()
{
IsService = true;
}
}
public class Dialog : Instance public class Dialog : Instance
{ {
public DialogBehaviorType BehaviorType = DialogBehaviorType.SinglePlayer; public DialogBehaviorType BehaviorType = DialogBehaviorType.SinglePlayer;
@ -1358,7 +1366,7 @@ namespace RobloxFiles
public Color3 BorderColor3 = Color3.FromRGB(27, 42, 53); public Color3 BorderColor3 = Color3.FromRGB(27, 42, 53);
public BorderMode BorderMode = BorderMode.Outline; public BorderMode BorderMode = BorderMode.Outline;
public int BorderSizePixel = 1; public int BorderSizePixel = 1;
public bool ClipsDescendants; public bool ClipsDescendants = true;
[Obsolete] [Obsolete]
public bool Draggable; public bool Draggable;
@ -2716,6 +2724,7 @@ namespace RobloxFiles
public Content MeshId = ""; public Content MeshId = "";
public RenderFidelity RenderFidelity = RenderFidelity.Precise; public RenderFidelity RenderFidelity = RenderFidelity.Precise;
public Content TextureID = ""; public Content TextureID = "";
public int VertexCount = 0;
} }
public class PartOperation : TriangleMeshPart public class PartOperation : TriangleMeshPart
@ -3489,7 +3498,7 @@ namespace RobloxFiles
public float Threshold = -40; public float Threshold = -40;
} }
public abstract class CustomDspSoundEffect : SoundEffect public abstract class CustomSoundEffect : SoundEffect
{ {
} }

View File

@ -1,5 +1,5 @@
// Auto-generated list of Roblox enums. // Auto-generated list of Roblox enums.
// Updated as of 0.530.0.5300290 // Updated as of 0.532.0.5320475
namespace RobloxFiles.Enums namespace RobloxFiles.Enums
{ {

Binary file not shown.

View File

@ -1,30 +1,24 @@
--!strict --!strict
local Format = {} local Format: Format = {}
type IFlags = { [string]: boolean } export type FormatFunc = (any) -> string
type IEnum = { GetEnumItems: (IEnum) -> {EnumItem} } export type Format = { [string]: FormatFunc }
export type IEnum = { GetEnumItems: (IEnum) -> {EnumItem} }
type IAxes = local function flags<T>(flags: T, enum: IEnum): string
{ local value = 0
X: boolean;
Y: boolean;
Z: boolean;
}
type IFaces = for i, item in enum:GetEnumItems() do
{ if (flags :: any)[item.Name] then
Left: boolean; value += (2 ^ item.Value)
Right: boolean; end
end
Top: boolean; return tostring(value)
Bottom: boolean; end
Front: boolean; function Format.Null(value: any): string
Back: boolean; return ""
}
function Format.Null(value: any): nil
return nil
end end
function Format.Bytes(value: string): string function Format.Bytes(value: string): string
@ -35,12 +29,8 @@ function Format.Bytes(value: string): string
return "Array.Empty<byte>()" return "Array.Empty<byte>()"
end end
function Format.Bool(value: boolean?): string? function Format.Bool(value: boolean?): string
if value then return (if value then "true" else "")
return "true"
end
return nil
end end
function Format.String(value: string): string function Format.String(value: string): string
@ -98,24 +88,12 @@ function Format.Float(value: number): string
end end
end end
function Format.Flags(flags: IFlags, enum: IEnum): string function Format.Axes(axes: Axes): string
local value = 0 return "(Axes)" .. flags(axes, Enum.Axis)
for _,item in pairs(enum:GetEnumItems()) do
if flags[item.Name] then
value += (2 ^ item.Value)
end
end
return tostring(value)
end end
function Format.Axes(axes: IAxes): string function Format.Faces(faces: Faces): string
return "(Axes)" .. Format.Flags(axes, Enum.Axis) return "(Faces)" .. flags(faces, Enum.NormalId)
end
function Format.Faces(faces: IFaces): string
return "(Faces)" .. Format.Flags(faces, Enum.NormalId)
end end
function Format.EnumItem(item: EnumItem): string function Format.EnumItem(item: EnumItem): string
@ -179,7 +157,7 @@ function Format.UDim2(udim2: UDim2): string
end end
function Format.Vector2(v2: Vector2): string function Format.Vector2(v2: Vector2): string
if v2.Magnitude < 0.001 then if v2 == Vector2.zero then
return "new Vector2()" return "new Vector2()"
end end
@ -191,7 +169,7 @@ function Format.Vector2(v2: Vector2): string
end end
function Format.Vector3(v3: Vector3): string function Format.Vector3(v3: Vector3): string
if v3.Magnitude < 0.001 then if v3 == Vector3.zero then
return "new Vector3()" return "new Vector3()"
end end
@ -228,22 +206,24 @@ function Format.CFrame(cf: CFrame): string
end end
function Format.NumberRange(nr: NumberRange): string function Format.NumberRange(nr: NumberRange): string
local min = nr.Min local min = Format.Float(nr.Min)
local max = nr.Max local max = Format.Float(nr.Max)
local fmt = "new NumberRange(%s)" local fmt = "new NumberRange(%s)"
local value = Format.Float(min) local value = min
if min ~= max then if min ~= max then
value = value .. ", " .. Format.Float(max) value ..= ", " .. max
end end
return fmt:format(value) return fmt:format(value)
end end
function Format.Ray(ray: Ray): string function Format.Ray(ray: Ray): string
if ray == Ray.new() then if ray.Origin == Vector3.zero then
return "new Ray()" if ray.Direction == Vector3.zero then
return "new Ray()"
end
end end
local origin = Format.Vector3(ray.Origin) local origin = Format.Vector3(ray.Origin)
@ -303,32 +283,24 @@ function Format.SharedString(str: string): string
end end
function Format.FontFace(font: Font): string function Format.FontFace(font: Font): string
local success, result = pcall(function () local family = string.format("%q", font.Family)
local family = string.format("%q", font.Family) local args = { family }
local args = { family }
local style = font.Style local style = font.Style
local weight = font.Weight local weight = font.Weight
if style ~= Enum.FontStyle.Normal then if style ~= Enum.FontStyle.Normal then
table.insert(args, "FontStyle." .. style.Name) table.insert(args, "FontStyle." .. style.Name)
end
if #args > 1 or weight ~= Enum.FontWeight.Regular then
table.insert(args, "FontWeight." .. weight.Name)
end
local fmt = "new FontFace(%s)"
local argStr = table.concat(args, ", ")
return fmt:format(argStr)
end)
if success then
return result
end end
return nil if #args > 1 or weight ~= Enum.FontWeight.Regular then
table.insert(args, "FontWeight." .. weight.Name)
end
local fmt = "new FontFace(%s)"
local argStr = table.concat(args, ", ")
return fmt:format(argStr)
end end
return Format return Format

View File

@ -1,7 +1,29 @@
--!strict --!strict
local HttpService = game:GetService("HttpService") local HttpService = game:GetService("HttpService")
local function UseColor3(propName: string) export type GetSet = string |
{
Get: string;
Set: string;
Flags: string?;
}
export type Patch =
{
Add: { [string]: string }?;
Redirect: { [string]: GetSet }?;
Defaults: { [string]: any }?;
Remove: {string}?;
}
-- strict type reaffirmation?
-- this is some bug with Luau.
local function GetSet(getSet: GetSet): GetSet
return getSet
end
local function UseColor3(propName: string): GetSet
return return
{ {
Get = string.format("BrickColor.FromColor3(%s)", propName); Get = string.format("BrickColor.FromColor3(%s)", propName);
@ -39,22 +61,22 @@ local function TryGetEnumItem(enumName, itemName): EnumItem?
return nil return nil
end end
local GuiTextMixIn = local GuiTextMixIn: Patch =
{ {
Add = { Transparency = "float" }; Add = { Transparency = "float" };
Redirect = Redirect =
{ {
FontSize = FontSize = GetSet
{ {
Get = "FontUtility.GetFontSize(TextSize)"; Get = "FontUtility.GetFontSize(TextSize)";
Set = "TextSize = FontUtility.GetFontSize(value)"; Set = "TextSize = FontUtility.GetFontSize(value)";
}; };
TextColor = UseColor3("TextColor3"); TextColor = UseColor3 "TextColor3";
TextWrap = "TextWrapped"; TextWrap = GetSet "TextWrapped";
Transparency = Transparency = GetSet
{ {
Get = "base.Transparency"; Get = "base.Transparency";
@ -68,7 +90,7 @@ local GuiTextMixIn =
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local PropertyPatches = local PropertyPatches: { [string]: Patch } =
{ {
AnimationRigData = AnimationRigData =
{ {
@ -111,16 +133,16 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Position = Position = GetSet
{ {
Get = "CFrame.Position"; Get = "CFrame.Position";
Set = "CFrame = new CFrame(value) * CFrame.Rotation"; Set = "CFrame = new CFrame(value) * CFrame.Rotation";
}; };
MaterialVariant = "MaterialVariantSerialized"; MaterialVariant = GetSet "MaterialVariantSerialized";
BrickColor = UseColor3("Color"); BrickColor = UseColor3 "Color";
Color = "Color3uint8"; Color = GetSet "Color3uint8";
Size = "size"; Size = GetSet "size";
}; };
Defaults = Defaults =
@ -155,28 +177,28 @@ local PropertyPatches =
{ {
Redirect = Redirect =
{ {
HeadColor = UseColor3("HeadColor3"); HeadColor = UseColor3 "HeadColor3";
LeftArmColor = UseColor3("LeftArmColor3"); LeftArmColor = UseColor3 "LeftArmColor3";
RightArmColor = UseColor3("RightArmColor3"); RightArmColor = UseColor3 "RightArmColor3";
LeftLegColor = UseColor3("LeftLegColor3"); LeftLegColor = UseColor3 "LeftLegColor3";
RightLegColor = UseColor3("RightLegColor3"); RightLegColor = UseColor3 "RightLegColor3";
TorsoColor = UseColor3("TorsoColor3"); TorsoColor = UseColor3 "TorsoColor3";
} }
}; };
BodyAngularVelocity = BodyAngularVelocity =
{ {
Redirect = { angularvelocity = "AngularVelocity" }; Redirect = { angularvelocity = GetSet "AngularVelocity" };
}; };
BodyGyro = BodyGyro =
{ {
Redirect = { cframe = "CFrame" }; Redirect = { cframe = GetSet "CFrame" };
}; };
Camera = Camera =
{ {
Redirect = { CoordinateFrame = "CFrame" } Redirect = { CoordinateFrame = GetSet "CFrame" }
}; };
CustomEvent = CustomEvent =
@ -214,8 +236,8 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Value = "value"; Value = GetSet "value";
ConstrainedValue = "value"; ConstrainedValue = GetSet "value";
} }
}; };
@ -235,8 +257,8 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Heat = "heat_xml"; Heat = GetSet "heat_xml";
Size = "size_xml"; Size = GetSet "size_xml";
}; };
}; };
@ -260,7 +282,7 @@ local PropertyPatches =
Redirect = Redirect =
{ {
FormFactor = "formFactorRaw"; FormFactor = GetSet "formFactorRaw";
}; };
}; };
@ -272,21 +294,21 @@ local PropertyPatches =
GuiBase2d = GuiBase2d =
{ {
Redirect = { Localize = "AutoLocalize" } Redirect = { Localize = GetSet "AutoLocalize" }
}; };
GuiBase3d = GuiBase3d =
{ {
Redirect = { Color = UseColor3("Color3") } Redirect = { Color = UseColor3 "Color3" }
}; };
GuiObject = GuiObject =
{ {
Redirect = Redirect =
{ {
BackgroundColor = UseColor3("BackgroundColor3"); Transparency = GetSet "BackgroundTransparency";
BorderColor = UseColor3("BorderColor3"); BackgroundColor = UseColor3 "BackgroundColor3";
Transparency = "BackgroundTransparency"; BorderColor = UseColor3 "BorderColor3";
} }
}; };
@ -322,7 +344,7 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Health = "Health_XML"; Health = GetSet "Health_XML";
}; };
Remove = Remove =
@ -358,12 +380,12 @@ local PropertyPatches =
IntConstrainedValue = IntConstrainedValue =
{ {
Add = { value = "int64" }; Add = { value = "int64" };
Redirect = Redirect =
{ {
Value = "value"; Value = GetSet "value";
ConstrainedValue = "value"; ConstrainedValue = GetSet "value";
} }
}; };
@ -387,7 +409,7 @@ local PropertyPatches =
Redirect = Redirect =
{ {
DevelopmentLanguage = "SourceLocaleId"; DevelopmentLanguage = GetSet "SourceLocaleId";
} }
}; };
@ -424,7 +446,7 @@ local PropertyPatches =
Use2022MaterialsXml = "bool" Use2022MaterialsXml = "bool"
}; };
Redirect = { Use2022Materials = "Use2022MaterialsXml" }; Redirect = { Use2022Materials = GetSet "Use2022MaterialsXml" };
Defaults = Defaults =
{ {
@ -474,7 +496,9 @@ local PropertyPatches =
MeshPart = MeshPart =
{ {
Redirect = { MeshID = "MeshId" } Add = { VertexCount = "int" };
Defaults = { VertexCount = 0 };
Redirect = { MeshID = GetSet "MeshId" }
}; };
Model = Model =
@ -512,14 +536,14 @@ local PropertyPatches =
Part = Part =
{ {
Add = { shape = TryDefineEnum("PartType") }; Add = { shape = TryDefineEnum("PartType") };
Redirect = { Shape = "shape" }; Redirect = { Shape = GetSet "shape" };
}; };
ParticleEmitter = ParticleEmitter =
{ {
Redirect = Redirect =
{ {
VelocitySpread = VelocitySpread = GetSet
{ {
Get = "SpreadAngle.X"; Get = "SpreadAngle.X";
Set = "SpreadAngle = new Vector2(value, value)"; Set = "SpreadAngle = new Vector2(value, value)";
@ -582,12 +606,12 @@ local PropertyPatches =
SelectionBox = SelectionBox =
{ {
Redirect = { SurfaceColor = UseColor3("SurfaceColor3") } Redirect = { SurfaceColor = UseColor3 "SurfaceColor3" }
}; };
SelectionSphere = SelectionSphere =
{ {
Redirect = { SurfaceColor = UseColor3("SurfaceColor3") } Redirect = { SurfaceColor = UseColor3 "SurfaceColor3" }
}; };
ServerScriptService = ServerScriptService =
@ -631,9 +655,9 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Size = "size_xml"; Size = GetSet "size_xml";
Opacity = "opacity_xml"; Opacity = GetSet "opacity_xml";
RiseVelocity = "riseVelocity_xml"; RiseVelocity = GetSet "riseVelocity_xml";
}; };
}; };
@ -654,17 +678,17 @@ local PropertyPatches =
Redirect = Redirect =
{ {
MaxDistance = "xmlRead_MaxDistance_3"; MaxDistance = GetSet "xmlRead_MaxDistance_3";
xmlRead_MinDistance_3 = "EmitterSize"; xmlRead_MinDistance_3 = GetSet "EmitterSize";
RollOffMinDistance = "EmitterSize"; RollOffMinDistance = GetSet "EmitterSize";
MinDistance = "EmitterSize"; MinDistance = GetSet "EmitterSize";
Pitch = "PlaybackSpeed"; Pitch = GetSet "PlaybackSpeed";
}; };
}; };
Sparkles = Sparkles =
{ {
Redirect = { Color = "SparkleColor" }; Redirect = { Color = GetSet "SparkleColor" };
}; };
StarterPlayer = StarterPlayer =
@ -782,7 +806,7 @@ local PropertyPatches =
TrussPart = TrussPart =
{ {
Add = { style = TryDefineEnum("Style") }; Add = { style = TryDefineEnum("Style") };
Redirect = { Style = "style" }; Redirect = { Style = GetSet "style" };
}; };
UnvalidatedAssetService = UnvalidatedAssetService =
@ -849,9 +873,9 @@ local PropertyPatches =
Redirect = Redirect =
{ {
Part0 = "Part0Internal"; Part0 = GetSet "Part0Internal";
Part1 = "Part1Internal"; Part1 = GetSet "Part1Internal";
Enabled = "EnabledInternal"; Enabled = GetSet "EnabledInternal";
}; };
}; };
@ -896,26 +920,6 @@ local PropertyPatches =
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
export type GetSetProp = return PropertyPatches
{
Get: string;
Set: string;
Flags: string?;
}
export type Redirect =
GetSetProp |
string;
export type ClassPatch =
{
Add: { [string]: string }?;
Redirect: { [string]: Redirect }?;
Defaults: { [string]: any }?;
Remove: {string}?;
}
export type PropertyPatches = { [string]: ClassPatch }
return (PropertyPatches :: any) :: PropertyPatches
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

View File

@ -210,15 +210,13 @@ end
-- Formatting -- Formatting
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type FormatFunc = (any) -> string;
type Format = { [string]: FormatFunc }
local formatting: Format = require(script.Formatting) local formatting: Format = require(script.Formatting)
type FormatFunc = formatting.FormatFunc
type Format = formatting.Format
local formatLinks = local formatLinks =
{ {
["int"] = "Int"; ["int"] = "Int";
["nil"] = "Null";
["long"] = "Int"; ["long"] = "Int";
["float"] = "Float"; ["float"] = "Float";
@ -228,19 +226,17 @@ local formatLinks =
["string"] = "String"; ["string"] = "String";
["Content"] = "String"; ["Content"] = "String";
["Instance"] = "Null";
["Color3uint8"] = "Color3"; ["Color3uint8"] = "Color3";
["OptionalCFrame"] = "Null";
["ProtectedString"] = "String"; ["ProtectedString"] = "String";
} }
local function getFormatFunction(valueType: string): FormatFunc? local function getFormatFunction(valueType: string): FormatFunc
if not formatting[valueType] then if not formatting[valueType] then
valueType = formatLinks[valueType] valueType = formatLinks[valueType]
end end
return formatting[valueType] return formatting[valueType] or formatting.Null
end end
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@ -269,7 +265,7 @@ setmetatable(patches, patchIndex)
-- Main -- Main
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local baseUrl = "https://raw.githubusercontent.com/CloneTrooper1019/Roblox-Client-Tracker/roblox/" local baseUrl = "https://raw.githubusercontent.com/MaximumADHD/Roblox-Client-Tracker/roblox/"
local toolbar, button local toolbar, button
if plugin then if plugin then
@ -635,15 +631,11 @@ local function generateClasses()
local formatKey = if category == "Enum" then "Enum" else valueType local formatKey = if category == "Enum" then "Enum" else valueType
local formatFunc = getFormatFunction(formatKey) local formatFunc = getFormatFunction(formatKey)
if not formatFunc then if formatFunc == formatting.Null then
local literal = typeof(value) local literal = typeof(value)
formatFunc = getFormatFunction(literal) formatFunc = getFormatFunction(literal)
end end
if not formatFunc then
formatFunc = tostring
end
local result local result
if formatFunc then if formatFunc then
@ -654,6 +646,10 @@ local function generateClasses()
end end
end end
if result == "" then
result = nil
end
if result ~= nil then if result ~= nil then
default = " = " .. result default = " = " .. result
end end

Binary file not shown.