19 std::string_view title,
20 std::string_view message,
24 const std::array<SDL_MessageBoxButtonData, 2>
buttons{{
29 plan.positiveText.c_str()
37 plan.negativeText.c_str()
53 return std::unexpected(
67 plan.negativeText =
"Cancel";
70 plan.positiveText =
"OK";
71 plan.negativeText =
"Cancel";
74 plan.positiveText =
"Yes";
75 plan.negativeText =
"No";
84 std::string_view title,
85 std::string_view message,
89 title.empty() ? std::string_view(
"Error:") : title);
96 return std::unexpected(
102 std::string_view title,
103 std::string_view message,
113 std::string_view title,
114 std::string_view message,
124 std::string_view title,
125 std::string_view message,
136 std::string_view message,
140 "Something went wrong! Error Exit Message:",
decision::EconomicActionPlan plan
std::vector< std::uint8_t > data
void errorExit(std::string_view message, SDL_Window *window)
std::expected< bool, std::string > retryMessage(std::string_view title, std::string_view message, SDL_Window *window)
std::expected< bool, std::string > okCancelMessage(std::string_view title, std::string_view message, SDL_Window *window)
QuestionPlan questionPlan(Question question, bool defaultPositive)
constexpr int ErrorExitStatus
std::expected< void, std::string > displayMessage(std::string_view title, std::string_view message, SDL_Window *window)
std::expected< bool, std::string > yesNoMessage(std::string_view title, std::string_view message, bool defaultYes, SDL_Window *window)