Improve documentation for corescripts and add filename comments
This commit is contained in:
parent
29f87521ab
commit
215aea24ee
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/PurchasePromptScript
|
||||||
print "[Mercury]: Loaded corescript 107893730"
|
print "[Mercury]: Loaded corescript 107893730"
|
||||||
|
|
||||||
-- this script creates the gui and sends the web requests for in game purchase prompts
|
-- this script creates the gui and sends the web requests for in game purchase prompts
|
||||||
|
|
||||||
local MarketplaceService = game:GetService "MarketplaceService"
|
local MarketplaceService = game:GetService "MarketplaceService"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/ContextActionTouch
|
||||||
|
-- Unused by Mercury
|
||||||
print "[Mercury]: Loaded corescript 152908679"
|
print "[Mercury]: Loaded corescript 152908679"
|
||||||
|
for _ = 1, 4 do
|
||||||
|
warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
end
|
||||||
|
|
||||||
-- ContextActionTouch.lua
|
-- ContextActionTouch.lua
|
||||||
-- this script controls ui and firing of lua functions that are bound in ContextActionService for touch inputs
|
-- this script controls ui and firing of lua functions that are bound in ContextActionService for touch inputs
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/TouchControls
|
||||||
|
-- Unused by Mercury
|
||||||
print "[Mercury]: Loaded corescript 153556783"
|
print "[Mercury]: Loaded corescript 153556783"
|
||||||
|
for _ = 1, 4 do
|
||||||
|
warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
end
|
||||||
|
|
||||||
-- This is responsible for all touch controls we show (as of this writing, only on iOS)
|
-- This is responsible for all touch controls we show (as of this writing, only on iOS)
|
||||||
-- this includes character move thumbsticks, and buttons for jump, use of items, camera, etc.
|
-- this includes character move thumbsticks, and buttons for jump, use of items, camera, etc.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
|
-- Unused by Mercury
|
||||||
print "[Mercury]: Loaded corescript 157877000"
|
print "[Mercury]: Loaded corescript 157877000"
|
||||||
|
for _ = 1, 4 do
|
||||||
|
warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
end
|
||||||
|
|
||||||
--Include
|
--Include
|
||||||
local Create: (instance: string) -> ({ [string]: any }) -> Instance =
|
local Create: (instance: string) -> ({ [string]: any }) -> Instance =
|
||||||
assert(LoadLibrary "RbxUtility").Create
|
assert(LoadLibrary "RbxUtility").Create
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/ToolTip
|
||||||
print "[Mercury]: Loaded corescript 36868950"
|
print "[Mercury]: Loaded corescript 36868950"
|
||||||
|
|
||||||
local controlFrame = script.Parent:FindFirstChild "ControlFrame"
|
local controlFrame = script.Parent:FindFirstChild "ControlFrame"
|
||||||
|
|
||||||
if not controlFrame then
|
if not controlFrame then
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- Script Context.StarterScript
|
||||||
print "[Mercury]: Loaded corescript 37801172"
|
print "[Mercury]: Loaded corescript 37801172"
|
||||||
|
|
||||||
local scriptContext = game:GetService "ScriptContext"
|
local scriptContext = game:GetService "ScriptContext"
|
||||||
|
|
||||||
-- Creates all neccessary scripts for the gui on initial load, everything except build tools
|
-- Creates all neccessary scripts for the gui on initial load, everything except build tools
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
|
-- Unused by Mercury
|
||||||
print "[Mercury]: Loaded corescript 38037565"
|
print "[Mercury]: Loaded corescript 38037565"
|
||||||
|
for _ = 1, 4 do
|
||||||
|
warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS"
|
||||||
|
end
|
||||||
|
|
||||||
local damageGuiWidth = 5.0
|
local damageGuiWidth = 5.0
|
||||||
local damageGuiHeight = 5.0
|
local damageGuiHeight = 5.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/MainBotChatScript
|
||||||
print "[Mercury]: Loaded corescript 39250920"
|
print "[Mercury]: Loaded corescript 39250920"
|
||||||
|
|
||||||
function waitForProperty(instance, name)
|
function waitForProperty(instance, name)
|
||||||
while not instance[name] do
|
while not instance[name] do
|
||||||
instance.Changed:wait()
|
instance.Changed:wait()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- RbxGui
|
||||||
print "[Mercury]: Loaded corescript 45284430"
|
print "[Mercury]: Loaded corescript 45284430"
|
||||||
|
|
||||||
local t = {}
|
local t = {}
|
||||||
|
|
||||||
local function ScopedConnect(
|
local function ScopedConnect(
|
||||||
|
|
@ -4017,7 +4019,11 @@ t.CreateLoadingFrame = function(name, size, position)
|
||||||
cancelButtonClicked:Fire()
|
cancelButtonClicked:Fire()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local updateLoadingGuiPercent = function(percent: number, tweenAction, tweenLength)
|
local updateLoadingGuiPercent = function(
|
||||||
|
percent: number,
|
||||||
|
tweenAction,
|
||||||
|
tweenLength
|
||||||
|
)
|
||||||
if percent and type(percent) ~= "number" then
|
if percent and type(percent) ~= "number" then
|
||||||
error(
|
error(
|
||||||
"updateLoadingGuiPercent expects number as argument, got "
|
"updateLoadingGuiPercent expects number as argument, got "
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- RbxGear (unused)
|
||||||
print "[Mercury]: Loaded corescript 45374389"
|
print "[Mercury]: Loaded corescript 45374389"
|
||||||
|
|
||||||
local t = {}
|
local t = {}
|
||||||
|
|
||||||
t.Foo = function()
|
t.Foo = function()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/Settings
|
||||||
print "[Mercury]: Loaded corescript 46295863"
|
print "[Mercury]: Loaded corescript 46295863"
|
||||||
|
|
||||||
local function waitForChild(instance, name)
|
local function waitForChild(instance, name)
|
||||||
while not instance:FindFirstChild(name) do
|
while not instance:FindFirstChild(name) do
|
||||||
instance.ChildAdded:wait()
|
instance.ChildAdded:wait()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/PlayerListScript
|
||||||
print "[Mercury]: Loaded corescript 48488235"
|
print "[Mercury]: Loaded corescript 48488235"
|
||||||
|
|
||||||
--new playerlist by Zach Lindblad (fusroblox)
|
--new playerlist by Zach Lindblad (fusroblox)
|
||||||
--contact him for any revisions/issues
|
--contact him for any revisions/issues
|
||||||
--------------------
|
--------------------
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/NotificationScript
|
||||||
print "[Mercury]: Loaded corescript 48488398"
|
print "[Mercury]: Loaded corescript 48488398"
|
||||||
|
|
||||||
local TeleportService = TeleportService
|
local TeleportService = TeleportService
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/PopupScript
|
||||||
print "[Mercury]: Loaded corescript 48488451"
|
print "[Mercury]: Loaded corescript 48488451"
|
||||||
|
|
||||||
--build our gui
|
--build our gui
|
||||||
|
|
||||||
local popupFrame = Instance.new "Frame"
|
local popupFrame = Instance.new "Frame"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/BackpackScripts/BackpackBuild
|
||||||
print "[Mercury]: Loaded corescript 53878047"
|
print "[Mercury]: Loaded corescript 53878047"
|
||||||
|
|
||||||
-- This script creates almost all gui elements found in the backpack (warning: there are a lot!)
|
-- This script creates almost all gui elements found in the backpack (warning: there are a lot!)
|
||||||
-- TODO: automate this process
|
-- TODO: automate this process
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript
|
||||||
print "[Mercury]: Loaded corescript 53878057"
|
print "[Mercury]: Loaded corescript 53878057"
|
||||||
|
|
||||||
if game.CoreGui.Version < 3 then
|
if game.CoreGui.Version < 3 then
|
||||||
return
|
return
|
||||||
end -- peace out if we aren't using the right client
|
end -- peace out if we aren't using the right client
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
-- Script Context.CoreScripts/Sections
|
||||||
print "[Mercury]: Loaded corescript 59002209"
|
print "[Mercury]: Loaded corescript 59002209"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- RbxUtility
|
||||||
print "[Mercury]: Loaded corescript 60595411"
|
print "[Mercury]: Loaded corescript 60595411"
|
||||||
|
|
||||||
local t = {}
|
local t = {}
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
@ -1037,6 +1039,26 @@ end
|
||||||
|
|
||||||
-------------------------------------------------Create function End----------------------------------------------------
|
-------------------------------------------------Create function End----------------------------------------------------
|
||||||
|
|
||||||
|
-- Lmao time - Heliodex
|
||||||
|
|
||||||
|
function t.HttpGet(url: string)
|
||||||
|
return game:HttpGet(url)
|
||||||
|
end
|
||||||
|
|
||||||
|
function t.HttpGetAsync(url: string)
|
||||||
|
return game:HttpGetAsync(url)
|
||||||
|
end
|
||||||
|
|
||||||
|
function t.HttpPost(url: string)
|
||||||
|
return game:HttpPost(url)
|
||||||
|
end
|
||||||
|
|
||||||
|
function t.HttpPostAsync(url: string)
|
||||||
|
return game:HttpPostAsync(url)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Lmao time end
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------
|
||||||
------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------
|
||||||
------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
|
-- Script Context./Libraries/LibraryRegistration/LibraryRegist
|
||||||
print "[Mercury]: Loaded corescript 60595695"
|
print "[Mercury]: Loaded corescript 60595695"
|
||||||
|
|
||||||
-- Library Registration Script
|
-- Library Registration Script
|
||||||
-- This script is used to register RbxLua libraries on game servers, so game scripts have
|
-- This script is used to register RbxLua libraries on game servers, so game scripts have
|
||||||
-- access to all of the libraries (otherwise only local scripts do)
|
-- access to all of the libraries (otherwise only local scripts do)
|
||||||
|
|
||||||
local deepakTestingPlace = 3569749
|
-- local deepakTestingPlace = 3569749
|
||||||
local sc = game:GetService "ScriptContext"
|
local sc = game:GetService "ScriptContext"
|
||||||
local tries = 0
|
local tries = 0
|
||||||
|
|
||||||
|
|
@ -16,9 +18,9 @@ end
|
||||||
if sc then
|
if sc then
|
||||||
sc:RegisterLibrary("Libraries/RbxGui", "45284430")
|
sc:RegisterLibrary("Libraries/RbxGui", "45284430")
|
||||||
sc:RegisterLibrary("Libraries/RbxGear", "45374389")
|
sc:RegisterLibrary("Libraries/RbxGear", "45374389")
|
||||||
if game.PlaceId == deepakTestingPlace then
|
-- if game.PlaceId == deepakTestingPlace then
|
||||||
sc:RegisterLibrary("Libraries/RbxStatus", "52177566")
|
-- sc:RegisterLibrary("Libraries/RbxStatus", "52177566")
|
||||||
end
|
-- end
|
||||||
sc:RegisterLibrary("Libraries/RbxUtility", "60595411")
|
sc:RegisterLibrary("Libraries/RbxUtility", "60595411")
|
||||||
sc:RegisterLibrary("Libraries/RbxStamper", "73157242")
|
sc:RegisterLibrary("Libraries/RbxStamper", "73157242")
|
||||||
sc:LibraryRegistrationComplete()
|
sc:LibraryRegistrationComplete()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
-- RbxStamper
|
||||||
print "[Mercury]: Loaded corescript 73157242"
|
print "[Mercury]: Loaded corescript 73157242"
|
||||||
|
|
||||||
local ChangeHistoryService = game:GetService "ChangeHistoryService"
|
local ChangeHistoryService = game:GetService "ChangeHistoryService"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (1?)
|
||||||
print "[Mercury]: Loaded corescript 89449008"
|
print "[Mercury]: Loaded corescript 89449008"
|
||||||
|
|
||||||
-- A couple of necessary functions
|
-- A couple of necessary functions
|
||||||
local function waitForChild(instance, name)
|
local function waitForChild(instance, name)
|
||||||
assert(instance)
|
assert(instance)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (2?)
|
||||||
print "[Mercury]: Loaded corescript 89449093"
|
print "[Mercury]: Loaded corescript 89449093"
|
||||||
|
|
||||||
-- This script manages context switches in the backpack (Gear to Wardrobe, etc.) and player state changes. Also manages global functions across different tabs (currently only search)
|
-- This script manages context switches in the backpack (Gear to Wardrobe, etc.) and player state changes. Also manages global functions across different tabs (currently only search)
|
||||||
if game.CoreGui.Version < 7 then
|
if game.CoreGui.Version < 7 then
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
-- CoreGui.RobloxGui.CoreScripts/ChatScript
|
||||||
print "[Mercury]: Loaded corescript 97188756"
|
print "[Mercury]: Loaded corescript 97188756"
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
//FileName: ChatScript.LUA
|
//FileName: ChatScript.LUA
|
||||||
//Written by: Sorcus
|
//Written by: Sorcus
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,11 @@ globals:
|
||||||
_CHAR_APPEARANCE:
|
_CHAR_APPEARANCE:
|
||||||
args: []
|
args: []
|
||||||
|
|
||||||
|
assert:
|
||||||
|
args:
|
||||||
|
- type: any
|
||||||
|
- required: false
|
||||||
|
type: string
|
||||||
ypcall:
|
ypcall:
|
||||||
args:
|
args:
|
||||||
- type: function
|
- type: function
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue