From 3bd0f1e7ff5dbc4177e7f5e3f9e7f380e06c84f5 Mon Sep 17 00:00:00 2001 From: EasternBloxxer Date: Tue, 16 Apr 2024 10:38:33 +0300 Subject: [PATCH] Added placeholder texts for aliases and keybinds (#1467) * Added placeholder texts for aliases and keybinds * Update placeholder texts for aliases and keybinds to use prefix --- MainModule/Client/UI/Default/UserPanel.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/MainModule/Client/UI/Default/UserPanel.lua b/MainModule/Client/UI/Default/UserPanel.lua index 7916979d56..86245a902a 100644 --- a/MainModule/Client/UI/Default/UserPanel.lua +++ b/MainModule/Client/UI/Default/UserPanel.lua @@ -256,7 +256,7 @@ return function(data, env) Remote.Send("SaveTableAdd", tabPath or setting, entryText.Text) table.insert(tab, entryText.Text) end - wait(0.5) + task.wait(0.5) entryBox.Visible = false inputBlock = false showItems() @@ -302,7 +302,7 @@ return function(data, env) Remote.Send("SaveTableRemove", tabPath or setting, selected.Value) table.remove(tab, selected.Index) showItems() - wait(0.5) + task.wait(0.5) inputBlock = false end end @@ -334,7 +334,7 @@ return function(data, env) end end - if window then + if window then local commandPrefix = ":" local playerData, chatMod, settingsData local tabFrame = window:Add("TabFrame", { @@ -535,7 +535,7 @@ return function(data, env) local function updateStatus() dStatus.Text = "Updating..." dStatus.Text = Remote.Get("UpdateDonor", playerData.Donor) - wait(0.5) + task.wait(0.5) dStatus.Text = "Donated" end @@ -1021,6 +1021,7 @@ return function(data, env) Position = UDim2.new(0, 10, 0, 35); Size = UDim2.new(1, -20, 0, 20); ClearTextOnFocus = false; + PlaceholderText = `{commandPrefix}refresh`; TextChanged = function(newText, enter, box) curCommandText = newText end @@ -1283,6 +1284,7 @@ return function(data, env) commandBox = binderBox:Add("TextBox", { Position = UDim2.new(0, 10, 0, 35); + PlaceholderText = `{commandPrefix}fly | {commandPrefix}god `; Size = UDim2.new(1, -20, 0, 20); ClearTextOnFocus = false; TextChanged = function(newText, enter, box) @@ -1292,6 +1294,7 @@ return function(data, env) aliasBox = binderBox:Add("TextBox", { Text = ""; + PlaceholderText = `{commandPrefix}flygod`; ClearTextOnFocus = false; Position = UDim2.new(0, 10, 0, 90); Size = UDim2.new(1, -20, 0, 20); @@ -1485,7 +1488,7 @@ return function(data, env) end end) - repeat wait() until gotKey + repeat task.wait() until gotKey Variables.CustomConsoleKey = gotKey event:Disconnect()