Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
error_dialog.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
13 {
14 public:
15  bool show_error_dialog = false;
16  const char* title = "";
17  const char* message = "";
18 
22  void Draw()
23  {
25  {
28  {
30 
32 
33  if (ImGui::Button("ok"))
34  {
35  show_error_dialog = false;
36  }
37 
39  }
40  }
41  }
42 };
BlamImGuiWindow_ErrorDialog::Draw
void Draw()
Shows the error dialog, if enabled.
Definition: error_dialog.hpp:22
ImGui::EndPopup
IMGUI_API void EndPopup()
Definition: imgui.cpp:7675
ImGui::BeginPopupModal
IMGUI_API bool BeginPopupModal(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:7647
BlamImGuiWindow_ErrorDialog::message
const char * message
The contents of the error dialog.
Definition: error_dialog.hpp:17
BlamImGuiWindow_ErrorDialog::title
const char * title
The title of the error dialog.
Definition: error_dialog.hpp:16
BlamImGuiWindow_ErrorDialog::show_error_dialog
bool show_error_dialog
Whether or not to show the error dialog.
Definition: error_dialog.hpp:15
BlamImGuiWindow
Class representing an ImGUI window.
Definition: imgui.h:31
ImGui::OpenPopup
IMGUI_API void OpenPopup(const char *str_id)
Definition: imgui.cpp:7453
ImGui::Text
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
BlamImGuiWindow_ErrorDialog
A seemingly incomplete class for an ImGUI-based error dialog?
Definition: error_dialog.hpp:12
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
imgui.h
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644