From e158bf6b83e2bd4aa0909b0fdf40b46d56796b9a Mon Sep 17 00:00:00 2001 From: TTF-fog <74908128+TTF-fog@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:27:28 +0530 Subject: [PATCH] Update Zoom.hpp --- src/Client/Module/Modules/Zoom/Zoom.hpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Client/Module/Modules/Zoom/Zoom.hpp b/src/Client/Module/Modules/Zoom/Zoom.hpp index b62883be..626b2d19 100644 --- a/src/Client/Module/Modules/Zoom/Zoom.hpp +++ b/src/Client/Module/Modules/Zoom/Zoom.hpp @@ -9,7 +9,7 @@ class Zoom : public Module { public: - Zoom() : Module("Zoom", "Allows you to see distant places.", IDR_MAGNIFY_PNG, "C") { + Zoom() : Module("Zoom", "Allows you to see distant places.", R"(\Flarial\assets\magnify.png)", "C") { Module::setup(); @@ -32,6 +32,7 @@ class Zoom : public Module { if (settings.getSettingByName("SaveModifier") == nullptr) settings.addSetting("SaveModifier", true); if (settings.getSettingByName("hidehand") == nullptr) settings.addSetting("hidehand", true); if (settings.getSettingByName("hidemodules") == nullptr) settings.addSetting("hidemodules", false); + if (settings.getSettingByName("UseScroll") == nullptr) settings.addSetting("UseScroll", true); //if (settings.getSettingByName("hidehud") == nullptr) settings.addSetting("hidehud", false); if (settings.getSettingByName("modifier") == nullptr) settings.addSetting("modifier", 10.0f); if (settings.getSettingByName("anim") == nullptr) settings.addSetting("anim", 0.20f); @@ -150,8 +151,18 @@ class Zoom : public Module { "alwaysanim")->value)) this->settings.getSettingByName("alwaysanim")->value = !this->settings.getSettingByName( "alwaysanim")->value; + toggleY += Constraints::SpacingConstraint(0.25, textWidth); + FlarialGUI::FlarialTextWithFont(toggleX + Constraints::SpacingConstraint(0.60, textWidth), toggleY, + L"Use Scroll", textWidth * 3.0f, textHeight, + DWRITE_TEXT_ALIGNMENT_LEADING, + Constraints::RelativeConstraint(0.12, "height", true), + DWRITE_FONT_WEIGHT_NORMAL); + if (FlarialGUI::Toggle(7, toggleX, toggleY, this->settings.getSettingByName( + "UseScroll")->value)) + this->settings.getSettingByName("UseScroll")->value = !this->settings.getSettingByName( + "UseScroll")->value; FlarialGUI::UnsetScrollView(); } -}; \ No newline at end of file +};