diff --git a/CMakeLists.txt b/CMakeLists.txt index 1963eea..e493c72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") set(CMAKE_CXX_VISIBILITY_PRESET hidden) -project(DemonsInBetween VERSION 1.4.0) +project(DemonsInBetween VERSION 1.4.1) add_library(${PROJECT_NAME} SHARED src/classes/DIBInfoPopup.cpp diff --git a/changelog.md b/changelog.md index a488edf..40c8733 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,9 @@ # Demons In Between Changelog +## v1.4.1 (2024-11-22) +- Fixed the demon info button in the level info page not working + ## v1.4.0 (2024-11-22) -- Added detailed demon breakdown to the demon info popup +- Added detailed demon breakdown to the main menu profile page - Switched to dynamic loading for the demon difficulties - Fixed BetterInfo buttons in the quick search menu diff --git a/mod.json b/mod.json index 3201a2b..122ef35 100644 --- a/mod.json +++ b/mod.json @@ -5,7 +5,7 @@ "win": "2.2074", "mac": "2.2074" }, - "version": "v1.4.0", + "version": "v1.4.1", "id": "hiimjustin000.demons_in_between", "name": "Demons In Between", "developer": "hiimjustin000", diff --git a/src/DemonsInBetween.cpp b/src/DemonsInBetween.cpp index 21c42fd..5024167 100644 --- a/src/DemonsInBetween.cpp +++ b/src/DemonsInBetween.cpp @@ -48,7 +48,7 @@ void DemonsInBetween::loadDemonForLevel(EventListener&& listenerRe auto json = res->json().unwrapOr(matjson::Value()); if (json["Rating"].isNull()) return; - auto rating = json["Rating"].asDouble().unwrapOr(0.0); + auto rating = round(json["Rating"].asDouble().unwrapOr(0.0) * 100) / 100; auto difficulty = DemonsInBetween::DIFFICULTY_INDICES[(int)round(rating)]; auto enjoyment = !json["Enjoyment"].isNull() ? round(json["Enjoyment"].asDouble().unwrapOr(-999.0) * 100) / 100 : -999.0; diff --git a/src/hooks/LevelInfoLayer.cpp b/src/hooks/LevelInfoLayer.cpp index 8a5ea95..c328cfa 100644 --- a/src/hooks/LevelInfoLayer.cpp +++ b/src/hooks/LevelInfoLayer.cpp @@ -77,7 +77,7 @@ class $modify(DIBLevelInfoLayer, LevelInfoLayer) { demon.enjoyment >= 0.0 ? fmt::format("{}", demon.enjoyment) : "N/A", difficulty, originalDifficulty - ), "OK"); + ), "OK")->show(); } void createUI(LadderDemon const& demon) {