Skip to content

Commit

Permalink
v1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jun 28, 2024
1 parent c31fd64 commit 82b0fb2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.4)
project(FakeRate VERSION 1.2.5)

add_library(${PROJECT_NAME} SHARED
src/FakeRate.cpp
Expand Down
28 changes: 0 additions & 28 deletions CMakeSettings.json

This file was deleted.

3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Fake Rate Changelog
## v1.2.5 (2024-06-28)
- Fixed a bug that caused the More Difficulties difficulty face to be offset in the level cell

## v1.2.4 (2024-06-27)
- Fixed a bug that caused orbs not to display correctly in map packs

Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"win": "2.206",
"mac": "2.206"
},
"version": "v1.2.4",
"version": "v1.2.5",
"id": "hiimjustin000.fake_rate",
"name": "Fake Rate",
"developer": "hiimjustin000",
Expand Down
16 changes: 9 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) {
m_difficultySprite->setOpacity(255);

auto legacy = Loader::get()->getLoadedMod("uproxide.more_difficulties")->getSettingValue<bool>("legacy-difficulties");
auto pos = difficultySpriteParent->convertToWorldSpace({
m_difficultySprite->getPositionX() + (legacy ? 0.0f : 0.25f),
m_difficultySprite->getPositionY() - (legacy ? 0.0f : 0.1f)
});
auto frameName = "";
auto stars = m_fields->m_fakeRateData.stars;
if (spriteName == "uproxide.more_difficulties/MD_DifficultyCP.png") {
Expand All @@ -204,14 +200,17 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) {
}
if (!moreDifficultiesSprite) {
moreDifficultiesSprite = CCSprite::createWithSpriteFrameName(frameName);
moreDifficultiesSprite->setPosition(difficultySpriteParent->convertToWorldSpace({
m_difficultySprite->getPositionX() + (legacy ? 0.0f : 0.25f),
m_difficultySprite->getPositionY() - (legacy ? 0.0f : 0.1f)
}));
moreDifficultiesSprite->setID("uproxide.more_difficulties/more-difficulties-spr");
addChild(moreDifficultiesSprite, 3);
}
else {
moreDifficultiesSprite->initWithSpriteFrameName(frameName);
moreDifficultiesSprite->setVisible(true);
}
moreDifficultiesSprite->setPosition(pos);
m_difficultySprite->setOpacity(0);
}
}
Expand Down Expand Up @@ -381,14 +380,17 @@ class $modify(FRLevelCell, LevelCell) {
}
if (!moreDifficultiesSprite) {
moreDifficultiesSprite = CCSprite::createWithSpriteFrameName(frameName);
moreDifficultiesSprite->setPosition({
difficultySprite->getPositionX() + (legacy ? 0.0f : 0.25f),
difficultySprite->getPositionY() - (legacy ? 0.0f : 0.1f)
});
moreDifficultiesSprite->setID("uproxide.more_difficulties/more-difficulties-spr");
addChild(moreDifficultiesSprite, 3);
difficultyContainer->addChild(moreDifficultiesSprite, 3);
}
else {
moreDifficultiesSprite->initWithSpriteFrameName(frameName);
moreDifficultiesSprite->setVisible(true);
}
moreDifficultiesSprite->setPosition(pos);
difficultySprite->setOpacity(0);
}
}
Expand Down

0 comments on commit 82b0fb2

Please sign in to comment.