TrianFiles/moduly

95 lines
3.1 KiB
Plaintext

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MessageBox_upvr = game:GetService("Players").LocalPlayer.PlayerGui.main.MainGuiMain.MessageContainer.MessageBox.MessageBox
MessageBox_upvr.Body.TextTransparency = 1
MessageBox_upvr.Body.TextStrokeTransparency = 1
local module_upvr = {
TweenTime = 0.35;
}
module_upvr.__index = module_upvr
local TweenService_upvr = game:GetService("TweenService")
local TweenInfo_new_result1_upvr = TweenInfo.new(module_upvr.TweenTime, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
function module_upvr.new(arg1, arg2, arg3) -- Line 18
--[[ Upvalues[4]:
[1]: module_upvr (readonly)
[2]: MessageBox_upvr (readonly)
[3]: TweenService_upvr (readonly)
[4]: TweenInfo_new_result1_upvr (readonly)
]]
local setmetatable_result1 = setmetatable({}, module_upvr)
setmetatable_result1.Instance = MessageBox_upvr:Clone()
setmetatable_result1.Instance.LayoutOrder = arg2
setmetatable_result1.Destroying = false
setmetatable_result1.Skip = false
setmetatable_result1.TweenOpen = TweenService_upvr:Create(setmetatable_result1.Instance.Body, TweenInfo_new_result1_upvr, {
TextTransparency = 0;
TextStrokeTransparency = 0.5;
})
setmetatable_result1.TweenClose = TweenService_upvr:Create(setmetatable_result1.Instance.Body, TweenInfo_new_result1_upvr, {
TextTransparency = 1;
TextStrokeTransparency = 1;
})
setmetatable_result1:SetText(arg3)
setmetatable_result1.Instance.Parent = arg1
return setmetatable_result1
end
function module_upvr.SetText(arg1, arg2) -- Line 35
if arg2 then
arg1.Instance.Body.Text = arg2
end
end
local GetPlatform_upvr = require(ReplicatedStorage.ClientModule.GetPlatform)
function module_upvr.Open(arg1) -- Line 41
--[[ Upvalues[2]:
[1]: GetPlatform_upvr (readonly)
[2]: module_upvr (readonly)
]]
if arg1.Instance then
if GetPlatform_upvr() == "Mobile" then
arg1.Instance.Body.Size = UDim2.fromScale(1, 0.75)
else
arg1.Instance.Body.Size = UDim2.fromScale(1, 0.9)
end
arg1.Instance:TweenSize(UDim2.fromScale(1, 1), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, module_upvr.TweenTime)
arg1.TweenOpen:Play()
end
end
function module_upvr.Close(arg1) -- Line 53
--[[ Upvalues[1]:
[1]: module_upvr (readonly)
]]
if arg1.Instance then
arg1.Instance:TweenSize(UDim2.fromScale(0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, module_upvr.TweenTime)
arg1.TweenClose:Play()
end
end
local DebrisHandler_upvr = require(ReplicatedStorage.Service.DebrisHandler)
function module_upvr.Destroy(arg1) -- Line 60
--[[ Upvalues[1]:
[1]: DebrisHandler_upvr (readonly)
]]
if arg1.Destroying ~= false then
else
arg1.Destroying = true
DebrisHandler_upvr.Add(arg1.Instance, 0)
DebrisHandler_upvr.Add(arg1.TweenOpen, 0)
DebrisHandler_upvr.Add(arg1.TweenClose, 0)
table.clear(arg1)
end
end
function module_upvr.SoftDestroy(arg1) -- Line 73
--[[ Upvalues[1]:
[1]: module_upvr (readonly)
]]
if arg1.Destroying ~= false then
else
arg1:Close()
task.delay(module_upvr.TweenTime, function() -- Line 80
--[[ Upvalues[1]:
[1]: arg1 (readonly)
]]
arg1:Destroy()
end)
end
end
return module_upvr