From d07fa9fb7f5214b75430837a1f53e06f81f86bcc Mon Sep 17 00:00:00 2001 From: Nightcycle <77173389+nightcycle@users.noreply.github.com> Date: Mon, 19 Feb 2024 01:32:16 -0300 Subject: [PATCH] Some progress with auto-complete --- src/Component/Search/Base.luau | 184 ++++++++++++++++++++++++++++----- synthetic.rbxl.lock | 2 +- 2 files changed, 157 insertions(+), 29 deletions(-) diff --git a/src/Component/Search/Base.luau b/src/Component/Search/Base.luau index b2762a79..4a577170 100644 --- a/src/Component/Search/Base.luau +++ b/src/Component/Search/Base.luau @@ -5,13 +5,14 @@ local _Packages = _Package.Parent -- Services local RunService = game:GetService("RunService") local SoundService = game:GetService("SoundService") +local UserInputService = game:GetService("UserInputService") + -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local MaterialIcons = require(_Packages:WaitForChild("MaterialIcons")) -- Modules -local BaseButton = require(_Package:WaitForChild("Component"):WaitForChild("Button"):WaitForChild("Base")) local IconButton = require(_Package:WaitForChild("Component"):WaitForChild("Button"):WaitForChild("IconButton")) local Util = require(_Package:WaitForChild("Util")) @@ -45,15 +46,11 @@ local PADDING_BETWEEN_ELEMENTS_DP = 8 local Icons = MaterialIcons.default.dp_48.scale_1 -- Private Functions -function newLabel( - key: string, - onClick: (key: string) -> () -): GuiObject - return nil :: any -end + function newPanel( - onBack: (content: string) -> (), + onClick: (content: string) -> (), + initialText: string, button: GuiObject, textColorState: State, backgroundColorState: State, @@ -62,6 +59,7 @@ function newPanel( elevationState: State, styleState: State