Mount safechat menu to the correct parent object.

This commit is contained in:
Max G 2019-11-11 18:12:06 -06:00 committed by GitHub
parent 498eb67312
commit 96905234b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -63,8 +63,8 @@ local function activateRootTree()
chatButton.Image = IMG_CHAT_DN
if UserInputService:GetLastInputType() == Enum.UserInputType.Gamepad1 then
GuiService:AddSelectionParent("SafeChatNav", safeChat)
GuiService.SelectedObject = safeChat
GuiService:AddSelectionParent("SafeChatNav", chatButton)
GuiService.SelectedObject = chatButton
end
end
@ -124,7 +124,7 @@ local function assembleTree(tree)
end
rootTree = assembleTree(safeChatTree)
rootTree.Parent = safeChat
rootTree.Parent = chatButton
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Button State
@ -195,4 +195,4 @@ local function onInputBegan(input)
end
end
UserInputService.InputBegan:Connect(onInputBegan)
UserInputService.InputBegan:Connect(onInputBegan)