Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
jtchat.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
6 {
18  {
19  public:
23  JTChat() {}
24 
28  ~JTChat() {}
29 
33  void Draw()
34  {
35  // jtchat
36  if (show)
37  {
38  ImVec2 windowsize = ImVec2(600, 430);
39  ImGui::SetNextWindowSize(windowsize);
40 
41 
42  ImGui::Begin("Chat", &show);
43 
44 
45 
46 
47 
48  static bool read_only = true;
49  static char text[1024 * 16] = "";
50  char text_input[256] = "";
51 
52 
53  //ImGui::Checkbox("Read-only", &read_only);
54  ImGui::InputTextMultiline("Chat", text, sizeof(text), ImVec2(-1.0f, ImGui::GetTextLineHeight() * 24), ImGuiInputTextFlags_AllowTabInput | (read_only ? ImGuiInputTextFlags_ReadOnly : 0));
55 
56  ImGui::InputText("", text_input, sizeof(text_input));
57 
58  ImGui::SameLine();
59 
60  if (ImGui::Button("Send", ImVec2(180, 0))) { /* do the thing */ }
61 
62  ImGui::End();
63  }
64  }
65  };
66 }
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::JTChat::JTChat
JTChat()
Empty constructor.
Definition: jtchat.hpp:23
Blam::DebugUI::Windows::JTChat::~JTChat
~JTChat()
Empty destructor.
Definition: jtchat.hpp:28
Blam::DebugUI::Windows::JTChat
This was planned to be a chat client that would connect to some sort of java-based chat server.
Definition: jtchat.hpp:17
debug_ui.h
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
Blam::DebugUI::Windows::JTChat::Draw
void Draw()
Draws the window.
Definition: jtchat.hpp:33