Blamite Game Engine - blam!
00296.01.12.21.0102.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 <fstream>
4
5
#include "../../debug_ui.h"
6
7
namespace
Blam::DebugUI::Windows
8
{
25
class
ConfigEditor
:
public
Blam::DebugUI::ImGUIDrawingGroup
26
{
27
public
:
31
ConfigEditor
() {};
32
36
~ConfigEditor
() {};
37
41
void
Draw
()
42
{
43
// Advanced (yet primitive) Engine configurator
44
if
(
show
)
45
{
46
ImGui::Begin(
"Configuration Editor"
, &
show
);
47
48
std::ifstream engine_conf(
"engine.config"
);
49
50
51
52
static
bool
read_only =
false
;
53
static
char
text[1024 * 16] =
54
"#################################"
55
"\n# Blamite Engine Configuration #"
56
"\n# (c) Elaztek Studios 2016 #"
57
"\n#################################"
58
"\nfpsMax: 60"
59
"\nbink - enabled : true"
60
"\nuseSwitches : true"
61
"\nuseMulti : true"
62
"\nuseSolo : true"
63
"\nuseLegacyFileStructure : false"
64
"\nuseDedicated : true"
65
"\ndedicatedHost : 343.host.elaztek.com"
66
"\ndedicatedFallback : i01.host.elaztek.com"
67
"\ndedicatedFallback2 : contingency.host.elaztek.com"
68
"\nui : default"
69
"\nmp3Enabled : true"
70
"\ncheckSignatures : true"
71
"\nenableElaztekExtended : true"
72
"\nlaunchMode : retail"
73
"\ninit - level : mainmenu"
74
"\ns_hsc_ver : 15267.10.13.16.0467.blamite"
75
"\nhavok_cloth_phys :"
76
"\nhavok_impact_phys :"
77
"\nhavok_physics_engine :"
78
"\nachi_enabled : true"
79
"\nvoice_server : ts.elaztek.com"
80
"\nvoice_default_channel : 57"
81
"\nshow_ts_window : false"
82
"\npoly_limit : 32767"
83
"\nr_wireframe : false"
84
"\nrender_preset : blam"
85
"\nfog : true"
86
"\nsys_font : fixedsys - embedded"
87
"\nconf - ver : 12"
;
88
89
90
ImGui::Checkbox(
"Read-only"
, &read_only);
91
ImGui::InputTextMultiline(
"##source"
, text, IM_ARRAYSIZE(text), ImVec2(-1.0f, ImGui::GetTextLineHeight() * 24), ImGuiInputTextFlags_AllowTabInput | (read_only ? ImGuiInputTextFlags_ReadOnly : 0));
92
ImGui::End();
93
}
94
}
95
};
96
}
Blam::DebugUI::Windows::ConfigEditor::Draw
void Draw()
Draws the window.
Definition:
config_editor.hpp:41
Blam::DebugUI::Windows::ConfigEditor::~ConfigEditor
~ConfigEditor()
Empty destructor.
Definition:
config_editor.hpp:36
Blam::DebugUI::Windows::ConfigEditor
An incomplete configuration editor, using raw text.
Definition:
config_editor.hpp:25
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::ConfigEditor::ConfigEditor
ConfigEditor()
Empty constructor.
Definition:
config_editor.hpp:31
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition:
debug_ui.h:434
blam
components
ui
imgui
imgui_windows
legacy
config_editor.hpp
Generated on Tue Jan 12 2021 01:11:27 for Blamite Game Engine - blam! by
1.8.17