|
OpenTTD Source 20251116-master-g21329071df
|
GUI functions related to textfiles. More...
#include "misc/alternating_iterator.hpp"#include "fileio_type.h"#include "strings_func.h"#include "textfile_type.h"#include "window_gui.h"Go to the source code of this file.
Data Structures | |
| struct | TextfileWindow |
| Window for displaying a textfile. More... | |
| struct | TextfileWindow::Line |
| struct | TextfileWindow::Hyperlink |
| struct | TextfileWindow::HistoryEntry |
Functions | |
| std::optional< std::string > | GetTextfile (TextfileType type, Subdirectory dir, std::string_view filename) |
| Search a textfile file next to the given content. | |
GUI functions related to textfiles.
Definition in file textfile_gui.h.
| std::optional< std::string > GetTextfile | ( | TextfileType | type, |
| Subdirectory | dir, | ||
| std::string_view | filename | ||
| ) |
Search a textfile file next to the given content.
| type | The type of the textfile to search for. |
| dir | The subdirectory to search in. |
| filename | The filename of the content to look for. |
nullptr otherwise. Definition at line 939 of file textfile_gui.cpp.
References FioCheckFileExists(), GetCurrentLanguageIsoCode(), and lengthof.
Referenced by GameOptionsWindow::OnInvalidateData().