Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jun 24, 2024
1 parent b3e6b99 commit 20c79a8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
with:
name: Build Output
path: build-output

- name: Create Draft Release
uses: softprops/action-gh-release@v2
env:
Expand Down
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.1)
project(FakeRate VERSION 1.2.2)

add_library(${PROJECT_NAME} SHARED
src/FakeRate.cpp
Expand Down
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.2 (2024-06-24)
- Fixed a bug where removing the fake rate would display the wrong difficulty face with More Difficulties enabled

## v1.2.1 (2024-06-23)
- Fixed gaps in the various fake rate popup elements

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.1",
"version": "v1.2.2",
"id": "hiimjustin000.fake_rate",
"name": "Fake Rate",
"developer": "hiimjustin000",
Expand Down
4 changes: 2 additions & 2 deletions src/FREditPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ bool FRSetDifficultyPopup::setup(int difficulty, int moreDifficultiesOverride, b
m_difficulty = difficulty;
m_moreDifficultiesOverride = moreDifficultiesOverride;
m_legacy = legacy;

auto menuRow1 = CCMenu::create();
menuRow1->setLayout(RowLayout::create()->setAxisAlignment(AxisAlignment::Even));
menuRow1->setPosition(150.0f, 185.0f);
Expand Down Expand Up @@ -283,7 +283,7 @@ bool FRSetFeaturePopup::setup(int feature, int difficulty, int moreDifficultiesO
createFeatureToggle(menuRow, GJFeatureState::Legendary);
createFeatureToggle(menuRow, GJFeatureState::Mythic);
menuRow->updateLayout();

auto confirmButton = CCMenuItemExt::createSpriteExtra(ButtonSprite::create("Confirm", "goldFont.fnt", "GJ_button_01.png", 0.8f), [this, callback](auto) {
callback(static_cast<int>(m_feature));
onClose(nullptr);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) {
else {
auto moreDifficultiesOverride = mdo;
auto starsRequested = m_level->m_starsRequested;
if (remove && (starsRequested == 4 || starsRequested == 7 || starsRequested == 9)) moreDifficultiesOverride = starsRequested;
if (remove && m_level->m_stars == 0 && (starsRequested == 4 || starsRequested == 7 || starsRequested == 9)) moreDifficultiesOverride = starsRequested;
if (moreDifficultiesOverride == 0) return;
switch (moreDifficultiesOverride) {
case 4: frameName = legacy ? "uproxide.more_difficulties/MD_Difficulty04_Legacy.png" : "uproxide.more_difficulties/MD_Difficulty04.png"; break;
Expand Down

0 comments on commit 20c79a8

Please sign in to comment.