|
nsnake
Classic snake game for the terminal
|
Quick-and-dirty functions to show GUI-like dialogs on the screen. More...
Functions | |
| void | show (std::string message, bool pressAnyKey=false) |
| Shows a message on the screen. More... | |
| bool | askBool (std::string question, std::string title="", bool default_value=false) |
| Spawns a Dialog box asking for a yes-or-no #question. More... | |
Quick-and-dirty functions to show GUI-like dialogs on the screen.
| bool Dialog::askBool | ( | std::string | question, |
| std::string | title = "", |
||
| bool | default_value = false |
||
| ) |
Spawns a Dialog box asking for a yes-or-no #question.
Dialog optionally has a #title and a #default_value.
Definition at line 58 of file Dialog.cpp.
| void Dialog::show | ( | std::string | message, |
| bool | pressAnyKey = false |
||
| ) |
Shows a message on the screen.
Spawns a screen-centered dialog that respects multi-line strings, wrapping it's size around them.
\n| message | Which string to show. |
| pressAnyKey | If it should wait for pressing a single key |
Definition at line 12 of file Dialog.cpp.
1.8.14