diff --git a/STRINGS.CHANGES b/STRINGS.CHANGES index 8440409..5a9b096 100644 --- a/STRINGS.CHANGES +++ b/STRINGS.CHANGES @@ -41,4 +41,8 @@ NEWSTRING: "\r\n\r\n\e[1;37mReset pointers to All (\e[1;33mR\e[1;37m)ead, All (\ LINE 231 MODIFIED OLDSTRING: "\r\n\e[1;37mAre you sure you want to reset \e[1;31mall messages \e[1;37min all bases to unread? \e[0m" -NEWSTRING: "\r\n\r\n\e[1;37mReset \e[1;31mALL\e[1;37m pointers in \e[1;31mALL \e[1;37mareas to (\e[1;33mR\e[1;37m)ead, (\e[1;33mU\e[1;37m)nread? \e[0m" \ No newline at end of file +NEWSTRING: "\r\n\r\n\e[1;37mReset \e[1;31mALL\e[1;37m pointers in \e[1;31mALL \e[1;37mareas to (\e[1;33mR\e[1;37m)ead, (\e[1;33mU\e[1;37m)nread? \e[0m" + +LINE 167 MODIFIED +OLDSTRING: "\r\nWhat is your login name: " +NEWSTRING: "\r\n\e[0mWhat is your login name: " diff --git a/dist/ansis/doors.ans b/dist/ansis/doors.ans index 5ca0fc7..c873e23 100644 Binary files a/dist/ansis/doors.ans and b/dist/ansis/doors.ans differ diff --git a/dist/ansis/filemenu.ans b/dist/ansis/filemenu.ans index e5d3ea0..ef369a3 100644 Binary files a/dist/ansis/filemenu.ans and b/dist/ansis/filemenu.ans differ diff --git a/dist/ansis/goodbye.ans b/dist/ansis/goodbye.ans index f4b393a..912498b 100644 Binary files a/dist/ansis/goodbye.ans and b/dist/ansis/goodbye.ans differ diff --git a/dist/ansis/issue.ans b/dist/ansis/issue.ans index 2f6524c..d40fd47 100644 Binary files a/dist/ansis/issue.ans and b/dist/ansis/issue.ans differ diff --git a/dist/ansis/logoff.ans b/dist/ansis/logoff.ans index 519ba8a..68bb9bf 100644 Binary files a/dist/ansis/logoff.ans and b/dist/ansis/logoff.ans differ diff --git a/dist/ansis/mailmenu.ans b/dist/ansis/mailmenu.ans index 66e98d5..5318243 100644 Binary files a/dist/ansis/mailmenu.ans and b/dist/ansis/mailmenu.ans differ diff --git a/dist/ansis/mainmenu.ans b/dist/ansis/mainmenu.ans index 53c9e3d..dabf0cf 100644 Binary files a/dist/ansis/mainmenu.ans and b/dist/ansis/mainmenu.ans differ diff --git a/dist/ansis/newuser.ans b/dist/ansis/newuser.ans index cd2800e..1cf28b4 100644 Binary files a/dist/ansis/newuser.ans and b/dist/ansis/newuser.ans differ diff --git a/dist/magicka.strings b/dist/magicka.strings index 06079ee..d58d398 100644 --- a/dist/magicka.strings +++ b/dist/magicka.strings @@ -164,7 +164,7 @@ User Name Location Times On\r\n \e[1;30m-------------------------------------------------------------------------------\e[0m\r\n \e[1;37m%-16s \e[1;36m%-32s \e[1;32m%5d\r\n \e[1;30m-------------------------------------------------------------------------------\e[0m\r\n -\r\nWhat is your login name: +\r\n\e[0mWhat is your login name: Sorry, that name is too short.\r\n Sorry, invalid character, can only use alpha characters.\r\n Sorry, that name is reserved.\r\n diff --git a/dist/menus/logoff.mnu b/dist/menus/logoff.mnu index bf69e0f..920d937 100644 --- a/dist/menus/logoff.mnu +++ b/dist/menus/logoff.mnu @@ -1,5 +1,5 @@ +LUASCRIPT logoff ANSIFILE logoff -CLEARSCREEN HOTKEY Y COMMAND LOGOFF diff --git a/dist/scripts/logoff.lua b/dist/scripts/logoff.lua new file mode 100644 index 0000000..f6ad2d7 --- /dev/null +++ b/dist/scripts/logoff.lua @@ -0,0 +1,19 @@ +function menu() + -- display menu ansi + bbs_write_string("\027[2J"); + bbs_display_ansi("logoff"); + + + -- display prompt + bbs_write_string(string.format("\r\n\027[1;34m [\027[0;36mTime Left\027[1;37m %dm\027[34m]-> \027[0m", bbs_time_left())); + + -- read char entered + cmd = bbs_read_char(); + + -- do stuff if you want + + + -- return the char entered + + return cmd; +end