diff options
Diffstat (limited to 'mbbsd/angel.c')
-rw-r--r-- | mbbsd/angel.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mbbsd/angel.c b/mbbsd/angel.c index 11fe97eb..360c85d0 100644 --- a/mbbsd/angel.c +++ b/mbbsd/angel.c @@ -470,4 +470,33 @@ CallAngel(){ entered = 0; } +void +pressanykey_or_callangel(){ + int ch; + + if (!HasUserPerm(PERM_LOGINOK)) + { + pressanykey(); + return; + } + + // TODO use visio API instead. + outmsg( + VCLR_PAUSE_PAD " ▄▄▄▄ " + ANSI_COLOR(32) "H " ANSI_COLOR(36) "呼叫小天使" ANSI_COLOR(34) + " ▄▄▄▄" ANSI_COLOR(37;44) " 請按 " ANSI_COLOR(36) "空白鍵 " + ANSI_COLOR(37) "繼續 " ANSI_COLOR(1;34) + "▄▄▄▄▄▄▄▄▄▄▄▄▄▄ " ANSI_RESET); + do { + ch = igetch(); + if (ch == 'h' || ch == 'H'){ + CallAngel(); + break; + } + } while ((ch != ' ') && (ch != KEY_LEFT) && (ch != '\r') && (ch != '\n')); + move(b_lines, 0); + clrtoeol(); + refresh(); +} + #endif // PLAY_ANGEL |