Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
weird_logger.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "../../debug_ui.h"
4
5
namespace
Blam::DebugUI::Windows
6
{
15
class
WeirdLogger
:
public
Blam::DebugUI::ImGUIDrawingGroup
16
{
17
public
:
21
WeirdLogger
() {}
22
26
~WeirdLogger
() {}
27
31
void
Draw
()
32
{
33
//Logger and console
34
if
(
show
)
35
{
36
ImGui::Begin(
"Game Log"
, &
show
, ImGuiWindowFlags_AlwaysAutoResize);
37
static
char
command[255];
//dedicatedHost
38
39
ImGui::InputText(
"IP:"
, command, IM_ARRAYSIZE(command));
40
41
ImGui::Separator();
42
if
(ImGui::Button(
"Run Command (Windows)"
, ImVec2(180, 0))) { system(command); }
43
if
(ImGui::Button(
"Run Command (Engine)"
, ImVec2(180, 0))) {
/*run engine cmd*/
}
44
45
ImGui::End();
46
}
47
}
48
};
49
}
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::WeirdLogger::~WeirdLogger
~WeirdLogger()
Empty destructor.
Definition:
weird_logger.hpp:26
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition:
debug_ui.h:434
Blam::DebugUI::Windows::WeirdLogger
A class for...
Definition:
weird_logger.hpp:15
Blam::DebugUI::Windows::WeirdLogger::WeirdLogger
WeirdLogger()
Empty constructor.
Definition:
weird_logger.hpp:21
Blam::DebugUI::Windows::WeirdLogger::Draw
void Draw()
Draws the window.
Definition:
weird_logger.hpp:31
blam
components
ui
imgui
imgui_windows
legacy
weird_logger.hpp
Generated on Tue Jan 12 2021 01:11:27 for Blamite Game Engine - blam! by
1.8.17