From 3041f31031da6d474f2786095caa53924e1174bc Mon Sep 17 00:00:00 2001 From: Aivan Monceller Date: Sat, 27 Jan 2024 16:55:35 +0800 Subject: [PATCH] Put back button from #23 for 2x exploit by BennettStaley --- src/Menu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Menu.cpp b/src/Menu.cpp index f8a38fb..37c8880 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -268,6 +268,11 @@ namespace DX11_Base { ImGui::InputInt("Slot to modify (start 0):", &Config.AddItemSlot); ImGui::InputInt("Multiple of how much:", &Config.AddItemCount); + if (ImGui::Button("Give items from slot", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) + { + AddToInventoryContainer(Config.AddItemCount, Config.AddItemSlot); + } + // this does not work lol // std::stringstream AddItemsString; // AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;