File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ using namespace horrible::prelude;
3232 }
3333 );
3434
35- listenForSettingChanges<double >(
35+ listenForSettingChanges<float >(
3636 " floating-button-scale" ,
37- [](double value) {
38- if (auto fb = OptionMenuButton::get ()) fb->setScale (static_cast < float >( value) );
37+ [](float value) {
38+ if (auto fb = OptionMenuButton::get ()) fb->setScale (value);
3939 }
4040 );
4141
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ bool OptionMenu::init() {
292292 [this ](auto ) {
293293 createQuickPopup (
294294 " Reset Filters" ,
295- " Would you like to <cr>reset all search filters</c>?" ,
295+ " Would you like to <cr>reset all search filters</c>?\n <cy>This will not affect your pins.</c> " ,
296296 " Cancel" , " OK" ,
297297 [this ](bool , bool ok) {
298298 if (ok) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class OptionMenuButton::Impl final {
1111public:
1212 bool inLevel = horribleMod->getSettingValue<bool >(" floating-button-level" );
1313
14- float scale = static_cast < float >( horribleMod->getSettingValue<double >(" floating-button-scale" ) );
14+ float scale = horribleMod->getSettingValue<float >(" floating-button-scale" );
1515 int64_t opacity = horribleMod->getSettingValue<int64_t >(" floating-button-opacity" );
1616
1717 bool isDragging = false ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ bool options::isPinned(std::string_view id) noexcept {
2121};
2222
2323int options::getChance (std::string_view id) {
24- return static_cast < int >( horribleMod->getSettingValue <int64_t >(fmt::format (" {}-chance" , id) ));
24+ return horribleMod->getSettingValue <int >(fmt::format (" {}-chance" , id));
2525};
2626
2727HorribleOptionSave options::get (std::string_view id) {
You can’t perform that action at this time.
0 commit comments