Code: Select all
struct MessageBoxData
{
MessageBoxType type;
std::string title;
std::string message;
std::vector<std::string> buttons;
int enterButtonIndex;
int escapeButtonIndex;
bool attachToWindow;
};
Code: Select all
struct FileDialogData
{
FileDialogType type;
std::string title;
std::string acceptLabel;
std::string cancelLabel;
std::string defaultName;
std::vector<FileDialogFilter> filters;
bool multiSelect;
bool attachToWindow;
};
Code: Select all
virtual bool showMessageBox(const std::string &title, const std::string &message, MessageBoxType type, bool attachtowindow) = 0;
virtual int showMessageBox(const MessageBoxData &data) = 0;
virtual void showFileDialog(const FileDialogData &data, FileDialogCallback callback, void *context) = 0;
Is there an intent to add a native file dialog? I'm aware of the numerous other options, as well as the issues with getting native dialogs to play nice with the Love file system.
I assume that it would be limited to the Love file system, but I ran across a mention of native file system support (which I can't seem to find) as a method reserved for future use.
Is the showFileDialog a vestige of a failed attempt, or something that might be added?