Blamite Game Engine - blam!  00285.12.18.20.1411.blamite
The core library for the Blamite Game Engine.
engine_text_viewer.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../debug_ui.h"
4 
6 
8 {
13  {
14  private:
15  char search_buffer[128];
16 
17  public:
18  void Draw()
19  {
20  if (show)
21  {
22  if (ImGui::Begin("Engine Text Viewer", &show))
23  {
24  ImGui::InputTextWithHint("", "filter strings by id...", search_buffer, 128);
25 
26  std::map<std::string, BlamEngineString>* strings = Blam::EngineText::GetEngineStrings();
27  std::map<std::string, BlamEngineString>::iterator it;
28 
29  for (it = strings->begin(); it != strings->end(); it++)
30  {
31  ImGui::Text(it->first.c_str());
32 
33  ImGui::Text(" | ");
34 
35  ImGui::Text(it->second.text.c_str());
36  }
37  }
38  ImGui::End();
39  }
40  }
41  };
42 }
engine_text.h
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::EngineText::GetEngineStrings
BLAM std::map< std::string, BlamEngineString > * GetEngineStrings()
Retrieves the list of all loaded engine strings.
Definition: engine_text.cpp:234
Blam::DebugUI::Windows::GameEngineTextViewer
Class for the engine Globals editor.
Definition: engine_text_viewer.hpp:12
Blam::DebugUI::Windows::GameEngineTextViewer::Draw
void Draw()
Draws the contents of the group.
Definition: engine_text_viewer.hpp:18
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
Text
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73