Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
update_checker.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../debug_ui.h"
4 
6 {
24  {
25  private:
26  bool update_availible = false;
27 
28  //add update checker logic here (RSync via Michaels suggestion?)
29 
30  public:
35 
40 
44  void Draw()
45  {
46  if (update_availible == true)
47  {
48  if (show)
49  {
50  ImGui::OpenPopup(" Update Checker");
51  if (ImGui::BeginPopupModal(" Update Checker", NULL, ImGuiWindowFlags_AlwaysAutoResize))
52  {
53  ImGui::Text("An update is availible!\nDownload the update?");
54  ImGui::Separator();
55 
56  if (ImGui::Button("Yes", ImVec2(120, 0))) { /*run haloupdate*/ }
57  ImGui::SameLine();
58  if (ImGui::Button("No", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); show = false; }
59  ImGui::EndPopup();
60  }
61  }
62  }
63  }
64  };
65 }
Blam::DebugUI::Windows::UpdateChecker::~UpdateChecker
~UpdateChecker()
Empty destructor.
Definition: update_checker.hpp:39
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:362
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
Blam::DebugUI::Windows::UpdateChecker::Draw
void Draw()
Draws the update check dialog.
Definition: update_checker.hpp:44
Blam::DebugUI::Windows::UpdateChecker
A class containing a theoretical update check dialog.
Definition: update_checker.hpp:23
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
Blam::DebugUI::Windows::UpdateChecker::UpdateChecker
UpdateChecker()
Empty destructor.
Definition: update_checker.hpp:34
Text
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73