Fixes (from <Someone>)

- visual feedback after a prompt: append an empty line to the message
  window when clear_nhwindow(WIN_MESSAGE) is called. Filter
  out empty lines in the buffer except for the active slot.

- append ellipses to the status line text if the text is truncated

- get rid of message boxes at the end of the game (ignore empty lines in
  raw_print as Yitzhak suggested)
This commit is contained in:
nethack.allison
2002-02-05 19:04:35 +00:00
parent 9d03c83d57
commit 5bd29d05f6
3 changed files with 26 additions and 9 deletions

View File

@@ -734,7 +734,8 @@ void mswin_raw_print(const char *str)
{
TCHAR wbuf[255];
logDebug("mswin_raw_print(%s)\n", str);
MessageBox(GetNHApp()->hMainWnd, NH_A2W(str, wbuf, sizeof(wbuf)), TEXT("NetHack"), MB_OK );
if( str && *str )
MessageBox(GetNHApp()->hMainWnd, NH_A2W(str, wbuf, sizeof(wbuf)), TEXT("NetHack"), MB_OK );
}
/*
@@ -746,7 +747,8 @@ void mswin_raw_print_bold(const char *str)
{
TCHAR wbuf[255];
logDebug("mswin_raw_print_bold(%s)\n", str);
MessageBox(GetNHApp()->hMainWnd, NH_A2W(str, wbuf, sizeof(wbuf)), TEXT("NetHack"), MB_OK );
if( str && *str )
MessageBox(GetNHApp()->hMainWnd, NH_A2W(str, wbuf, sizeof(wbuf)), TEXT("NetHack"), MB_OK );
}
/*