Skip to content

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!

Basic Buttons

Its Basically A Button, With Basic Customizations
Used In This Popup Prompts.
Now Supporting Custom Click Events.

Initialize

// Create A New Instance
var customButton = new BasicButton(buttonText, theFunOfTheButtnon);
// Create Via A Preset
var customButton = new BasicButton(theFunOfTheButtnon);

Text Input Prompt

A Simple Popup Prompt That Asks For A Text Input.
Standard Text Input Prompt.

Initialize

IExInput Input = new TextPrompt(title, promptMessage, defaultValue, basicButtonArray);

Usage

// 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;

Combo Input Prompt

A Text Input Prompt, But With Choices.

Initialize

IExInput Input = new ComboPrompt(title, promptMessage, displayValues, defaultIndex, editable, basicButtonArray);

Usage

// 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;

Number Input Prompt

A Popup Prompt That Asks For A Numeric Input.
This Uses A Very Smart NumericUpDown Component.

Initialize

IExInput Input = new NumberPrompt(title, promptMessage, defaultValue, minValu, MaxValue, basicButtonArray);

Usage

// 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;

DateTime Input Prompt

A Popup Prompt That Asks For A Date.
Does Not Support Time Input.

Initialize

IExInput Input = new DateTimePrompt(title, promptMessage, defaultValue, basicButtonArray);

Usage

// 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;

Message Input Prompt

A Message Box.
Not Much Different Than MessagBox.Show() Other Than The Custom Buttons And Icons.

Initialize

IExInput Input = new MessagePrompt(title, promptMessage, icon, basicButtonArray);

Usage

// Shows The Prompt And Returns Whether The User Accepted The Prompt Or Canceled
var userRes = Input.Show();