Initial commit, reusable code for my nvgt based games.

This commit is contained in:
Storm Dragon
2026-02-16 19:49:29 -05:00
commit 65370b4679
16 changed files with 1735 additions and 0 deletions

14
text_reader_compat.nvgt Normal file
View 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);
}