Compile-time option to allow some prompts remember the input
Define EDIT_GETLIN to make the tty, X11, and Qt4 windowports to remember the input strings for wishing and annotation.
This commit is contained in:
@@ -83,6 +83,9 @@ bool NetHackQtStringRequestor::Get(char* buffer, int maxchar)
|
||||
resize(fontMetrics().width(prompt.text())*2+50,fontMetrics().height()*4);
|
||||
}
|
||||
|
||||
#ifdef EDIT_GETLIN
|
||||
input.setText(buffer);
|
||||
#endif
|
||||
centerOnMain(this);
|
||||
show();
|
||||
input.setFocus();
|
||||
|
||||
Reference in New Issue
Block a user