New Flying feature (#2206)
* Remove ultra trash feature * Added extra raycast * refactor(OptionsModal): Support translations * feat(Components): added input float * feat(SuperHeroFly): converted code to commands and move strings to translations --------- Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
This commit is contained in:
@ -55,7 +55,7 @@ namespace big
|
||||
ImGui::BeginGroup();
|
||||
|
||||
components::command_checkbox<"noclip">();
|
||||
components::options_modal("Noclip", [] {
|
||||
components::options_modal("NO_CLIP"_T, [] {
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::BeginGroup();
|
||||
@ -82,7 +82,25 @@ namespace big
|
||||
|
||||
components::command_checkbox<"cleanloop">();
|
||||
components::command_checkbox<"mobileradio">();
|
||||
components::command_checkbox<"superman">();
|
||||
components::command_checkbox<"superherofly">();
|
||||
components::options_modal("SUPER_HERO_FLY_OPTION_MODAL"_T, [] {
|
||||
ImGui::Text("SUPER_HERO_FLY_OPTION_MODAL_DETAILED_DESC"_T.data());
|
||||
ImGui::Separator();
|
||||
|
||||
components::command_checkbox<"superheroflygradualspeed">();
|
||||
components::disable_unless([] { return !g.self.super_hero_fly.gradual; }, []{
|
||||
ImGui::SetNextItemWidth(150);
|
||||
components::command_float_input<"superheroflyspeed">();
|
||||
});
|
||||
components::command_checkbox<"superheroflyexplosions">();
|
||||
components::command_checkbox<"superheroflyautoland">();
|
||||
components::command_checkbox<"superheroflychargelaunch">();
|
||||
components::disable_unless([] { return g.self.super_hero_fly.charge; }, []{
|
||||
components::command_checkbox<"superheroflychargeptfx">();
|
||||
});
|
||||
ImGui::SetNextItemWidth(150);
|
||||
components::command_float_input<"superheroflyinitiallaunch">();
|
||||
});
|
||||
|
||||
ImGui::Checkbox("DANCE_MODE"_T.data(), &g.self.dance_mode);
|
||||
|
||||
|
Reference in New Issue
Block a user