diff --git a/SKSE/Plugins/EnderalSEEasyCrafting.dll b/SKSE/Plugins/EnderalSEEasyCrafting.dll index 75adc3a..6befc3a 100644 Binary files a/SKSE/Plugins/EnderalSEEasyCrafting.dll and b/SKSE/Plugins/EnderalSEEasyCrafting.dll differ diff --git a/SKSE/Plugins/EnderalSEEasyCrafting.ini b/SKSE/Plugins/EnderalSEEasyCrafting.ini index 6b65ae8..c744b90 100644 --- a/SKSE/Plugins/EnderalSEEasyCrafting.ini +++ b/SKSE/Plugins/EnderalSEEasyCrafting.ini @@ -1,2 +1,4 @@ LoadSuppliesEverywhere = false StoreInventorySupplies = true +ShowFetchingNotification = true +ShowReturningNotification = false diff --git a/src/src/Util.h b/src/src/Util.h index ff16d08..ed5d805 100644 --- a/src/src/Util.h +++ b/src/src/Util.h @@ -58,6 +58,8 @@ inline const std::map GetSettings(bool bInit = false) if (bInit) { settings.insert({ "LoadSuppliesEverywhere", false }); settings.insert({ "StoreInventorySupplies", true }); + settings.insert({ "ShowFetchingNotification", true }); + settings.insert({ "ShowReturningNotification", false }); LoadINI(&settings, "Data/SKSE/Plugins/EnderalSEEasyCrafting.ini"); } return settings; @@ -98,8 +100,10 @@ inline void ReturnSupplies() } bSuppliesFetched = false; - - //RE::DebugNotification("Returning supplies..."); + + if (GetSettings().at("ShowReturningNotification")) { + RE::DebugNotification("Returning supplies..."); + } const auto chest = RE::TESForm::LookupByID(0x5C132)->As(); const auto playerRef = RE::PlayerCharacter::GetSingleton(); @@ -202,24 +206,34 @@ inline void FetchSupplies(RE::TESFurniture* a_furn) std::thread([a_furn]() { std::this_thread::sleep_for(std::chrono::milliseconds(1)); SKSE::GetTaskInterface()->AddTask([a_furn]() { + bool bNotify = GetSettings().at("ShowFetchingNotification"); + switch (a_furn->workBenchData.benchType.underlying()) { case (int)RE::TESFurniture::WorkBenchData::BenchType::kAlchemy: case (int)RE::TESFurniture::WorkBenchData::BenchType::kAlchemyExperiment: - RE::DebugNotification("Fetching ingredients..."); + if (bNotify) { + RE::DebugNotification("Fetching ingredients..."); + } FetchSuppliesByType(RE::FormType::Ingredient); break; case (int)RE::TESFurniture::WorkBenchData::BenchType::kEnchanting: case (int)RE::TESFurniture::WorkBenchData::BenchType::kEnchantingExperiment: - RE::DebugNotification("Fetching soul gems..."); + if (bNotify) { + RE::DebugNotification("Fetching soul gems..."); + } FetchSuppliesByType(RE::FormType::SoulGem); break; default: if (a_furn->As()->HasKeywordString("CraftingCookpot")) { - RE::DebugNotification("Fetching cooking ingredients..."); + if (bNotify) { + RE::DebugNotification("Fetching cooking ingredients..."); + } FetchSuppliesByType(RE::FormType::Ingredient); FetchSuppliesByType(RE::FormType::AlchemyItem); } else { - RE::DebugNotification("Fetching crafting supplies..."); + if (bNotify) { + RE::DebugNotification("Fetching crafting supplies..."); + } FetchSuppliesByType(RE::FormType::Misc); FetchSuppliesByType(RE::FormType::Ingredient); FetchSuppliesByType(RE::FormType::SoulGem);