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);
}
});