Initial commit, reusable code for my nvgt based games.
This commit is contained in:
14
text_reader_compat.nvgt
Normal file
14
text_reader_compat.nvgt
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "file_viewer.nvgt"
|
||||
|
||||
// Optional compatibility aliases for projects that still call text_reader*.
|
||||
string text_reader(string content, string title = "Text Reader", bool readOnly = true) {
|
||||
return file_viewer(content, title, readOnly);
|
||||
}
|
||||
|
||||
string text_reader_lines(string[] lines, string title = "Text Reader", bool readOnly = true) {
|
||||
return file_viewer_lines(lines, title, readOnly);
|
||||
}
|
||||
|
||||
string text_reader_file(string filePath, string title = "", bool readOnly = true) {
|
||||
return file_viewer_file(filePath, title, readOnly);
|
||||
}
|
||||
Reference in New Issue
Block a user