From 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 15 Mar 2025 16:22:09 +0500 Subject: Add whatever I was working on for the last month --- game/client/message_box.cc | 93 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 game/client/message_box.cc (limited to 'game/client/message_box.cc') diff --git a/game/client/message_box.cc b/game/client/message_box.cc new file mode 100644 index 0000000..b79d67e --- /dev/null +++ b/game/client/message_box.cc @@ -0,0 +1,93 @@ +#include "client/pch.hh" +#include "client/message_box.hh" + +#include "client/globals.hh" +#include "client/gui_screen.hh" +#include "client/language.hh" + +constexpr static ImGuiWindowFlags WINDOW_FLAGS = ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoDecoration; + +struct Button final { + message_box_action action; + std::string str_title; +}; + +static std::string str_title; +static std::string str_subtitle; +static std::vector