From 442d2d75d71bbc057e667edc301a79fa1cc813be Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 27 Mar 2021 23:01:07 -0700 Subject: Initial setup --- core/src/Utils/Dialog/Dialog.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/src/Utils/Dialog/Dialog.cpp (limited to 'core/src/Utils/Dialog/Dialog.cpp') diff --git a/core/src/Utils/Dialog/Dialog.cpp b/core/src/Utils/Dialog/Dialog.cpp new file mode 100644 index 0000000..c4459c0 --- /dev/null +++ b/core/src/Utils/Dialog/Dialog.cpp @@ -0,0 +1,18 @@ +// Adapted from https://github.com/aaronmjacobs/Boxer/blob/master/include/boxer/boxer.h +#include "Dialog.hpp" + +namespace Dialog { + +Selection Show(const char* message, const char* title, Style style) { + return Show(message, title, style, kDefaultButtons); +} + +Selection Show(const char* message, const char* title, Buttons buttons) { + return Show(message, title, kDefaultStyle, buttons); +} + +Selection Show(const char* message, const char* title) { + return Show(message, title, kDefaultStyle, kDefaultButtons); +} + +} // namespace Dialog -- cgit v1.2.3-70-g09d2