Polyphase Game Engine
Loading...
Searching...
No Matches
GitDeleteConfirmDialog.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <string>
6#include <functional>
7#include <cstdint>
8
9class GitDeleteConfirmDialog
10{
11public:
12 // Danger levels: 0 = normal, 1 = warning, 2 = critical (requires "I understand" checkbox)
13 void Show(const std::string& title, const std::string& body, int32_t dangerLevel, std::function<void()> callback);
14 void Draw();
15
16private:
17 bool mIsOpen = false;
18 bool mJustOpened = false;
19
20 std::string mTitle;
21 std::string mBody;
22 int32_t mDangerLevel = 0;
23 std::function<void()> mCallback;
24 bool mUnderstandChecked = false;
25};
26
27GitDeleteConfirmDialog* GetGitDeleteConfirmDialog();
28
29#endif