DinoUI
v1.0.4
Dinouiは、.NETコンソールプロジェクトのUIを作成する最も簡単な方法です。
Nugetでプロジェクトにインストールします
テストプログラムで完全な例をご覧ください。
using DinoUI ;
var config = new MainConfig ( )
{
Title = "DinoUI" ,
Buttons = button ,
ForegroundColor = ConsoleColor . White ,
BackgroundColor = ConsoleColor . DarkRed
} ;
//Load Home Screen
HomeScreen . Run ( config ) . Invoke ( ) ;
//Create progress bar
var lscreen = new LoadingScreen ( ) ;
lscreen . SetProgress ( 50 )
//Show an alert screen with an OK button
Popup . Alert ( "The task has completed" ) ;
//A confirmation screen where you can select "OK" or "Cancel"
var r = Popup . Confirm ( "Are you sure you want to see popups?" ) ;
if ( r )
Popup . Alert ( "You said Ok" ) ;
else
Popup . Alert ( "You said Cancel" ) ;
//A prompt box to ask for input
string name = TextInput . Run ( "What is your name?" ) ; 新しい画面をリクエストしたい場合は、タグ「画面アイデア」の問題を作成して、アイデアを提案してください。バグが見つかった場合は、問題を開くか、プルリクエストを行うこともできます。
mit