Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.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");
52  {
53  ImGui::Text("An update is availible!\nDownload the update?");
55 
56  if (ImGui::Button("Yes", ImVec2(120, 0))) { /*run haloupdate*/ }
58  if (ImGui::Button("No", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); show = false; }
60  }
61  }
62  }
63  }
64  };
65 }
Blam::DebugUI::Windows::UpdateChecker::~UpdateChecker
~UpdateChecker()
Empty destructor.
Definition: update_checker.hpp:39
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
ImGui::SameLine
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
ImVec2
Definition: imgui.h:179
ImGui::OpenPopup
IMGUI_API void OpenPopup(const char *str_id)
Definition: imgui.cpp:7453
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
ImGui::Text
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
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
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
ImGui::CloseCurrentPopup
IMGUI_API void CloseCurrentPopup()
Definition: imgui.cpp:7581
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:14
Blam::DebugUI::Windows::UpdateChecker::UpdateChecker
UpdateChecker()
Empty destructor.
Definition: update_checker.hpp:34
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644