Blamite Game Engine - blam!  00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
config_editor.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../debug_ui.h"
4 
6 
7 
9 {
14  {
15  private:
16  void GenerateConfigOptionControl(Blam::Config::ConfigOption* option)
17  {
18 
19  }
20 
21  public:
25  void Draw()
26  {
27  // About Blamite
28  if (show)
29  {
30  if (ImGui::Begin("Configuration Editor", &show))
31  {
32 
33  if (ImGui::BeginTabBar("config_editor_tabs", ImGuiTabBarFlags_NoTooltip))
34  {
36 
37  if (ImGui::BeginTabItem("Easy Editor"))
38  {
39  std::map<std::string, Blam::Config::ConfigOption>::iterator it;
40 
41  for (it = config->options.begin(); it != config->options.end(); it++)
42  {
43  GenerateConfigOptionControl(&it->second);
44  }
45 
46  ImGui::EndTabItem();
47  }
48 
49  if (ImGui::BeginTabItem("Raw Editor"))
50  {
51 
52  ImGui::EndTabItem();
53  }
54 
55 
56  ImGui::EndTabBar();
57  }
58 
59 
60  }
61  ImGui::End();
62  }
63  }
64  };
65 }
Blam::Config::GetConfig
BLAM ConfigFile * GetConfig(std::string filename)
Retrieves the specified configuration file.
Definition: config.cpp:232
Blam::Config::ConfigOption
Structure to contain data for an option within a Config file.
Definition: config.h:41
Blam::Config::ConfigFile
Class to contain data related to a Config file.
Definition: config.h:50
Blam::Config::ConfigFile::options
std::map< std::string, ConfigOption > options
Contains all options contained within the config file.
Definition: config.h:59
Blam::DebugUI::Windows::ModernConfigEditor
Class for the modern Config Editor.
Definition: config_editor.hpp:13
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:442
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:409
config.h
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:494
Blam::DebugUI::Windows::ModernConfigEditor::Draw
void Draw()
Draws the about box.
Definition: config_editor.hpp:25