Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
weird_logger.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
14 {
15 public:
19  void Draw()
20  {
21  //Logger and console
22  if (!show)
23  {
24  return;
25  }
26 
28  static char command[255]; //dedicatedHost
29 
30  ImGui::InputText("IP:", command, IM_ARRAYSIZE(command));
31 
33 
34  if (ImGui::Button("Run Command (Windows)", ImVec2(180, 0)))
35  {
36  system(command);
37  }
38 
39  if (ImGui::Button("Run Command (Engine)", ImVec2(180, 0)))
40  {
41  /*run engine cmd*/
42  }
43 
44  ImGui::End();
45  }
46 };
BlamImGuiWindow::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
ImGui::InputText
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
ImGui::End
IMGUI_API void End()
Definition: imgui.cpp:6016
BlamImGuiWindow
Class representing an ImGUI window.
Definition: imgui.h:31
ImVec2
Definition: imgui.h:179
BlamImGuiWindow_WeirdLogger::Draw
void Draw()
Draws the window.
Definition: weird_logger.hpp:19
ImGui::Begin
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
BlamImGuiWindow_WeirdLogger
A class for...
Definition: weird_logger.hpp:13
IM_ARRAYSIZE
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
imgui.h
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644