1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 16:37:40 +00:00

more intuitive file dialogs; texture config saving

This commit is contained in:
Zeno Rogue
2017-12-14 12:10:40 +01:00
parent ebd159825c
commit e2080cd91e
5 changed files with 293 additions and 129 deletions

View File

@@ -569,6 +569,7 @@ extern bool mousepressed, anyshiftclick;
extern string help;
typedef function<void()> reaction_t;
typedef function<bool()> bool_reaction_t;
extern reaction_t help_delegate;
@@ -1173,7 +1174,7 @@ namespace dialog {
extern int dialogflags;
extern int dcenter;
void openFileDialog(string& filename, string fcap, string ext);
void openFileDialog(string& filename, string fcap, string ext, bool_reaction_t action);
extern string infix;
bool hasInfix(const string &s);