Blamite Game Engine - blam!
00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
blam
components
ui
imgui
imgui_windows
exit.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "../debug_ui.h"
4
5
namespace
Blam::DebugUI::Windows
6
{
10
class
Exit
:
public
Blam::DebugUI::ImGUIDrawingGroup
11
{
12
public
:
16
Exit
() {}
17
21
~Exit
() {}
22
26
void
Draw
()
27
{
28
//Exiting via the menu
29
if
(
show
)
30
{
31
ImGui::OpenPopup(
" Exit?"
);
32
if
(ImGui::BeginPopupModal(
" Exit?"
, &
show
, ImGuiWindowFlags_AlwaysAutoResize))
33
{
34
ImGui::Text
(
"Are you sure you want to quit?\n\n"
);
35
ImGui::Separator();
36
37
if
(ImGui::Button(
"Yes"
, ImVec2(120, 0))) {
/*exit(0);*/
}
38
ImGui::SameLine();
39
if
(ImGui::Button(
"No"
, ImVec2(120, 0))) { ImGui::CloseCurrentPopup();
show
=
false
; }
40
ImGui::EndPopup();
41
}
42
}
43
}
44
};
45
}
Blam::DebugUI::Windows::Exit::Exit
Exit()
Empty constructor.
Definition:
exit.hpp:16
Blam::DebugUI::Windows::Exit::~Exit
~Exit()
Empty destructor.
Definition:
exit.hpp:21
Blam::DebugUI::ImGUIDrawingGroup::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition:
debug_ui.h:441
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition:
debug_ui.h:408
Blam::DebugUI::Windows::Exit
Class for the exit confirmation dialog.
Definition:
exit.hpp:10
Blam::DebugUI::Windows::Exit::Draw
void Draw()
Shows the exit confirmation prompt.
Definition:
exit.hpp:26
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition:
debug_ui.h:493
Text
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition:
render_stack.h:73
Generated on Sat Oct 17 2020 12:42:11 for Blamite Game Engine - blam! by
1.8.17