3 #include "../../debug_ui.h"
40 ImGui::Begin(
"Configuration Editor (New)", &
show);
42 static int fps_limit = 60;
43 static bool bink_enabled =
true;
44 static bool use_switches =
true;
45 static bool use_mp =
true;
46 static bool use_solo =
true;
47 static bool old_folder_structure =
true;
48 static bool dedicated_server =
true;
49 static char dedicated_host[255] =
"343.host.elaztek.com";
50 static char dedicated_fallback_1[255] =
"i01.host.elaztek.com";
51 static char dedicated_fallback_2[255] =
"contingency.host.elaztek.com";
52 const char* ui[] = {
"default",
"classic",
"halo3",
"imgui" };
53 static int ui_active = 0;
54 static bool use_mp3 =
true;
55 static bool check_signatures =
true;
56 static bool use_esef =
true;
57 const char* launch_mode[] = {
"retail",
"alpha",
"beta",
"dev",
"press",
"safemode",
"debug",
"screen" };
58 static int launch_active = 0;
59 static char default_level[255] =
"levels/ui/mainmenu/mainmenu";
60 static char s_hsc_ver[255] =
"%latest%";
61 static bool havok_cloth_phys =
true;
62 static bool havok_impact_phys =
true;
63 const char* phys_mode[] = {
"havok",
"h2v",
"contingencycryengine",
"madness",
"none",
"spaaace" };
64 static int phys_active = 0;
65 static bool achi_enabled =
true;
66 static char voip_server[255] =
"voice.inf.elaztek.com";
67 static int voip_channel = 1;
68 static bool show_voip_window =
false;
69 static int poly_limit = 32767;
70 static bool r_wireframe =
false;
71 const char* render_preset[]{
"blam",
"halo",
"halo2",
"halo3",
"omaha",
"storm",
"osiris" };
72 static int render_preset_active = 0;
73 static bool r_fog =
true;
74 static char sys_font[255] =
"fixedsys";
75 static int conf_ver = 1;
79 ImGui::DragInt(
"fpsMax", &fps_limit, 1);
84 ImGui::Checkbox(
"bink-enabled", &bink_enabled);
88 ImGui::Checkbox(
"useSwitches", &use_switches);
92 ImGui::Checkbox(
"useMulti", &use_mp);
96 ImGui::Checkbox(
"useSolo", &use_solo);
100 ImGui::Checkbox(
"useLegacyFileStructure", &old_folder_structure);
104 ImGui::Checkbox(
"useDedicated", &dedicated_server);
108 ImGui::InputText(
"dedicatedHost", dedicated_host, IM_ARRAYSIZE(dedicated_host));
112 ImGui::InputText(
"dedicatedFallback", dedicated_fallback_1, IM_ARRAYSIZE(dedicated_fallback_1));
116 ImGui::InputText(
"dedicatedFallback2", dedicated_fallback_2, IM_ARRAYSIZE(dedicated_fallback_2));
120 ImGui::Combo(
"ui", &ui_active, ui, IM_ARRAYSIZE(ui));
124 ImGui::Checkbox(
"mp3Enabled", &use_mp3);
128 ImGui::Checkbox(
"checkSignatures", &check_signatures);
132 ImGui::Checkbox(
"enableElaztekExtended", &use_esef);
136 ImGui::Combo(
"launchMode", &launch_active, launch_mode, IM_ARRAYSIZE(launch_mode));
140 ImGui::InputText(
"init-level", default_level, IM_ARRAYSIZE(default_level));
144 ImGui::InputText(
"s_hsc_ver", s_hsc_ver, IM_ARRAYSIZE(s_hsc_ver));
148 ImGui::Checkbox(
"havok_cloth_phys", &havok_cloth_phys);
152 ImGui::Checkbox(
"havok_impact_phys", &havok_impact_phys);
156 ImGui::Combo(
"havok_physics_engine", &phys_active, phys_mode, IM_ARRAYSIZE(phys_mode));
160 ImGui::Checkbox(
"achi_enabled", &achi_enabled);
164 ImGui::InputText(
"voice_server", voip_server, IM_ARRAYSIZE(voip_server));
168 ImGui::InputInt(
"voice_default_channel", &voip_channel);
172 ImGui::Checkbox(
"show_ts_window", &show_voip_window);
176 ImGui::DragInt(
"poly_limit", &poly_limit, 1);
180 ImGui::Checkbox(
"r_wireframe", &r_wireframe);
184 ImGui::Combo(
"render_preset", &render_preset_active, render_preset, IM_ARRAYSIZE(render_preset));
188 ImGui::Checkbox(
"fog", &r_fog);
192 ImGui::InputText(
"sys_font", sys_font, IM_ARRAYSIZE(sys_font));
196 ImGui::InputInt(
"conf-ver", &conf_ver);
199 if (ImGui::Button(
"Save (write to engine.config)", ImVec2(120, 0))) {}