Mount safechat menu to the correct parent object.
This commit is contained in:
parent
498eb67312
commit
96905234b4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue