From 7c1982ed7646fff3c8af121cba8a93723d0f82b1 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Sun, 3 Sep 2023 22:15:19 -0500 Subject: [PATCH] Fix plugin:OpenScript type --- scripts/dumpRobloxTypes.py | 4 ++++ scripts/globalTypes.d.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/dumpRobloxTypes.py b/scripts/dumpRobloxTypes.py index 379aea8c..b2ac936f 100644 --- a/scripts/dumpRobloxTypes.py +++ b/scripts/dumpRobloxTypes.py @@ -104,6 +104,7 @@ "GetPlayerFromCharacter", ], "ContextActionService": ["BindAction", "BindActionAtPriority"], + "Plugin": ["OpenScript"], "PluginToolbar": [ "CreateButton", ], @@ -335,6 +336,9 @@ "function BindAction(self, actionName: string, functionToBind: (actionName: string, inputState: EnumUserInputState, inputObject: InputObject) -> EnumContextActionResult?, createTouchButton: boolean, ...: EnumUserInputType | EnumKeyCode): ()", "function BindActionAtPriority(self, actionName: string, functionToBind: (actionName: string, inputState: EnumUserInputState, inputObject: InputObject) -> EnumContextActionResult?, createTouchButton: boolean, priorityLevel: number, ...: EnumUserInputType | EnumKeyCode): ()", ], + "Plugin": [ + "function OpenScript(self, script: LuaSourceContainer, lineNumber: number?): nil" + ], "PluginToolbar": [ "function CreateButton(self, id: string, toolTip: string, iconAsset: string, text: string?): PluginToolbarButton", ], diff --git a/scripts/globalTypes.d.lua b/scripts/globalTypes.d.lua index 74776e3a..78ed9272 100644 --- a/scripts/globalTypes.d.lua +++ b/scripts/globalTypes.d.lua @@ -8388,7 +8388,7 @@ declare class Plugin extends Instance function Negate(self, objects: { Instance }): { NegateOperation } function OnInvoke(self, key: string, callback: ((...any) -> ...any)): Instance function OnSetItem(self, key: string, callback: ((...any) -> ...any)): Instance - function OpenScript(self, script: BaseScript, lineNumber: number?): nil + function OpenScript(self, script: LuaSourceContainer, lineNumber: number?): nil function OpenWikiPage(self, url: string): nil function PauseSound(self, sound: Instance): nil function PlaySound(self, sound: Instance, normalizedTimePosition: number?): nil