@@ -77,31 +77,31 @@ void menu::render()
77
77
78
78
BeginChild (xorstr (" Globals" ), child_size);
79
79
{
80
- Checkbox (xorstr (" Enable" ), &settings::antiaim::globals ::enable); custom::hotkey (xorstr (" AntiAim Hotkey" ), &settings::antiaim::globals ::hotkey);
81
- Checkbox (xorstr (" Fake duck" ), &settings::antiaim::globals ::fake_duck);
82
- Checkbox (xorstr (" At target" ), &settings::antiaim::globals ::at_target);
83
- Checkbox (xorstr (" Invert yaw" ), &settings::antiaim::globals ::invert_yaw);
84
- Combo (xorstr (" Yaw" ), &settings::antiaim::globals ::yaw, xorstr (" LBY\0 " ));
85
- Combo (xorstr (" Pitch" ), &settings::antiaim::globals ::pitch, xorstr (" Down\0 " " Up\0 " ));
80
+ Checkbox (xorstr (" Enable" ), &settings::antihit::fake_angles ::enable); custom::hotkey (xorstr (" AntiAim Hotkey" ), &settings::antihit::fake_angles ::hotkey);
81
+ Checkbox (xorstr (" Fake duck" ), &settings::antihit::fake_angles ::fake_duck);
82
+ Checkbox (xorstr (" At target" ), &settings::antihit::fake_angles ::at_target);
83
+ Checkbox (xorstr (" Invert yaw" ), &settings::antihit::fake_angles ::invert_yaw);
84
+ Combo (xorstr (" Yaw" ), &settings::antihit::fake_angles ::yaw, xorstr (" LBY\0 " ));
85
+ Combo (xorstr (" Pitch" ), &settings::antihit::fake_angles ::pitch, xorstr (" Down\0 " " Up\0 " ));
86
86
}
87
87
EndChild ();
88
88
89
89
SameLine ();
90
90
91
- BeginChild (xorstr (" FakeLag 's" ), child_size);
91
+ BeginChild (xorstr (" Fake Lag 's" ), child_size);
92
92
{
93
- Checkbox (xorstr (" Enable" ), &settings::antiaim::fakelags ::enable);
94
- SliderInt (xorstr (" Count" ), &settings::antiaim::fakelags ::count, 1 , 24 , xorstr (" %d" ), ImGuiSliderFlags_NoInput); /* sv_maxusrcmdprocessticks = 24*/
95
- Combo (xorstr (" Method" ), &settings::antiaim::fakelags ::method, xorstr (" On Ground\0 " " In Air\0 " " On Move\0 " " On Stand\0 " " Always\0 " ));
93
+ Checkbox (xorstr (" Enable" ), &settings::antihit::fake_lags ::enable);
94
+ SliderInt (xorstr (" Count" ), &settings::antihit::fake_lags ::count, 1 , 24 , xorstr (" %d" ), ImGuiSliderFlags_NoInput); /* sv_maxusrcmdprocessticks = 24*/
95
+ Combo (xorstr (" Method" ), &settings::antihit::fake_lags ::method, xorstr (" On Ground\0 " " In Air\0 " " On Move\0 " " On Stand\0 " " Always\0 " ));
96
96
}
97
97
EndChild ();
98
98
99
99
SameLine ();
100
100
101
101
BeginChild (xorstr (" Visuals" ), child_size);
102
102
{
103
- Checkbox (xorstr (" Fake model" ), &settings::antiaim ::visuals::fake_model::enable); ColorEdit4 (xorstr (" Fake model" ), settings::antiaim ::visuals::colors::fake_model, color_edit4_flags);
104
- Combo (xorstr (" Material" ), &settings::antiaim ::visuals::fake_model::material_type, xorstr (" Normal\0 " " Flat\0 " " Wireframe\0 " ));
103
+ Checkbox (xorstr (" Fake model" ), &settings::antihit ::visuals::fake_model::enable); ColorEdit4 (xorstr (" Fake model" ), settings::antihit ::visuals::colors::fake_model, color_edit4_flags);
104
+ Combo (xorstr (" Material" ), &settings::antihit ::visuals::fake_model::material_type, xorstr (" Normal\0 " " Flat\0 " " Wireframe\0 " ));
105
105
}
106
106
EndChild ();
107
107
@@ -121,30 +121,30 @@ void menu::render()
121
121
{
122
122
case 0 :
123
123
{
124
- Checkbox (xorstr (" Enable" ), &settings::visuals::players::enable);
125
- Checkbox (xorstr (" Dormant" ), &settings::visuals::players::dormant);
126
- Checkbox (xorstr (" Box" ), &settings::visuals::players::box); ColorEdit4 (xorstr (" Box" ), settings::visuals::players::colors::box, color_edit4_flags);
127
- Checkbox (xorstr (" Name" ), &settings::visuals::players::name); ColorEdit4 (xorstr (" Name" ), settings::visuals::players::colors::name, color_edit4_flags);
128
- Checkbox (xorstr (" Rp team" ), &settings::visuals::players::rp_team); ColorEdit4 (xorstr (" Rp team" ), settings::visuals::players::colors::rp_team, color_edit4_flags);
129
- Checkbox (xorstr (" User group" ), &settings::visuals::players::user_group); ColorEdit4 (xorstr (" User group" ), settings::visuals::players::colors::user_group, color_edit4_flags);
130
- Checkbox (xorstr (" Weapon name" ), &settings::visuals::players::weapon_name); ColorEdit4 (xorstr (" Weapon name" ), settings::visuals::players::colors::weapon_name, color_edit4_flags);
131
- Checkbox (xorstr (" Distance" ), &settings::visuals::players::distance); ColorEdit4 (xorstr (" Distance" ), settings::visuals::players::colors::distance, color_edit4_flags);
132
- SliderInt (xorstr (" Render distance" ), &settings::visuals::players::render_distance, 100 , 20000 , xorstr (" %d m" ), ImGuiSliderFlags_NoInput);
124
+ Checkbox (xorstr (" Enable" ), &settings::visuals::esp:: players::enable);
125
+ Checkbox (xorstr (" Dormant" ), &settings::visuals::esp:: players::dormant);
126
+ Checkbox (xorstr (" Box" ), &settings::visuals::esp:: players::box); ColorEdit4 (xorstr (" Box" ), settings::visuals::esp ::players::colors::box, color_edit4_flags);
127
+ Checkbox (xorstr (" Name" ), &settings::visuals::esp:: players::name); ColorEdit4 (xorstr (" Name" ), settings::visuals::esp ::players::colors::name, color_edit4_flags);
128
+ Checkbox (xorstr (" Rp team" ), &settings::visuals::esp:: players::rp_team); ColorEdit4 (xorstr (" Rp team" ), settings::visuals::esp ::players::colors::rp_team, color_edit4_flags);
129
+ Checkbox (xorstr (" User group" ), &settings::visuals::esp:: players::user_group); ColorEdit4 (xorstr (" User group" ), settings::visuals::esp ::players::colors::user_group, color_edit4_flags);
130
+ Checkbox (xorstr (" Weapon name" ), &settings::visuals::esp:: players::weapon_name); ColorEdit4 (xorstr (" Weapon name" ), settings::visuals::esp ::players::colors::weapon_name, color_edit4_flags);
131
+ Checkbox (xorstr (" Distance" ), &settings::visuals::esp:: players::distance); ColorEdit4 (xorstr (" Distance" ), settings::visuals::esp ::players::colors::distance, color_edit4_flags);
132
+ SliderInt (xorstr (" Render distance" ), &settings::visuals::esp:: players::render_distance, 100 , 20000 , xorstr (" %d m" ), ImGuiSliderFlags_NoInput);
133
133
}
134
134
break ;
135
135
case 1 :
136
136
{
137
- Checkbox (xorstr (" Enable" ), &settings::visuals::entity::enable);
138
- Checkbox (xorstr (" Dormant" ), &settings::visuals::entity::dormant);
139
- Checkbox (xorstr (" Box" ), &settings::visuals::entity::box); ColorEdit4 (xorstr (" Box" ), settings::visuals::entity::colors::box, color_edit4_flags);
140
- Checkbox (xorstr (" Name" ), &settings::visuals::entity::name); ColorEdit4 (xorstr (" Name" ), settings::visuals::entity::colors::name, color_edit4_flags);
141
- Checkbox (xorstr (" Distance" ), &settings::visuals::entity::distance); ColorEdit4 (xorstr (" Distance" ), settings::visuals::entity::colors::distance, color_edit4_flags);
137
+ Checkbox (xorstr (" Enable" ), &settings::visuals::esp:: entity::enable);
138
+ Checkbox (xorstr (" Dormant" ), &settings::visuals::esp:: entity::dormant);
139
+ Checkbox (xorstr (" Box" ), &settings::visuals::esp:: entity::box); ColorEdit4 (xorstr (" Box" ), settings::visuals::esp ::entity::colors::box, color_edit4_flags);
140
+ Checkbox (xorstr (" Name" ), &settings::visuals::esp:: entity::name); ColorEdit4 (xorstr (" Name" ), settings::visuals::esp ::entity::colors::name, color_edit4_flags);
141
+ Checkbox (xorstr (" Distance" ), &settings::visuals::esp:: entity::distance); ColorEdit4 (xorstr (" Distance" ), settings::visuals::esp ::entity::colors::distance, color_edit4_flags);
142
142
143
143
if (BeginCombo (xorstr (" List" ), xorstr (" ..." )))
144
144
{
145
145
utilities::update_entity_list ();
146
146
147
- for (auto item : settings::visuals::entity::list.items ())
147
+ for (auto item : settings::visuals::esp:: entity::list.items ())
148
148
{
149
149
bool temp = item.value ();
150
150
Selectable (item.key ().c_str (), &temp, ImGuiSelectableFlags_DontClosePopups);
@@ -154,7 +154,7 @@ void menu::render()
154
154
EndCombo ();
155
155
}
156
156
157
- SliderInt (xorstr (" Render distance" ), &settings::visuals::entity::render_distance, 100 , 20000 , xorstr (" %d m" ), ImGuiSliderFlags_NoInput);
157
+ SliderInt (xorstr (" Render distance" ), &settings::visuals::esp:: entity::render_distance, 100 , 20000 , xorstr (" %d m" ), ImGuiSliderFlags_NoInput);
158
158
}
159
159
break ;
160
160
}
@@ -173,7 +173,11 @@ void menu::render()
173
173
174
174
BeginChild (xorstr (" World" ), child_size);
175
175
{
176
+ Checkbox (xorstr (" Fov changer" ), &settings::visuals::world::fov_changer::enable);
177
+ SliderFloat (xorstr (" Value##1" ), &settings::visuals::world::fov_changer::value, 50 , 179 , xorstr (" %.1f" ), ImGuiSliderFlags_NoInput);
176
178
179
+ Checkbox (xorstr (" Model fov changer" ), &settings::visuals::world::model_fov_changer::enable);
180
+ SliderFloat (xorstr (" Value##2" ), &settings::visuals::world::model_fov_changer::value, 30 , 150 , xorstr (" %.1f" ), ImGuiSliderFlags_NoInput);
177
181
}
178
182
EndChild ();
179
183
@@ -288,17 +292,60 @@ void menu::render()
288
292
LabelText (xorstr (" FrameBg" )); ColorEdit4 (xorstr (" FrameBg" ), settings::menu::colors::frame_bg, color_edit4_flags);
289
293
LabelText (xorstr (" FrameHoveredBg" )); ColorEdit4 (xorstr (" FrameHoveredBg" ), settings::menu::colors::frame_hovered_bg, color_edit4_flags);
290
294
LabelText (xorstr (" FrameActiveBg" )); ColorEdit4 (xorstr (" FrameActiveBg" ), settings::menu::colors::frame_active_bg, color_edit4_flags);
291
- Checkbox (xorstr (" Custom loading screen" ), &settings::menu::custom_loading_screen);
295
+ Checkbox (xorstr (" Custom loading screen" ), &settings::menu::custom_loading_screen::enable);
296
+ SetNextItemWidth (GetColumnWidth () - 10 .f );
297
+ InputText (xorstr (" Url" ), settings::menu::custom_loading_screen::url, IM_ARRAYSIZE (settings::menu::custom_loading_screen::url));
292
298
}
293
299
EndChild ();
294
300
295
301
SameLine ();
296
302
297
303
BeginChild (xorstr (" Configs" ), child_size);
298
304
{
299
- float column_width = GetColumnWidth ();
305
+ float column_width = GetColumnWidth () - 10 .f ;
306
+ ImVec2 button_size = ImVec2 ((column_width / 2 ) - style.ItemInnerSpacing .x , 35 .f );
307
+
308
+ static int selected_item = -1 ;
309
+ static std::string selected_config_name;
310
+
311
+ static char new_config_name[256 ] = " " ;
312
+
313
+ std::vector<std::string> file_list = utilities::get_files_from_folder (xorstr (" C:/nixware/configs/" ), " " , xorstr (" .nixware" ));
314
+
315
+ if (BeginCombo (xorstr (" Configs" ), selected_config_name.empty () ? xorstr (" ..." ) : selected_config_name.c_str ()))
316
+ {
317
+ for (int i = 0 ; i < file_list.size (); i++)
318
+ {
319
+ const bool is_selected = (selected_item == i);
320
+
321
+ if (Selectable (file_list[i].c_str (), is_selected))
322
+ {
323
+ selected_item = i;
324
+ selected_config_name = file_list[i];
325
+ }
326
+
327
+ if (is_selected)
328
+ SetItemDefaultFocus ();
329
+ }
330
+
331
+ EndCombo ();
332
+ }
333
+
334
+ if (Button (xorstr (" Load" ), button_size))
335
+ config_manager::load (selected_config_name);
336
+
337
+ SameLine ();
338
+
339
+ if (Button (xorstr (" Save" ), button_size))
340
+ config_manager::save (selected_config_name);
341
+
342
+ SetNextItemWidth (column_width);
343
+ InputText (xorstr (" New config name" ), new_config_name, IM_ARRAYSIZE (new_config_name));
344
+
345
+ if (Button (xorstr (" Create and save" ), ImVec2 (column_width, 35 .f )))
346
+ config_manager::save (new_config_name);
300
347
301
- if (Button (xorstr (" Unload cheat" ), ImVec2 (column_width - 10 . f , 35 .f )))
348
+ if (Button (xorstr (" Unload cheat" ), ImVec2 (column_width, 35 .f )))
302
349
globals::unload = true ;
303
350
}
304
351
EndChild ();
0 commit comments