ExInputs
Egbert Scherman edited this page Feb 10, 2023
·
6 revisions
- All Kinds Of Extra Ways To Get Inputs From The User Using Popup Prompts.
- No Need To Dedicate A Small Part Of Your GUI For One Time Inputs.
- Now Including Custom Buttons!
- Bonus : Even More Customizable!
Its Basically A Button, With Basic Customizations
Used In This Popup Prompts.
Now Supporting Custom Click Events.
// Create A New Instance
var customButton = new BasicButton(buttonText, theFunOfTheButtnon);
// Create Via A Preset
var customButton = new BasicButton(theFunOfTheButtnon);
A Simple Popup Prompt That Asks For A Text Input.
Standard Text Input Prompt.
IExInput Input = new TextPrompt(title, promptMessage, defaultValue, basicButtonArray);
// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();
// Value That The User Typed In Or Your Default Value
var value = Input.Value;
A Text Input Prompt, But With Choices.
IExInput Input = new ComboPrompt(title, promptMessage, displayValues, defaultIndex, editable, basicButtonArray);
// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();
// Value That The User Typed In Or Your Default Value
var value = Input.Value;
A Popup Prompt That Asks For A Numeric Input.
This Uses A Very Smart NumericUpDown Component.
IExInput Input = new NumberPrompt(title, promptMessage, defaultValue, minValu, MaxValue, basicButtonArray);
// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();
// Value That The User Typed In Or Your Default Value
var value = Input.Value;
A Popup Prompt That Asks For A Date.
Does Not Support Time Input.
IExInput Input = new DateTimePrompt(title, promptMessage, defaultValue, basicButtonArray);
// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();
// Value That The User Typed In Or Your Default Value
var value = Input.Value;
A Message Box.
Not Much Different Than MessagBox.Show() Other Than The Custom Buttons And Icons.
IExInput Input = new MessagePrompt(title, promptMessage, icon, basicButtonArray);
// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();