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:
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user