This commit is contained in:
Leshyi committed 2026-11-29 18:37:26 +05:00
1 parent 2969bae43e
commit 6c4e5cf095
3 files changed
+28

No files matched your search

+20
View File
@@ -15,6 +15,7 @@ local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local state = ReplicatedStorage:WaitForChild("ArenaRound")
local results = state:WaitForChild("RoundResults") :: RemoteEvent
local leaveArena = state:WaitForChild("LeaveArena") :: RemoteEvent
local limit = state:GetAttribute("TeamLimit") :: number
local modeIds = {Modes.Procedural}
local function currentMode(): string
@@ -483,6 +484,23 @@ resultWinner.TextXAlignment = Enum.TextXAlignment.Left
local resultMode = UI.label(resultsPanel, "Mode", "", UDim2.fromOffset(566, 30), UDim2.fromOffset(368, 31), 15, muted)
resultMode.TextXAlignment = Enum.TextXAlignment.Right
local lobbyButton = Instance.new("TextButton")
lobbyButton.Name = "LeaveArena"
lobbyButton.Position = UDim2.fromOffset(752, 63)
lobbyButton.Size = UDim2.fromOffset(182, 28)
lobbyButton.BackgroundColor3 = blueDark
lobbyButton.BorderSizePixel = 0
lobbyButton.FontFace = UI.Display
lobbyButton.TextSize = 14
lobbyButton.TextColor3 = ink
lobbyButton.Text = "ВЫЙТИ В ЛОББИ"
lobbyButton.Visible = false
corners(lobbyButton, 5)
lobbyButton.Parent = resultsPanel
lobbyButton.Activated:Connect(function()
if lobbyButton.Visible then leaveArena:FireServer() end
end)
local outcomeShade = frame("CitadelOutcome", resultsShade, UDim2.fromScale(0, 0), UDim2.fromScale(1, 1), Color3.fromRGB(5, 9, 18))
outcomeShade.ZIndex = 20
outcomeShade.Visible = false
@@ -618,6 +636,7 @@ end
local function startSummary(view: SummaryView, ruleId: unknown)
summaryView = view
lobbyButton.Visible = view == "Live" and player:GetAttribute("InArena") == true
resultsGui:SetAttribute("LiveScoreboardOpen", view == "Live")
resultTitle.Text = if view == "Live" then "СТАТИСТИКА МАТЧА" else "ИТОГИ РАУНДА"
local rule = Rules.get(ruleId)
@@ -639,6 +658,7 @@ end
local function hideResults()
clearOutcome()
summaryView = nil
lobbyButton.Visible = false
resultsGui:SetAttribute("LiveScoreboardOpen", false)
resultsShade.Visible = false
if resultSlide then resultSlide:Cancel() end