enisn Posted December 26, 2020 Share Posted December 26, 2020 Summary: This script helps to get input easily in Client-Side with C#. Download: BasicInput.cs (github.com) Usage: // Just get input. BasicInput.GetInput((input) => { Chat.Output("Your message is: " + input); }); //------------- // Get input with Title & Maxlength BasicInput.GetInput((input) => { Chat.Output("Your message is: " + input); }, "Type your message:", 32); //------------- // Get input with existing text: BasicInput.GetInput((input) => { Chat.Output("Your message is: " + input); }, "Type your message:", 32, "Old Message"); // -------------- // Also can get 2 parameters to get state of input. BasicInput.GetInput((input, state) => { if (state == BasicInput.InputResultState.Canceled) { Chat.Output("Input Canceled!"); } if (state == BasicInput.InputResultState.Completed) { Chat.Output("Input completed successfully and mesasge is " + input); } }); 2 Link to comment Share on other sites More sharing options...
Coveragt Posted December 9, 2022 Share Posted December 9, 2022 Idk, noone said thanks. So I will, thanks man. It helped a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now