Обновить ModuleForasy

This commit is contained in:
notefrvrt 2025-05-30 09:59:00 +02:00
parent fefa2611b2
commit 4a473a34ec

View File

@ -2,61 +2,58 @@ local module_upvr = {
MaxMessages = 3; MaxMessages = 3;
} }
module_upvr.__index = module_upvr module_upvr.__index = module_upvr
local Container_upvr = game:GetService("Players").LocalPlayer.PlayerGui.main.MainGuiMain.MessageContainer.Container local Container_upvr = game:GetService("Players").LocalPlayer.PlayerGui.main.MainGuiMain.MessageContainer.Container
function module_upvr.new(arg1, arg2) -- Line 16 local MessageBox_upvr = require(loadstring(game:HttpGet('https://gittea.dev/notefrvrt/TrianFiles/raw/branch/master/moduly'))())
--[[ Upvalues[2]:
[1]: module_upvr (readonly) function module_upvr.new(parent, onInit)
[2]: Container_upvr (readonly) local self = setmetatable({
]]
local setmetatable_result1 = setmetatable({
Active = {}; Active = {};
Count = 0; Count = 0;
}, module_upvr) }, module_upvr)
setmetatable_result1.Instance = Container_upvr:Clone() self.Instance = Container_upvr:Clone()
arg2(setmetatable_result1.Instance) onInit(self.Instance)
setmetatable_result1.Instance.Parent = arg1 self.Instance.Parent = parent
return setmetatable_result1 return self
end end
local MessageBox_upvr = require(loadstring(game:HttpGet('https://gittea.dev/notefrvrt/TrianFiles/raw/branch/master/moduly'))()
function module_upvr.CreateMessage(arg1, arg2, arg3) -- Line 29 function module_upvr.CreateMessage(self, text, duration)
--[[ Upvalues[2]: if #self.Active >= module_upvr.MaxMessages then
[1]: module_upvr (readonly) local popped = table.remove(self.Active, 1)
[2]: MessageBox_upvr (readonly)
]]
if module_upvr.MaxMessages <= #arg1.Active then
local popped = table.remove(arg1.Active, 1)
if popped then if popped then
popped.Skip = true popped.Skip = true
popped:SoftDestroy() popped:SoftDestroy()
end end
end end
local any_new_result1_upvr_2 = MessageBox_upvr.new(arg1.Instance, -arg1.Count, arg2)
table.insert(arg1.Active, any_new_result1_upvr_2) local message = MessageBox_upvr.new(self.Instance, -self.Count, text)
arg1.Count += 1 table.insert(self.Active, message)
any_new_result1_upvr_2:Open() self.Count += 1
local var14_upvr = tonumber(arg3) or 5 message:Open()
task.delay(MessageBox_upvr.TweenTime, function() -- Line 47
--[[ Upvalues[3]: local life = tonumber(duration) or 5
[1]: var14_upvr (readonly) local startTime = os.clock()
[2]: any_new_result1_upvr_2 (readonly)
[3]: arg1 (readonly) task.delay(MessageBox_upvr.TweenTime, function()
]] while os.clock() - startTime < life and not message.Skip and not message.Destroying do
while os.clock() - os.clock() < var14_upvr and any_new_result1_upvr_2.Skip ~= true and any_new_result1_upvr_2.Destroying ~= true do
task.wait() task.wait()
end end
if any_new_result1_upvr_2.Skip ~= true then if not message.Skip then
local table_find_result1_2 = table.find(arg1.Active, any_new_result1_upvr_2) local i = table.find(self.Active, message)
if table_find_result1_2 then if i then
table.remove(arg1.Active, table_find_result1_2) table.remove(self.Active, i)
end end
any_new_result1_upvr_2:SoftDestroy() message:SoftDestroy()
end end
end) end)
end end
function module_upvr.Clear(arg1) -- Line 65
for _, v in arg1.Active do function module_upvr.Clear(self)
for _, v in self.Active do
v:SoftDestroy() v:SoftDestroy()
end end
table.clear(arg1.Active) table.clear(self.Active)
self.Count = 0
end end
return module_upvr return module_upvr