From 513d3249991b58424e9bcf597b1d65077a1ad039 Mon Sep 17 00:00:00 2001 From: Justin Pridgen Date: Fri, 9 Aug 2024 21:35:00 -0400 Subject: [PATCH] what the actual fuck --- CMakeLists.txt | 2 +- changelog.md | 3 +++ mod.json | 2 +- src/main.cpp | 5 +++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c70249..e414690 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(FakeRate VERSION 1.3.4) +project(FakeRate VERSION 1.3.5) add_library(${PROJECT_NAME} SHARED src/FakeRate.cpp diff --git a/changelog.md b/changelog.md index 914fbce..9b89bd5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # Fake Rate Changelog +## v1.3.5 (2024-08-09) +- Fixed a bug where the difficulty face would not display at all if a fake rate was set + ## v1.3.4 (2024-08-09) - Fixed a bug where the game would crash if no More Difficulties difficulties were selected - Fixed an overlapping issue with more difficulties and other overrides (I didn't fix it in level cells LMFAO) diff --git a/mod.json b/mod.json index 81de54a..05743b6 100644 --- a/mod.json +++ b/mod.json @@ -5,7 +5,7 @@ "win": "2.206", "mac": "2.206" }, - "version": "v1.3.4", + "version": "v1.3.5", "id": "hiimjustin000.fake_rate", "name": "Fake Rate", "developer": "hiimjustin000", diff --git a/src/main.cpp b/src/main.cpp index 9cc3991..ddb001a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -402,10 +402,11 @@ class $modify(FRLevelCell, LevelCell) { if (!difficultyContainer) difficultyContainer = m_mainLayer->getChildByID("grd-demon-icon-layer"); auto moreDifficultiesSprite = static_cast(difficultyContainer->getChildByID("uproxide.more_difficulties/more-difficulties-spr")); if (moreDifficultiesSprite) moreDifficultiesSprite->setVisible(false); + auto difficultySprite = static_cast(difficultyContainer->getChildByID("difficulty-sprite")); - difficultySprite->setOpacity(0); - + difficultySprite->setOpacity(255); if (mdo != 4 || mdo != 7 || mdo != 9 || gdo > 0 || dbo > 0) return; + difficultySprite->setOpacity(0); auto legacy = Loader::get()->getLoadedMod("uproxide.more_difficulties")->getSettingValue("legacy-difficulties"); if (!moreDifficultiesSprite) {