Skip to content

Commit

Permalink
2.206 3.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Capeling committed Jun 15, 2024
1 parent 5fb1ee4 commit 1c69f54
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(coloredlevelinfobg VERSION 1.0.0)
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"geode": "2.0.0-beta.27",
"geode": "3.0.0-beta.1",
"gd": {
"win": "2.206",
"android": "2.206",
Expand Down
10 changes: 10 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ class $modify(LevelInfoLayer) {
}
return true;
}
void playStep2() {
LevelInfoLayer::playStep2();
auto color = diffToColor(m_level->m_autoLevel ? -1 : m_level->getAverageDifficulty() + (m_level->m_demon.value() * 5));
ccColor3B darkerColor = { color.r / 2, color.g / 2, color.b / 2 };

getChildOfType<CCSprite>(m_playSprite, 0)->setColor(darkerColor);
getChildOfType<CCSprite>(m_playSprite, 1)->setColor(color);
getChildOfType<CCSprite>(m_playSprite, 2)->setColor(darkerColor);

}
};

0 comments on commit 1c69f54

Please sign in to comment.