Show mouse cursor while scoreboard is open

This commit is contained in:
listik committed 2026-11-29 18:20:13 +05:00
1 parent a85391509d
commit ac3073fb49
3 files changed
+6 -2

No files matched your search

+2
View File
@@ -618,6 +618,7 @@ end
local function startSummary(view: SummaryView, ruleId: unknown)
summaryView = view
resultsGui:SetAttribute("LiveScoreboardOpen", view == "Live")
resultTitle.Text = if view == "Live" then "СТАТИСТИКА МАТЧА" else "ИТОГИ РАУНДА"
local rule = Rules.get(ruleId)
resultMode.Text = rule.title .. " · Динамическая арена"
@@ -638,6 +639,7 @@ end
local function hideResults()
clearOutcome()
summaryView = nil
resultsGui:SetAttribute("LiveScoreboardOpen", false)
resultsShade.Visible = false
if resultSlide then resultSlide:Cancel() end
if resultFade then resultFade:Cancel() end
+4 -2
View File
@@ -109,9 +109,11 @@ RunService:BindToRenderStep(renderName, Enum.RenderPriority.Camera.Value + 2, fu
local menu = playerGui:FindFirstChild("MainMenu") :: ScreenGui?
local tunerShown = tuner ~= nil and tuner.Enabled
local menuShown = menu ~= nil and menu.Enabled
local resultsGui = playerGui:FindFirstChild("ArenaResults")
local scoreboardShown = resultsGui ~= nil and resultsGui:GetAttribute("LiveScoreboardOpen") == true
local inArena = player:GetAttribute("InArena") == true
UserInputService.MouseIconEnabled = not inArena or tunerShown or menuShown
if not inArena and not UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
UserInputService.MouseIconEnabled = not inArena or tunerShown or menuShown or scoreboardShown
if scoreboardShown or (not inArena and not UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2)) then
UserInputService.MouseBehavior = Enum.MouseBehavior.Default
end
local character = player.Character