@@ -66,8 +66,8 @@ inline const char* dropBombKeyName = GetKeyName(cfg->dropBombBind);
6666inline bool dropBombButtonState = false ;
6767inline const char * selfKickKeyName = GetKeyName(cfg->selfKickBind);
6868inline bool selfKickButtonState = false ;
69- inline const char * snapTapKeyName = GetKeyName(cfg->snapTapBind );
70- inline bool snapTapButtonState = false ;
69+ inline const char * autoStopKeyName = GetKeyName(cfg->autoStopBind );
70+ inline bool autoStopButtonState = false ;
7171inline char killSayText[256 ]{};
7272inline char killSoundFileName[256 ]{};
7373inline char roundStartAlertFileName[256 ]{};
@@ -144,7 +144,7 @@ void Overlay::Menu() noexcept {
144144 KillSayMenu ();
145145 KillSoundMenu ();
146146 RoundStartAlertMenu ();
147- SnapTapMenu ();
147+ AutoStopMenu ();
148148 GradientManagerMenu ();
149149 WatermarkMenu ();
150150 FPSLimitMenu ();
@@ -167,7 +167,7 @@ void Overlay::Menu() noexcept {
167167 jumpThrowKeyName = GetKeyName (cfg->jumpThrowBind );
168168 dropBombKeyName = GetKeyName (cfg->dropBombBind );
169169 selfKickKeyName = GetKeyName (cfg->selfKickBind );
170- snapTapKeyName = GetKeyName (cfg->snapTapBind );
170+ autoStopKeyName = GetKeyName (cfg->autoStopBind );
171171
172172 if (ImGui::FindWindowByName (" Bomb Timer" ))
173173 ImGui::SetWindowPos (" Bomb Timer" , { cfg->bombTimerPos [0 ], cfg->bombTimerPos [1 ] });
@@ -631,27 +631,33 @@ void Overlay::RoundStartAlertMenu() noexcept {
631631 }
632632}
633633
634- void Overlay::SnapTapMenu () noexcept {
634+ void Overlay::AutoStopMenu () noexcept {
635635 ImGui::TableNextRow ();
636636 ImGui::TableSetColumnIndex (0 );
637- ImGui::Checkbox (" Snap Tap " , &cfg->snapTapState );
637+ ImGui::Checkbox (" Auto Stop " , &cfg->autoStopState );
638638 ImGui::TableSetColumnIndex (1 );
639639
640- if (ImageButton (" ##SnapTap " , (ImTextureID)settingsTexture, { 22 , 22 })) {
641- ImGui::OpenPopup (" SnapTap Settings" );
640+ if (ImageButton (" ##AutoStop " , (ImTextureID)settingsTexture, { 22 , 22 })) {
641+ ImGui::OpenPopup (" AutoStop Settings" );
642642 }
643643
644- if (ImGui::BeginPopup (" SnapTap Settings" )) {
645- if (ImGui::BeginTable (" SnapTap Settings Table" , 2 , ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoPadInnerX)) {
644+ if (ImGui::BeginPopup (" AutoStop Settings" )) {
645+ if (ImGui::BeginTable (" AutoStop Settings Table" , 2 , ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoPadInnerX)) {
646646 ImGui::TableNextRow ();
647647 ImGui::TableSetColumnIndex (0 );
648648 ImGui::Text (" Hotkey " );
649649 ImGui::TableSetColumnIndex (1 );
650- snapTapKeyName = GetKeyName (cfg->snapTapBind );
651- if (ImGui::Button (std::format (" {}##PixelTrigger" , snapTapKeyName ).c_str (), ImVec2 (80 .0f , 22 .0f ))) {
652- snapTapButtonState = !snapTapButtonState ;
650+ autoStopKeyName = GetKeyName (cfg->autoStopBind );
651+ if (ImGui::Button (std::format (" {}##PixelTrigger" , autoStopKeyName ).c_str (), ImVec2 (80 .0f , 22 .0f ))) {
652+ autoStopButtonState = !autoStopButtonState ;
653653 }
654- Hotkey (&snapTapButtonState, &snapTapKeyName, &cfg->snapTapBind );
654+ Hotkey (&autoStopButtonState, &autoStopKeyName, &cfg->autoStopBind );
655+
656+ ImGui::TableNextRow ();
657+ ImGui::TableSetColumnIndex (0 );
658+ ImGui::Text (" Toggle " );
659+ ImGui::TableSetColumnIndex (1 );
660+ ImGui::Checkbox (" ##AutoStopToggle" , &cfg->autoStopToggleState );
655661
656662 ImGui::EndTable ();
657663 }
0 commit comments